Forum Discussion
Titchard Family
Nov 30, 2017Copper Contributor
Add 5 if a cell contains text "yes"
Hi all
Is this possible?. I would like to add several cells together then add "5" to the total if one cell contains the text 'yes'.
I have so far
=SUM(B1,C1,D1,E1)
please help...
- Nov 30, 2017
Hi,
Yes, this is possible!
Try this formula:
=IF(SUM(IFERROR(SEARCH("yes",B1:B10),0))>0,SUM(B1:B10)+5,SUM(B1:B10))
NOTE: To enter this formula press Ctrl+Shift+Enter, this keystroke will force the formula to return the right result.
John Jairo Vergara Domínguez
May 24, 2018Brass Contributor
Hi, to all!
You can use this formula (non CSE formula):
=SUM(B1:B10,5*COUNTIFS(B1:B10,"?*",B1:B10,"<>No"))
Blessings!