Formula not working anymore
Hi,
I have this formula that worked in the past and now is not working, I don't know since when.
=16 - (SUMIFS({Tems en Maladie}; {Employee name}; [Employee name]@row; {Date}; YEAR(@cell) = YEAR(TODAY())))
Now the cell shows #INVALID DATA TYPE
How can this happens?
Best Answer
-
This error comes from having blanks or non-date values in the {Date} range which causes the YEAR function to error out (since it is looking for a date value to pull the year from). Try this:
=16 - (SUMIFS({Tems en Maladie}; {Employee name}; [Employee name]@row; {Date}; IFERROR(YEAR(@cell); 0) = YEAR(TODAY())))
Answers
-
This error comes from having blanks or non-date values in the {Date} range which causes the YEAR function to error out (since it is looking for a date value to pull the year from). Try this:
=16 - (SUMIFS({Tems en Maladie}; {Employee name}; [Employee name]@row; {Date}; IFERROR(YEAR(@cell); 0) = YEAR(TODAY())))
-
@Paul Newcome works perfectly thank you!!!
-
Happy to help. 👍️
-
@Paul Newcome Hi Paul, new problem. This formula is working in one sheet but not in the other : =INDEX(COLLECT({Numéro de période}; {Date de début - Période de paie}; @cell <= Date3; {Date de fin - Période de paie}; @cell >= Date3); 1)
Do you see something wrong?
-
I don't see any syntax issues. Are you getting an error or an unexpected result?
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 142 Industry Talk
- 473 Announcements
- 5K Ideas & Feature Requests
- 84 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!