Specific date placed in date range
Hello,
I am trying to do a sumifs and one of my conditions is based on date. My reference sheet has specific dates (Ex. 12/19/23) but my new sheet has date ranges by week (Ex. 12/18/23-12/24/23).
How can I pull the data with the specific date and place that data within my date range on the new sheet?
Thank you.
Best Answer
-
There's the issue. You have text strings that only look like dates. Try adding in two more helper rows (for a total of three) so that you have one for the year, one for the month, and one for the day. Then you can adjust your SUMIFS like so:
=IF(SUMIFS({Copy of Recon Sheet - Active Range 2}, {BCA}, $BCA@row, {Date}, DATE([Wk 45 11/6]3, [Wk 45 11/6]4, [Wk 45 11/6]5) <= @cell, ...............
Answers
-
Are you able to provide some screenshots for context?
-
Hey Paul,
Here is my reference sheet with a specific date column.
Here is where I need the values, in this case 2" and 4" footage, to be logged in its respective date range.
What my sumifs currently looks like:
=IF(SUMIFS({Copy of Recon Sheet - Active Range 2}, {BCA}, $BCA@row, {Date}, [Wk 45 11/6]3 <= @cell, {Date}, [Wk 46 11/13]3 > @cell) = 0, " ", SUMIFS({Copy of Recon Sheet - Active Range 2}, {BCA}, $BCA@row, {Date}, [Wk 45 11/6]3 <= @cell, {Date}, [Wk 46 11/13]3 > @cell))
Things to note about formula:
- {Copy of Recon Sheet - Active Range 2} is the column for 2" PL
- {BCA} is a column on both sheets that is a unique identifier for each project since we have multiple on one sheet
And I do have this row at the top to use as a date reference in my formula
-
Hey Paul,
Here is my reference sheet with a specific date column.
Here is where I need the values, in this case 2" and 4" footage, to be logged in its respective date range.
What my sumifs currently looks like:
=IF(SUMIFS({Copy of Recon Sheet - Active Range 2}, {BCA}, $BCA@row, {Date}, [Wk 45 11/6]3 <= @cell, {Date}, [Wk 46 11/13]3 > @cell) = 0, " ", SUMIFS({Copy of Recon Sheet - Active Range 2}, {BCA}, $BCA@row, {Date}, [Wk 45 11/6]3 <= @cell, {Date}, [Wk 46 11/13]3 > @cell))
Things to note about formula:
- {Copy of Recon Sheet - Active Range 2} is the column for 2" PL
- {BCA} is a column on both sheets that is a unique identifier for each project since we have multiple on one sheet
And I do have this row at the top to use as a date reference in my formula
-
Is [Wk 45 11/6] a Date type column?
-
No sir.
-
There's the issue. You have text strings that only look like dates. Try adding in two more helper rows (for a total of three) so that you have one for the year, one for the month, and one for the day. Then you can adjust your SUMIFS like so:
=IF(SUMIFS({Copy of Recon Sheet - Active Range 2}, {BCA}, $BCA@row, {Date}, DATE([Wk 45 11/6]3, [Wk 45 11/6]4, [Wk 45 11/6]5) <= @cell, ...............
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.7K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 469 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 148 Just for fun
- 64 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!