In need of a formula to count number of occurrences based on date
I have a Date & Location column in one sheet and on another sheet I have a date and cell that needs to sum the number of times a location appears on that date. What formula can I use to achieve this?
Sheet A
Sheet B
End goal for example:
Rochester cell = 2
Albany cell = 2
Best Answer
-
Hi! You'll want to use COUNTIFS (COUNTIFS Function | Smartsheet Learning Center) and cross-sheet references (Create cross sheet references | Smartsheet Learning Center)
I made a mini version of your example, with only the first 6 rows you did. Here's the column formula for Rochester in sheet 2: =COUNTIFS({ExampleSheet1 Dep Date column}, Date@row, {ExampleSheet1 Depot column}, "Rochester")
Screenshots:
Answers
-
Hi! You'll want to use COUNTIFS (COUNTIFS Function | Smartsheet Learning Center) and cross-sheet references (Create cross sheet references | Smartsheet Learning Center)
I made a mini version of your example, with only the first 6 rows you did. Here's the column formula for Rochester in sheet 2: =COUNTIFS({ExampleSheet1 Dep Date column}, Date@row, {ExampleSheet1 Depot column}, "Rochester")
Screenshots:
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.9K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!