SUM Column B if Column A contains a certain value
Hi all,
So I am trying to add all values of a column, but only where the row has a certain value on column A into a sheet summary field.
This is what I have but it does not work.
=IF(ColA:ColA = "Word"; SUM(ColB:ColB))
I think I understand why, but do not know how to write the function correctly.
Note that if I do this on a single line, my function works perfectly.
Thanks for helping
Best Answers
-
Hi Andre,
Try something like this.
=SUMIF(ColA:ColA; "Word"; ColB:ColB)
The same version but with the below changes for your and others convenience.
=SUMIF(ColA:ColA, "Word", ColB:ColB)
Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma."
Did that work?
I hope that helps!
Have a fantastic week!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
✅Did my post 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.
-
Thank you so much Andrée.
Working perfectly.
Answers
-
Hi Andre,
Try something like this.
=SUMIF(ColA:ColA; "Word"; ColB:ColB)
The same version but with the below changes for your and others convenience.
=SUMIF(ColA:ColA, "Word", ColB:ColB)
Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma."
Did that work?
I hope that helps!
Have a fantastic week!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
✅Did my post 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.
-
Thank you so much Andrée.
Working perfectly.
-
Excellent!
Happy to help!
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.
-
I have items that are divided into regions in Column A and I want to sum the population values of Column B IF then share the same region in Column A. I am trying this formula and it is presenting a value - but the value is incorrect. Help? =SUMIF(Region:Region, =Region@row, Population:Population)
-
Hi @Sommer
Is your Region column multi-select? Can you also confirm that the Population column is housing the values as numerical, not text? Numbers will appear on the right of the cell and text appears on the left.
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!