SumIFs formula #INVALID DATA TYPE error
Getting the #INVALID DATA TYPE error with this formula:
=SUMIFS({Forecasts (SS) Hours}, {Forecasts (SS) Consultant}, $[Consultant Name]23, {Forecasts (SS) Start}, WEEKNUMBER(@cell) = 48, {Forecasts (SS) Cancelled}, 0, {Forecasts (SS) Start}, YEAR(@cell) = 2019)
What's frustrating is if I change the ${Consultant Name]23 to a different number, say 24, it works. Also if I change the name in the column in cell 23 to something else, it works too. This particular name seems to be giving the error. This sheet references another sheet that contains the names of the Consultants, however, I can't find anything wrong with the name. I've tried deleting and re-adding the name to both sheets.
Thank you!
Comments
-
Hi Shah,
Can you maybe share some screenshots? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help.
Have a fantastic day!
Best,
Andrée Starå
Workflow Consultant @ Get Done Consulting
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
This might help:
#INVALID DATA TYPE
Cause
The formula contains or references an incompatible data type, such as =INT("Hello")
Resolution
Make sure the formula references the correct data type.
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Try wrapping both the WEEKNUMBER and YEAR functions in an IFERROR.
I am initially thinking that it isn't so much the consultant name itself, but the data that is pulled for that consultant.
If there are any blanks or non-date values in any row for that consultant, you will get the error.
=SUMIFS({Forecasts (SS) Hours}, {Forecasts (SS) Consultant}, $[Consultant Name]23, {Forecasts (SS) Start}, IFERROR(WEEKNUMBER(@cell), 0) = 48, {Forecasts (SS) Cancelled}, 0, {Forecasts (SS) Start}, IFERROR(YEAR(@cell), 0) = 2019)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!