Adding running totals
Hi. Sorry, this may seem really simple but I am new to smartsheets.
I have 2 columns. 1 - email addresses(email addresses) and another column sick days(number). I want to add all the sick days up as a running total for different peoples emails addresses but for the life of me cannot seem to get the formula right. Can anyone help?
Thanks in advance :-)
Comments
-
Hi Phil,
Try something like this.
This is one way. Another would be to reference the email address instead from another column/cell. Which method would you prefer?
=SUMIF([Email Address]:[Email Address]; "email@email.com"; [Sick Days]:[Sick Days])
The same version but with the below changes for your and others convenience.
=SUMIF([Email Address]:[Email Address], "email@email.com", [Sick Days]:[Sick Days])
Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.
Hope that helps!
Have a fantastic week!
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.
-
Here's the other method.
The cell in the Contact@row column would be the email address to sum.
=SUMIF([Email Address]:[Email Address]; Contact@row; [Sick Days]:[Sick Days])
The same version but with the below changes for your and others convenience.
=SUMIF([Email Address]:[Email Address], Contact@row, [Sick Days]:[Sick Days])
Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.
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.
-
Hi Andree
That sort of helps but I have multiple email addresses in the email column so need it to differentiate and add the totals for different email addresses.
-
Ok.
What type of column is the email address column? Is it a contact column or a text column?
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.
-
Hi Andree
It is a text column. Should I change it to a contact column?
-
No, you don't need to change it.
Try something like this instead.
=SUMIF([Email Address]:[Email Address]; FIND("email@email.com"; @cell) > 0; [Sick Days]:[Sick Days])
The same version but with the below changes for your and others convenience.
=SUMIF([Email Address]:[Email Address], FIND("email@email.com", @cell) > 0, [Sick Days]:[Sick Days])
Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.
Did it 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.
-
Hi Andre
That didn't work but I did change the column to 'contact' rather than text and it seems to now work.
I have another question where I need to trigger an email in the event that someone is off 5 times. i.e. 5 rows are generated with the same email address which will trigger an email.
Is this function possible?
Many thanks
-
Happy to help!
Yes, it's possible with a formula.
How many people do you need to check against?
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.
-
Hi Andree
To set the scene there are 35 staff so if they submit a sick form then it will show up on the list but I want it to trigger a notification if a member of staff is off on 5 separate occasions
Regards
-
Hi Andree
To set the scene there are 35 staff so if they submit a sick form then it will show up on the list but I want it to trigger a notification if a member of staff is off on 5 separate occasions. I have set up a separate column called 'sick on 5 or more occasions' and thought this formula would work to count the number of times the email address appears in the column 'your email address' I could then set the trigger to send email based on this number is 5 or more. Problem is the formula does count the email addresses occurrences. Formula is '#incorrect argument set'
=COUNTIF([Your email address]:[Your email address], "phil.lomas@company.org", >4)
Regards
-
You shouldn't use the >4 to count all.
Try this instead.
=COUNTIF([Your email address]:[Your email address], "phil.lomas@company.org")
Do you want to check a checkbox instead?
Hope that helps!
Did it 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.
-
You are a star. It was so obvious I couldn't see it. have removed the >4 and set up the automation and it works perfectly.
Thankyou
-
Thanks!
Happy to help!
It happens to us all!
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.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!