"IF" addition question

The Animal

Active Member
Joined
May 26, 2011
Messages
449
Hi
Maybe somebody can help.

I would like a formula that sums cells T3, Q3, N3 if the text "PP" is or "C" is found in the cell "A3" (I.E 200PP or 155C) but if "S" is found in "A3" then the value 45 is populated.

Thanks for any help
Stephen
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Thanks for your help Logit.
I have looked at link and still having issues
I have come up with below
=SUM(COUNT($C$3:$C$27,{"*S*","*PT*"}),V$3:V$27) which is supposed to sum the values from V3:V27 only if S or PT is found in C3:C27 and ignore any others but I keep getting incorrect answer which is above what actual should be?
Any help would be great
Stephen
 
Upvote 0
Ok I have now used =SUMIF($C$3:$C$27,"*S*",V$3:V$27) but I need to SumIF either S or PT is found in C3:C27 not just S
Any help would be great
Stephen
 
Upvote 0
.
For the "PP" or "C" use this formula :
Code:
=IF(SUM(COUNTIF(A3:N3:Q3:T3,{"*PP*","*C*"})),"x","")

For the "S" in A3 use this formula :
Code:
=IF(SUM(COUNTIF(A3,{"*S*"})),"45","")

I believe you will need to use two separate cells for the above formulas. I do not believe you can create a formula to be used in one cell, that will track all the conditions you are seeking.
 
Upvote 0
Hi,

Based on your description in Post #3 and #4 , not #1 where you said if S then 45, let me know if you need changes:


Book1
CDV
16
2
3200P1
423S452
5155C3
645PT884
Sheet18
Cell Formulas
RangeFormula
C1=SUMPRODUCT(ISNUMBER(SEARCH({"*S*","*PT*"},$C$3:$C$27))*(V$3:V$27))
 
Upvote 0
.
For the "PP" or "C" use this formula :
Code:
[COLOR=#FF0000]=IF(SUM(COUNTIF(A3:N3:Q3:T3,{"*PP*","*C*"})),"x","")[/COLOR][/[COLOR=#FF0000][/COLOR]CODE]

For the "S" in A3 use this formula :  [CODE]=IF(SUM(COUNTIF(A3,{"*S*"})),"45","")

I believe you will need to use two separate cells for the above formulas. I do not believe you can create a formula to be used in one cell, that will track all the conditions you are seeking.

Hi,

Highlighted in red above, that doesn't SUM anything in Column V, it just places an "x" in the subject cell if PP or C is found.
 
Upvote 0

Forum statistics

Threads
1,215,254
Messages
6,123,893
Members
449,131
Latest member
leobueno

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top