IF Function? Multiple Columns of Data but requires one overall output

Ozzy23

New Member
Joined
Dec 21, 2023
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hi All,


I have 10 columns and 10 rows. The cells contain numbers 0-5 randomly, see a small 5X5 sample below:

Column AColumn BColumn CColumn DColumn EColumn F (Overall Status)
Row 112345Blocked
Row 201234Fail
Row 3 54321Blocked
Row 4 32102Fail
Row 544444Pass

The numbers represent the following:

  • 0 = Unexecuted
  • 1 = Fail
  • 2 = In Progress
  • 3 = In Review
  • 4 = Pass
  • 5 = Blocked
I want to create a column at the end that summarizes these statuses, Where if any row has the following:

  • If any row has a 5 the final status should be "Blocked"
  • If any row has no 5 but has a 1 (Fail) then final status should be "Fail"
  • If any row is All 4's (Passes) then the final status should be "Pass"
  • And so on..

I was trying to do a IF statement but miserably failing and unsure of how to do a IF function when it's considering all 10 columns. Also the the logic of which status should be the overall status as 'Blocked' and 'Fail' trump other statuses.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I don't know what the and so on.. refers to, but with what you've given so far

=IF(COUNTIF(A2:E2,5),"Blocked",IF(COUNTIF(A2:E2,1),"Fail",IF(COUNTIF(A2:E2,4)=5,"Pass","")))
 
Upvote 0
I don't know what the and so on.. refers to, but with what you've given so far

=IF(COUNTIF(A2:E2,5),"Blocked",IF(COUNTIF(A2:E2,1),"Fail",IF(COUNTIF(A2:E2,4)=5,"Pass","")))

Thank you so much Scott this worked! The and so on was just referring to additional rules I would like to implement so this worked perfectly! THANK YOU!!!
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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