Forum Discussion

richarddoig's avatar
richarddoig
Copper Contributor
Aug 19, 2024
Solved

Return next value in list matching criteria

Hi

 

I have a list per the below and I want to use a formula to find a value according to the bank criteria. 

 

For example for each bank "BNZ" I want to bring in the corresponding amounts.

 

When I use the formula =INDEX($A:$A,MATCH("BNZ",$D:$D,0)) and increment by 1, it works for the first 5 instances but then it just picks up the next item which is an ANZ entry rather than picking up the next BNZ entry further down the list

 

The listing is going to change each month depending on what transactions happen each month and there are obviously different numbers of transactions each month.

 

BankCurrencyPost DateAmount
ANZAUD1/07/2023-10258.50
ANZAUD1/07/2023-19.80
CBAAUD1/07/202316500.00
CBAAUD1/07/2023365.44
BNZNZD1/07/2023-0.60
BNZNZD1/07/2023-13604.32
BNZNZD1/07/2023-39.87
BNZNZD1/07/2023-95720.00
BNZNZD1/07/202315700.00
ANZAUD2/07/2023-11400.00
ANZAUD2/07/202316185.00
ANZAUD2/07/20232200.00
CBAAUD2/07/202333997.05
BNZNZD2/07/202317450.00
ANZAUD3/07/2023-33539.95
ANZAUD3/07/2023869.71
ANZAUD3/07/2023891.00
ANZAUD3/07/20232200.00
ANZAUD3/07/20236336.00
ANZAUD3/07/2023477.77
CBAAUD3/07/202335200.00
BNZNZD3/07/2023495.90

 

Thanks in advance for your help

Rick

3 Replies

Resources