Need 2 formulas where they lookup values from a different spreadsheet

Kendoaka

New Member
Joined
Jul 9, 2022
Messages
3
Office Version
  1. 2021
Platform
  1. Windows
I have two spreadsheets, book1 & book2. Book1 is automatically updated with all my bank transactions, I manually select a category for each transaction.

Book2 is where I keep track of my Car note payments. I need two formulas, one where it searches for the "Amount" & the other for "TX ID" from book1.

For "Amount" my formula is =SUMIFS(Book1.xlsx!Table1[Amount],Book1.xlsx!Table1[Date],">="&A8,Book1.xlsx!Table1[Date],"<"&A8,Book1.xlsx!Table1[Category],"Car Note")

I am not sure why it's not working.

Thanks,

Book1.xlsx
ABCDE
1Bank Transactions
2DateDescriptionCategoryAmountTX ID
36/12/2022Walmart groceriesFood$102.13va25dx
46/19/2022Car payment xxxx091Car Note$450.68am918
56/29/2022Amazon shopping xUSShopping$213.230sl81a
67/2/2022Fry's groceriesFood$109.33x8ajm2u
77/18/2022Car payment xxx091Car Note$447.26suyth8d
87/12/2022Sam's club TXShopping$176.85msh71ah
98/5/2022Bashas groceriesFood$99.39s83kx7
108/19/2022Car payment xxxx83Car Note$445.10ls01nsh
118/21/2022American AirlinesTravel$985.63sk83mpa
128/24/2022Suite hotelsHotel$438.74x7hhyr
138/30/2022Burger king NYFood$38.11js81in
149/4/2022Walmart groceriesFood$85.49d6sha
159/5/2022Apple USNew Phone$1,258.7628janx
169/20/2022Car payment xxxx83Car Note$479.88s7h5oq
179/29/2022Amazon shopping xUSShopping$78.081ksuu8
Sheet1
Cells with Data Validation
CellAllowCriteria
C3:C17ListFood,Car Note,Travel,Hotel,Shopping,Food,New Phone


Book2.xlsx
ABC
1Car Payments
2AmountAmountTX ID
3Jan,2022
4Feb,2022
5Mar,2022
6Apr,2022
7May,2022
8Jun,2022$0.00
9Jul,2022
10Aug,2022
11Sep,2022
12Oct,2022
13Nov,2022
14Dec,2022
Sheet1
Cell Formulas
RangeFormula
B8B8=SUMIFS(Book1.xlsx!Table1[Amount],Book1.xlsx!Table1[Date],">="&A8,Book1.xlsx!Table1[Date],"<"&A8,Book1.xlsx!Table1[Category],"Car Note")
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi, try this formula for B8
=SUMIFS(Book1.xlsx!Table1[Amount],Book1.xlsx!Table1[Date],">="&A8,Book1.xlsx!Table1[Date],"<"&A9,Book1.xlsx!Table1[Category],"Car Note")
 
Upvote 0
Hi, try this formula for B8
=SUMIFS(Book1.xlsx!Table1[Amount],Book1.xlsx!Table1[Date],">="&A8,Book1.xlsx!Table1[Date],"<"&A9,Book1.xlsx!Table1[Category],"Car Note")
Thank you, the formula works but it does not work for C8 ... need help
 
Upvote 0
A reminder:

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at:

If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Hi, try this formula for C8
=TEXTJOIN(",",,IF((Book1.xlsx!Table1[Date]>=A8)*(Book1.xlsx!Table1[Date]<A9)*(Book1.xlsx!Table1[Category]="Car Note"),Book1.xlsx!Table1[TX ID],""))
 
Upvote 0
Another solution...

formula for B8
=SUM((MONTH(Book1.xlsx!Table1[Date])=MONTH(A8))*(YEAR(Book1.xlsx!Table1[Date])=YEAR(A8))*(Book1.xlsx!Table1[Category]="Car Note")*Book1.xlsx!Table1[Amount])

formula for C8
=TEXTJOIN(",",,IF((MONTH(Book1.xlsx!Table1[Date])=MONTH(A8))*(YEAR(Book1.xlsx!Table1[Date])=YEAR(A8))*(Book1.xlsx!Table1[Category]="Car Note"),Book1.xlsx!Table1[TX ID],""))
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,421
Members
448,961
Latest member
nzskater

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