Matching conditions in cells

arniebun

New Member
Joined
Jun 11, 2020
Messages
43
Office Version
  1. 365
Platform
  1. Windows
I have look everywhere for this but can't find the answer. I have a row of cells with different numbers and i want to know if the all meet certain conditions. I want it to display healthily all the cells meet the conditions and fail if they don't. please help, would be appreciated.

clipspaperboxesfoldersgrowth
-13385.75​
-10.8​
6.29%​
1.617%​
#VALUE!​
if all metif not
when this is less than 0when this is less than 0more than 1.5%more than 1 %not more than 4% and not less than -4%healthilyfail
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Check this if it can help you..

Put this formula in F2, If your data in range from A2:E2


=IF(AND((IF(A2<0,"Healthily","Fail"))=(IF(B2<0,"Healthily","Fail")),(IF(B2<0,"Healthily","Fail"))=(IF(C2>1.5%,"Healthily","Fail")),(IF(C2>1.5%,"Healthily","Fail"))=(IF(D2>1%,"Healthily","Fail")),(IF(D2>1%,"Healthily","Fail"))=(IF(AND(E2<=4%,E2>=-4%),"Healthily","Fail"))),"Healthily","Fail")
 
Upvote 0
Solution
Check this if it can help you..

Put this formula in F2, If your data in range from A2:E2


=IF(AND((IF(A2<0,"Healthily","Fail"))=(IF(B2<0,"Healthily","Fail")),(IF(B2<0,"Healthily","Fail"))=(IF(C2>1.5%,"Healthily","Fail")),(IF(C2>1.5%,"Healthily","Fail"))=(IF(D2>1%,"Healthily","Fail")),(IF(D2>1%,"Healthily","Fail"))=(IF(AND(E2<=4%,E2>=-4%),"Healthily","Fail"))),"Healthily","Fail")
Premjeet, you a legend, thanks a million
 
Upvote 0
Does this much simpler one do the job too?

Excel Formula:
=IF(AND(A2<0,B2<0,C2>1.5%,D2>1%,E2<=4%,E2>=-4%),"healthily","fail")
 
Upvote 0
Fwiw, the accepted solution will return the wrong result if all the conditions fail, in which case it will return 'healthy!'
13385.75​
10.8​
0.29%​
0.62%​
12%​
Healthily
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,817
Members
449,049
Latest member
cybersurfer5000

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