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
- 63.8K Get Help
- 406 Global Discussions
- 218 Industry Talk
- 457 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!