Formula problem

Tony Miall

Active Member
Joined
Oct 16, 2007
Messages
304
Morning all,

In a worksheet called MICROMETER I have a range I3:I40 in which each cell of that range has a result of either "OK" or "OVERDUE"

In another worksheet (called FRONT PAGE) I want cell B3 to show the result "OK" only if all of the cells I3:I40 in MICROMETER = OK, if one of the cells in the range does not = OK I want cell B3 in FRONT PAGE to = OVERDUE.

I did this with the following formula :
Code:
=IF(MICROMETER!$I$3:$I$40="OK", "OK", IF(NOT(MICROMETER!I3:$I$40="OK"),"OVERDUE",""))
this seems to work.

However when I apply the same formula
Code:
=IF(VERNIER!$I$3:$I$40="OK", "OK", IF(NOT(VERNIER!I4:$I$40="OK"),"OVERDUE",""))
in cell B4 in FRONT PAGE to look at another worksheet called VERNIER it doesn't work and I can't understand why??

Any help much appreciated as usual.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Morning all,

In a worksheet called MICROMETER I have a range I3:I40 in which each cell of that range has a result of either "OK" or "OVERDUE"

In another worksheet (called FRONT PAGE) I want cell B3 to show the result "OK" only if all of the cells I3:I40 in MICROMETER = OK, if one of the cells in the range does not = OK I want cell B3 in FRONT PAGE to = OVERDUE.

I did this with the following formula :
Code:
=IF(MICROMETER!$I$3:$I$40="OK", "OK", IF(NOT(MICROMETER!I3:$I$40="OK"),"OVERDUE",""))
this seems to work.

However when I apply the same formula
Code:
=IF(VERNIER!$I$3:$I$40="OK", "OK", IF(NOT(VERNIER!I4:$I$40="OK"),"OVERDUE",""))
in cell B4 in FRONT PAGE to look at another worksheet called VERNIER it doesn't work and I can't understand why??

Any help much appreciated as usual.
What if there are empty cells in the range?
 
Upvote 0
Thanks Valko,

Yours didn't quite work but ended up with this

=IF(COUNTIF(VERNIER!$I$3:$I$40,"OK")<COUNTA(VERNIER!$I$3:$I$40),"OVERDUE","OK")

Thanks for your help
 
Upvote 0
sorry this


=IF(COUNTIF(VERNIER!$I$3:$I$40,"OK")<?XML:NAMESPACE PREFIX = COUNTA(VERNIER!$I$3 /><COUNTA(VERNIER!$I$3:$I$40),"OVERDUE","OK")< p>
Hmmm...

Are you sure that does what you want?

That doesn't make sure EVERY cell in the range contains OK.

Maybe I misunderstood what you want.

:confused:
</COUNTA(VERNIER!$I$3:$I$40),"OVERDUE","OK")<>
 
Upvote 0
Not sure whats going on here but this is what I have been trying to paste hope it works this time

=IF(COUNTIF(VERNIER!$I$3:$I$40,"OK")<COUNTA(VERNIER!$I$3:$I$40),"OVERDUE","OK")

thanks again
 
Upvote 0

Forum statistics

Threads
1,224,591
Messages
6,179,768
Members
452,940
Latest member
rootytrip

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