Same Formula Giving Error in Different Cells
Hello,
I have a formula that should be the same for all three calculations I am trying to do but two are giving an error when I think everything about them is the same.
Here are the two formulas I am using:
The Insp Date produces a number/no error and the Weld Date produces #INVALID DATA TYPE. The are in the same column on my metrics sheet I am using to write the formulas and they are both 'Date' type in the source sheet.
I am getting #INVALID DATA TYPE for a third cell/calculation that is exactly the same as the example above. I cannot figure out why it is working for one and not the other two, any help would be greatly appreciated!!
Best Answer
-
It sounds like you may have blanks in the source data which would throw that error on the WEEKNUMBER function which would in turn push through as the formula output. Try this instead:
=COUNTIFS({Date Range of Choice}, IFERROR(WEEKNUMBER(@cell), 0) = WEEKNUMBER(TODAY()))
Answers
-
It sounds like you may have blanks in the source data which would throw that error on the WEEKNUMBER function which would in turn push through as the formula output. Try this instead:
=COUNTIFS({Date Range of Choice}, IFERROR(WEEKNUMBER(@cell), 0) = WEEKNUMBER(TODAY()))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 141 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!