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.
-
Help Article Resources
Categories
Check out the Formula Handbook template!