Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Using excel formula to locate next lowest date and return value

$
0
0

IFERROR(LARGE(Data[Cashbook Balance Date],COUNTIF(Data[Cashbook Balance Date],">="&'Cash Book '!D1)),INDEX(Data[Cashbook Balance],MATCH('Cash Book '!D1,Data[Cashbook Balance Date],-1)))

Hi all

I am trying to use the formula above but it's not working as I would like it to. I have two sheets - A Data Sheet and A Cash book Sheet:

User enters transactions on  Data Sheet which has columns including  Bank Code Column (can enter multiple bank codes), Running Cash Book balance (for each bank code) and Cash book balance date (dates can be repeated and may not be in order).

On the Cash book sheet, user can only select start date and bank code and the sheet should calculate monthly totals for the bank code and start date specified - drawing from Data sheet. The formula above should draw the opening balance from the Data Sheet - Cash Book balance for the date specified or next lowest date.

 

Any assistance would be greatly appreciated:



Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>