Is this lookup sum possible?

CaraM

New Member
Joined
Apr 8, 2018
Messages
33
Office Version
  1. 365
Platform
  1. Windows
I have a table of accounts, with information about the taxation of withdrawals from those accounts, and account balances by date, like this (and I'm opening to changing the design of this table):
Capture.JPG

(I just entered simple account balances to see if I could get totals that were correct.)

I want a formula that will sum the account balances, as of the most current listed date, for a specific named taxation category. In other words, in another sheet in my workbook, I will be doing a calculation on all of the money held in accounts that are taxed as ordinary income, etc., as of a specific date.

Can I do a SUMIFS-like calculation while also looking up balances by date? I have a feeling I've done something like this before, but I can't remember what functions I used...

Thanks for any ideas!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Because you will need to sum multiple rows and multiple columns with criteria your layout is going to need some very clumsy formulas.

As you're open to changing the table, how about dates in column A, account in column B (ira 1, roth 1, etc), account type in column C (ordinary, tax free, etc) and amount in column D?
That way you would be able to simply use sumifs with no lookup or anything else needed.
 
Upvote 0
So, if my table looks like this:
DateAccountTaxationBalance
1/31/2021Traditional IRA 1Ordinary income63,729
1/31/2021Taxable brokerage 1Cap Gains + Int/Div15,672
1/31/2021Traditional IRA 2Ordinary income10,000
1/31/2021Taxable brokerage 2Cap Gains + Int/Div7,500
3/30/2021Traditional IRA 1Ordinary income67,553
3/30/2021Taxable brokerage 1Cap Gains + Int/Div17,082
3/30/2021Traditional IRA 2Ordinary income10,700
3/30/2021Taxable brokerage 2Cap Gains + Int/Div7,875


How could I get the total amount of account value taxed as Ordinary Income on or as close to 12/31/2021 as possible? I'm not sure how to use SUMIFS for adding but not on an exact date.
 
Upvote 0
on or as close to 12/31/2021 as possible?
As close to, or on or before?
Book1
ABCD
1DateAccountTaxationBalance
231/01/2021Traditional IRA 1Ordinary income63729.01
331/01/2021Taxable brokerage 1Cap Gains + Int/Div15671.94
431/01/2021Traditional IRA 2Ordinary income10000
531/01/2021Taxable brokerage 2Cap Gains + Int/Div7500
630/03/2021Traditional IRA 1Ordinary income67552.74
730/03/2021Taxable brokerage 1Cap Gains + Int/Div17082.48
830/03/2021Traditional IRA 2Ordinary income10700
930/03/2021Taxable brokerage 2Cap Gains + Int/Div7875
10
1131/12/2021Ordinary income78252.74
Sheet1
Cell Formulas
RangeFormula
D6D6=63729*1.06
D7D7=15672*1.09
D8D8=10000*1.07
D9D9=7500*1.05
C11C11=SUMIFS(D2:D9,C2:C9,B11,A2:A9,MAXIFS(A2:A9,A2:A9,"<="&A11))
 
Upvote 0
Solution
Thanks, @jasonb75 - I replaced the MaxIfs with an xlookup to return the date nearest but before, and it works beautifully!
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,720
Members
448,986
Latest member
andreguerra

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