IF Function for three conditions? How? PLEASE.

jpbonono

Board Regular
Joined
Aug 18, 2013
Messages
154
Badly needed your help here masters!

You will notice the "remarks" field (cell E, H, K, N, Q, T, W, Z) with a total count of 8. I have three conditions for the "final remark" (cell AC) and these are:

1. if FAILED remark counted less than equal to "7" (seven) but not "0" (zero), FINAL REMARK should be "IRREGULAR".
2. if FAILED remark counted "0" (zero), FINAL REMARK should be "RETAINED".
3. if PROMOTED remark counted "8" (eight) or no FAILED remark is acquired, FINAL REMARK should be "REGULAR"

Here's the screen shot.

1655645_848176191864023_349238461_o.jpg



Your ASAP help will be very much appreciated.

Thanks guys!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
One way:

=IF(COUNTIF($E3:$Z3,"Promoted")=8,"Regular",IF(COUNTIF($E3:$Z3,"Failed")=0,"Retained","Irregular"))

[edit] - it assumes the contents between comments will never contain the words "Promoted" or "Failed".
 
Upvote 0
1. if FAILED remark counted less than equal to "7" (seven) but not "0" (zero), FINAL REMARK should be "IRREGULAR".
2. if FAILED remark counted "0" (zero), FINAL REMARK should be "RETAINED".
3. if PROMOTED remark counted "8" (eight) or no FAILED remark is acquired, FINAL REMARK should be "REGULAR"

Your #2 condition - "if FAILED remark counted Zero" and the second part of #3 condition "no FAILED remark is acquired" is the same. That's wrong !!
 
Upvote 0
I agree with that, its a bit confusing, what do you mean by the first criteria?

These seems to work with a countif approach.

IF failed shows up <=7 to put in "irregular" ? but not "0" (zero) confuses me

1. if FAILED remark counted less than equal to "7" (seven) but not "0" (zero), FINAL REMARK should be "IRREGULAR".

should post a sample data with all the end results.
 
Upvote 0
I agree with that, its a bit confusing, what do you mean by the first criteria?

These seems to work with a countif approach.

IF failed shows up <=7 to put in "irregular" ? but not "0" (zero) confuses me

1. if FAILED remark counted less than equal to "7" (seven) but not "0" (zero), FINAL REMARK should be "IRREGULAR".

should post a sample data with all the end results.

Your #2 condition - "if FAILED remark counted Zero" and the second part of #3 condition "no FAILED remark is acquired" is the same. That's wrong !!


hi guys, sorry about the confusion. My bad. If FAILED remark counted zero it should be "REGULAR" not "RETAINED"


Let me just rephrase the criteria.

1.) If FAILED remark counted 7 - 1, the FINAL REMARK should say "IRREGULAR".
2.) If FAILED remark counted none (0), it should say "REGULAR". (which means the remark says 8 "PROMOTED")
3.) If FAILED remark counted 8, it should have a FINAL REMARK "IRREGULAR".

Hope this clarifies. Thanks!
 
Upvote 0
One way:

=IF(COUNTIF($E3:$Z3,"Promoted")=8,"Regular",IF(COUNTIF($E3:$Z3,"Failed")=0,"Retained","Irregular"))

[edit] - it assumes the contents between comments will never contain the words "Promoted" or "Failed".

Hi to this asala! however, i have three remarks, retained, irregular, and regular. Though this really works fine!
 
Upvote 0

Forum statistics

Threads
1,222,905
Messages
6,168,949
Members
452,227
Latest member
sam1121

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