Hide #VALUE! from cells

D

dgraham

Hi,

I have cells showing #VALUE!, because the cell it is referencing is
blank (i think this the cause), is there a way for it not to show. I
have used IF statements in the past for simple formula's but the
formula for this is a bit complicated (thanks Biff), thanks for any
assistance.

Regards

David
 
D

dgraham

Thanks Carim,

this is the formula i've got, tried inserting the iserror you gave but
got an error.
=IF(B3="","",MAX((Shed!$B$3:$E$46=B3)*(ROW($1:$44)))&CHOOSE(MAX((Shed!$B$3:$E$46=B3)*(COLUMN(Shed!$B$3:$E$46))),"","D","C","B","A"))

Hope this may give you some idea.

Regards

David
 
B

Bob Phillips

You could use conditional formatting, with a formula of =ISERROR(A1) and set
the font colour to white.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
B

Biff

Hi!

=IF(B3="","",MAX((Shed!$B$3:$E$46=B3)*(ROW($1:$44)))&CHOOSE(MAX((Shed!$B$3:$E$46=B3)*(COLUMN(Shed!$B$3:$E$46))),"","D","C","B","A"))

The only thing that I can see (from the formula) that would cause an error
is if the bus number wasn't listed in Shed, then the Choose function would
cause the error.

So, try this:

=IF(OR(B3="",COUNTIF(Shed,B3)=0),"",MAX((Shed=B3)*(ROW($1:$44)))&CHOOSE(MAX((Shed=B3)*(COLUMN(Shed))),"","D","C","B","A"))

If that doesn't solve the problem I'd need to see the file to figure it out.

Biff
 
Top