Struggling with SUMIFS
Dear Community,
I am desperately trying to make a SUMIFS function work.
I have to columns with dates, Start date (startdato) and end date (slutdato). I need to count the days in the period between start date and end date, and add them, where the following criterias are met:
It must say "Ida Skou Andersen" in the column "Medarbejder", and it must say "Sygemelding" in the column "Type of fravær".
I have tried this, and a lot of other versions but I can't make it work. What am I doing wrong? Is it not possible to use a SUMIFS for this?
=SUMIFS(Slutdato:Slutdato - Startdato:Startdato; Medarbejder:Medarbejder; "Ida Skou Andersen"; Type af fravær:Type af fravær; "Sygemelding")
I really hope you can help me out.
Best, Ida.
Answers
-
Duplicate post?
-
I'd be happy to take a quick look.
Can you maybe share the sheet(s)/copies of the sheet(s)? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, andree@getdone.se)
I hope that helps!
Be safe and have a fantastic weekend!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
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.
-
Dear @Andrée Starå,
Yes, sorry for the duplicates. It said "error" when I tried to load the question, so I tried again - and again. (It doesn't seem like I can delete the duplicates.)
Thank you so much for offering to have a quick look. :)
My sheet is not being used yet, so I would be happy to share it:
Thanks again for helping me out. :)
And a very nice weekend to you to. :)
Best,
Ida Skou Andersen
-
No worries!
Happy to help!
I've added the formula to your sheet.
Let me know that it works as expected.
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.
-
Dear @Andrée Starå,
Thank you so much for having a look.
I am sorry but the result I get from your fuction is not quite what I need. I apologize for not beeing clear.
What I need is a total sum of the whole sheet of the dates that meets the criteria. Not just a sum for each row.
I have tried the functions below instead, but they do not seem to work.
=SUMIF(AND(Medarbejder:Medarbejder = "Ida Skou Andersen"; Type af fravær:Type af fravær = "Sygemelding"); Slutdato:Slutdato - Startdato:Startdato)
=SUMIF(Medarbejder:Medarbejder = "Ida Skou Andersen"; AND(Type af fravær:Type af fravær = "Sygemelding"); Slutdato:Slutdato - Startdato:Startdato)
-
No worries!
I've updated the sheet. We'd need to use a so-called helper column to count the days and then use that in the SUMIFS next to it.
Would that work?
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.
-
OK. Actually I had already made a function with a helper column, but I thought it would be great if I didn't need that extra column. I do know that I can hide the extra column - it would just be cool if it were possible to make a function without it.
But now I know there is no way around it, I will stop trying to make it work without. :)
Thank you again for all of your help.
-
Excellent!
You're more than welcome!
✅Remember! Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
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.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!