IF?

daknight

New Member
Joined
Jan 5, 2005
Messages
34
Hi!
Thanks in advance for any help. I think this one will be easy for the masters :)

I am collecting test data and if I have a certain type of failure, I need the inspector to test more samples.

data entry is in rows, and if any one or more of 5 other cells (E14, G14, I14, K14 or M14)have an "S" entered, I want O14 to say "TEST MORE!"

I have this formula working ----- =IF(E14="S", "TEST MORE!")
but how do I get it to include G, I, K and M?

Thanks for your help!
Darla
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Is it possible for there to be "S" in any of the intermediate cells(F14,H14,J14,L14) ?

If not, you can use countif

=IF(COUNTIF(E14:M14,"S")>0,"TEST MORE!","")
 
Upvote 0
Hi!
Thanks in advance for any help. I think this one will be easy for the masters :)

I am collecting test data and if I have a certain type of failure, I need the inspector to test more samples.

data entry is in rows, and if any one or more of 5 other cells (E14, G14, I14, K14 or M14)have an "S" entered, I want O14 to say "TEST MORE!"

I have this formula working ----- =IF(E14="S", "TEST MORE!")
but how do I get it to include G, I, K and M?

Thanks for your help!
Darla
One way:

=IF(LEFT(E14&G14&I14&K14&M14)="S","Test More","")
 
Upvote 0
Thank you ALL SO MUCH for your help. All suggestions work, so I appreciate seeing the different options!! always learning!
thanks!
Darla
 
Upvote 0
could you please help me add to this formula??? (thanks SO much if you can :)

this is the formula I am using for now in cell O14:

=IF(COUNTIF(E14:M14,"S")>0,"TEST MORE!","")
this signals the inspector if there is an "S" type failure in E14,G14,I14, K14, M14 to test more

could I also add that if Cells F14, H14, J14, L14 OR N14 contain a 3, 4, 8 or 9 , Cell O14 would say "REJECT" ??
This is way too sticky for me to figure out!
Thanks a lot!
Darla
 
Upvote 0
Glad to help...

Again, provided the 3,4,8 or 9 will NOT appear in the intermidate cells as mentioned in my previous post..

=IF(COUNTIF(E14:M14,"S")>0,"TEST MORE!",IF(SUM(COUNTIF(E14:M14,{3,4,8,9}))>0,"REJECT",""))
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,634
Members
452,934
Latest member
Jdsonne31

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