Help with formula to return latest date balance

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
698
Office Version
  1. 2010
Platform
  1. Windows
Hi:
Formua in G15 is an attempt to return the latest balance from column E.
Required value should be $2,508.50 since latest date is 11/17/23.
Could you show me the proper way to do this?

Thank you.
S


Desert Fin 2023.xlsx
ABCDEFG
1Posting DateTransaction TypeAmountTypeBalance
211/17/23Credit500.00Deposit2,508.50
311/16/23Debit(2.61)Withdrawal2,008.50
411/16/23Debit(3.55)Withdrawal2,011.11
511/16/23Debit(5.63)Withdrawal2,014.66
610/25/23Debit(22.65)Withdrawal2,020.29
710/17/23Debit(8.67)Withdrawal2,042.94
810/15/23Debit(9.98)Withdrawal2,051.61
909/30/23Debit(11.25)Withdrawal2,061.59
1009/26/23Debit(14.66)Withdrawal2,072.84
1108/25/23Credit200.00Deposit2,087.50
12
13
14
152087.50
Sheet1 (2)
Cell Formulas
RangeFormula
E2:E10E2=E3+C2
G15G15=IFERROR(LOOKUP(9.99999999999999E+307,($A$2:$A$11),$E$2:$E$11),"")
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Thank you. Testing formula in post #2.
If I change date in A2 to 10/15/23, formula returns $2,508.50
Required value should be $2,008.50.
Could you advise please?

Desert Fin 2023.xlsx
ABCDEFG
1Posting DateTransaction TypeAmountTypeBalance
210/15/23Credit500.00Deposit2,508.50
311/16/23Debit(2.61)Withdrawal2,008.50
411/16/23Debit(3.55)Withdrawal2,011.11
511/16/23Debit(5.63)Withdrawal2,014.66
610/25/23Debit(22.65)Withdrawal2,020.29
710/17/23Debit(8.67)Withdrawal2,042.94
810/15/23Debit(9.98)Withdrawal2,051.61
909/30/23Debit(11.25)Withdrawal2,061.59
1009/26/23Debit(14.66)Withdrawal2,072.84
1108/25/23Credit200.00Deposit2,087.50
12
13
14
152508.50
Sheet1 (2)
Cell Formulas
RangeFormula
E2:E10E2=E3+C2
G15G15=LOOKUP(2,1/(MAX(A2:A11)),E2:E11)
 
Upvote 0
Shouldn't it be 2014.66. The last value for the largest date?
If so,
=LOOKUP(2,1/(A2:A11=(MAX(A2:A11))),E2:E11)
 
Upvote 0
@Phuoc, thank you. Clever use of VLOOKUP since it will will only find the first match if there is more than one matching value in Column A.
 
Upvote 0
@sean, you are mixing and matching though. Your additional test case with an older date (10/15/23) at the top suggest the dates are not in order but by taking the first occurence if there are mutliple transactions on the same date assumes that they are in descending order. 🤔
 
Upvote 0

Forum statistics

Threads
1,215,222
Messages
6,123,704
Members
449,118
Latest member
MichealRed

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top