How do I create a cross-sheet formula for a sum $ total within a date range
I'm trying to calculate the total spend for a customer based on a list of transactions in another sheet in a specific date range. The dates in the sheet I'm trying to reference are classified as dates in the column properties and appear as "1/30/19" for January 30, 2019.
For example, in the sheet in which I'm attempting to place this formula, the first column contains customer names with none repeating. The second column is "total spend in 2019", where I'm attempting to use a formula to calculate this based on the transaction summary sheet, the sheet I'm trying to reference in the formula. Any help is appreciated!
Comments
-
Thank you, though I'm not following the date part, specifically the @cell. What would that look like when I fill it in? Do I go back and choose a specific cell? Why would I do that if I've selected the whole column as the range?
-
The @cell reference would stay as is. It basically tells the formula to run on each cell within the range individually.
-
When you fill in the DATE function, you replace the "yyyy" portion with the year, "mm" with the month, and "dd" with the day, all of which would need to be numbers.
-
Thanks! I've got that down thanks to your help. Now, I'm trying to have the cell return a sum within a date range, not just after January 1, 2018. Specifically, I want to see the total within the year 2018. I keep trying to add in <=DATE(2019, 1, 1) but it isn't working. Any ideas?
Here is the formula I'm using:
=SUMIFS({Transaction List Net Total}, {Transaction List Customers}, [Customer Name]180, {Transaction List Date Range}, >=DATE(2018, 1, 1))
-
If you are just looking for everything within a specific year, you can skip the DATE function and just use a YEAR function.
=SUMIFS({Transaction List Net Total}, {Transaction List Customers}, [Customer Name]180, {Transaction List Date Range}, YEAR(@cell) = 2018)
-
Hm...I just tried this formula and got "#INVALID DATA TYPE"
=SUMIFS({Transaction List Net Total}, {Transaction List Customers}, [Customer Name]109, {Transaction List Date Range}, YEAR(2019))
-
I also just tried this and got #INVALID OPERATION
=SUMIFS({Transaction List Net Total}, {Transaction List Customers}, [Customer Name]109, {Transaction List Date Range}, YEAR({Transaction List Date Range} = 2019))
-
Try typing it exactly how I had it to include the @cell reference and placement of parenthesis.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!