Cross Sheet reference involving dates shows INVALID DATA TYPE
I am working on some inventory check and report.
Inventory sheet as follows:
Metric sheet to report on monthly incoming by items and month as follows:
I am trying to refer to the Inventory Sheet to sum Qty In if:
1) Level is 1 (I don't want the parent row to be calculated)
2) Equipment Description matches the primary column
3) Month matches [Nov20]2
4) Year matches [Nov20]1
But I keep getting invalid data type error.
Can anyone assist? Thanks.
Best Answer
-
Try @cell references instead of ranges:
=COUNTIFS({Date Range}, MONTH(@cell) = 12)
I also notice there are blanks in the source data. This could also throw an error. To account for these, I like to use an IFERROR.
=COUNTIFS({Date Range}, IFERROR(MONTH(@cell), 0) = 12)
Answers
-
Try @cell references instead of ranges:
=COUNTIFS({Date Range}, MONTH(@cell) = 12)
I also notice there are blanks in the source data. This could also throw an error. To account for these, I like to use an IFERROR.
=COUNTIFS({Date Range}, IFERROR(MONTH(@cell), 0) = 12)
-
@Paul Newcome thanks.
I manage to work out on the formula base on your input.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 422 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!