Countif date range, two columns
Hello,
I want to find an formula who can count if todays date is inside the date range of two columns. Have already made the formula for one date range, but can't get it to work with two. Hope somebody would be able to help me
=COUNTIFS({Utf-start-utb}; IFERROR(DAY(@cell); 0) = DAY(TODAY()); {Utb-montør}; Kontakt@row)
In this formula I count “utførelse start” if its match todays date, and “montør” matches another column. As for now It doesnt match the 8th of March, because “utførelse start” is only one value - not an range. On the first row I want it to give me the value of one booking if inside start and end date.
Best Answer
-
Try this. The logic is: Count the row if the utførelse start is less than or equal to today, the utførelse slutt is greater than or equal to today, and the Montør equals the Kontakt on this row.
=COUNTIFS({Utf-start-utb}; @cell <= (TODAY()); {Utf-start-utb}; @cell >= (TODAY()); {Utb-montør}; Kontakt@row)
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
Try this. The logic is: Count the row if the utførelse start is less than or equal to today, the utførelse slutt is greater than or equal to today, and the Montør equals the Kontakt on this row.
=COUNTIFS({Utf-start-utb}; @cell <= (TODAY()); {Utf-start-utb}; @cell >= (TODAY()); {Utb-montør}; Kontakt@row)
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Thanks. Perfect! :)
PS: Out of curiosity, if I wanted to count by tomorrows date - which changes should I do then? @Jeff Reisman
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!