如何在Excel中找到每家银行加息多少次的总数?

mo49yndu  于 2023-04-22  发布在  其他
关注(0)|答案(3)|浏览(122)

我有所有利率的数据集。
我想找到Excel的公式,我想知道每个银行在一个月内增加多少次利率的总数,每个银行在一个月内减少多少次利率,每个银行在一个月内保持利率不变的次数。我有一个月的数据。
我已经尝试了不同的公式,但它的未来错误或错误的数字
这是当前色谱柱设置:

Column A = Provider (Bank Name) 
Column B = Product Name 
Column C = Market Name 
Column D = 1/11/2022 (Interest Rate Data) 
Column E = 2/11/2022 (Interest Rate Data) 
Column F = 3/11/2022 (Interest Rate Data) 
Column G = 4/11/2022 (Interest Rate Data) 
Column H = 5/11/2022 (Interest Rate Data) 
Column I = 6/11/2022 (Interest Rate Data) 
Column J = 7/11/2022 (Interest Rate Data) 
Column K = 8/11/2022 (Interest Rate Data) 
Column L = 9/11/2022 (Interest Rate Data) 
Column M = 10/11/2022 (Interest Rate Data)
Column N = 11/11/2022 (Interest Rate Data) 
Column O = 12/11/2022 (Interest Rate Data) 
Column P = 13/11/2022 (Interest Rate Data) 
Column Q = 14/11/2022 (Interest Rate Data) 
Column R = 15/11/2022 (Interest Rate Data) 
Column S = 16/11/2022 (Interest Rate Data) 
Column T = 17/11/2022 (Interest Rate Data) 
Column U = 18/11/2022 (Interest Rate Data) 
Column V = 19/11/2022 (Interest Rate Data) 
Column W = 20/11/2022 (Interest Rate Data) 
Column X = 21/11/2022 (Interest Rate Data) 
Column Y = 22/11/2022 (Interest Rate Data) 
Column Z = 23/11/2022 (Interest Rate Data)

下面是我想要计算的值的列:

Column AH = Total Increase (Need Excel formula to find this) 
Column AI = Total Decrease (Need Excel formula to find this) 
Column AJ = Total No Changes (Need Excel formula to find this)
k3bvogb1

k3bvogb11#

这将计算从前一天开始汇率变化的次数。
对于单元格AH 2-速率增加多少倍:

=SUMPRODUCT(--(E2:Z2>D2:Y2))

对于单元格AI 2-速率降低了多少次:

=SUMPRODUCT(--(E2:Z2<D2:Y2))

对于单元格AJ 2-速率未更改的次数:

=SUMPRODUCT(--(E2:Z2=D2:Y2))
vnzz0bqm

vnzz0bqm2#

增减(Excel公式)

整个范围

=LET(d,D2:AG5,
    DROP(REDUCE("",SEQUENCE(ROWS(d)),LAMBDA(rr,r,
        LET(td,TOCOL(INDEX(d,r),1),o,DROP(td,-1),t,DROP(td,1),
VSTACK(rr,HSTACK(SUM(--(o<t)),SUM(--(o>t)),SUM(--(o=t))))))),1))

单行

=LET(d,D2:AG2,
    td,TOCOL(d,1),
    o,DROP(td,-1),t,DROP(td,1),
HSTACK(SUM(--(o<t)),SUM(--(o>t)),SUM(--(o=t))))
wribegjk

wribegjk3#

对于AH列(总增量):

=COUNTIF(D2:Z2,"<"&D2)+COUNTIF(D2:Z2,">"&D1)-COUNTIF(D2:Z2,"="&D1)

对于列AI(总减少):

=COUNTIF(D2:Z2,"<"&D1)+COUNTIF(D2:Z2,">"&D2)-COUNTIF(D2:Z2,"="&D1)

对于AJ列(总计无变更):

=COUNTIF(D2:Z2,"="&D1)

相关问题