Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
slvtenn
 
Posts: n/a
Default Hiding Error in Cells!!

I have a formula in a cell, which reads #VALUE!, that i want to hide if
this error is displayed. My cell formula looks like this.....

=TEXT($K$1-(6-ROW(A1)),"ddd dd")
&IF(AND(DAY($K$1-(6-ROW(A1)))=10,DAY($K$1-(6-ROW(A1)))<=14),"th",
CHOOSE(MOD(DAY($K$1-(6-ROW(A1))),10)+1,"th","st","nd","rd","th","th","th" ,"th","th","th"))

where do i put the "IF(ISERROR" statement??? Any help would be greatly
appreciated!

  #2   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Hiding Error in Cells!!

Hi!

I remember seeing this formula.

Anyhow........

You need to put the whole thing inside of ISERROR:

=IF(ISERROR(your_formula)),"",your_formula))

That's gonna be a long one, ain't it? <bg

Maybe you'd rather use conditional formatting to "hide" the error. The
#VALUE! entry will still be there, you just won't see it:

Select the cell that holds the formula.
Goto FormatConditional Formatting
Formula is: =ISERROR(cell_reference)
Set the font color to be the same as the background color

Another option is to figure out where the error is being generated and try
to rewrite the formula to prevent the error.

Another option is to create a lookup table for the ordinal numbers. That
would eliminate all this:

&IF(AND(DAY($K$1-(6-ROW(A1)))=10,DAY($K$1-(6-ROW(A1)))<=14),"th",
CHOOSE(MOD(DAY($K$1-(6-ROW(A1))),10)+1,"th","st","nd","rd","th","th","th" ,"th","th","th"))


Lots of options!

Biff

"slvtenn" wrote in message
ups.com...
I have a formula in a cell, which reads #VALUE!, that i want to hide if
this error is displayed. My cell formula looks like this.....

=TEXT($K$1-(6-ROW(A1)),"ddd dd")
&IF(AND(DAY($K$1-(6-ROW(A1)))=10,DAY($K$1-(6-ROW(A1)))<=14),"th",
CHOOSE(MOD(DAY($K$1-(6-ROW(A1))),10)+1,"th","st","nd","rd","th","th","th" ,"th","th","th"))

where do i put the "IF(ISERROR" statement??? Any help would be greatly
appreciated!



  #3   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Hiding Error in Cells!!

Clarification:

Another option is to create a lookup table for the ordinal numbers. That
would eliminate all this:

&IF(AND(DAY($K$1-(6-ROW(A1)))=10,DAY($K$1-(6-ROW(A1)))<=14),"th",
CHOOSE(MOD(DAY($K$1-(6-ROW(A1))),10)+1,"th","st","nd","rd","th","th","th" ,"th","th","th"))


A lookup table wouldn't eliminate all that, but all that could be replaced
with this:

&VLOOKUP(DAY($K$1-(6-ROW(A1))),H1:I9,2)

Where H1:I9 is this table:

1..........st
2..........nd
3..........rd
4..........th
21........st
22........nd
23........rd
24........th
31........st

Putting it all together:

=IF(K1="","",TEXT(K1-(6-ROW(A1)),"ddd
dd")&VLOOKUP(DAY(K1-(6-ROW(A1))),H1:I9,2))

Biff

"Biff" wrote in message
...
Hi!

I remember seeing this formula.

Anyhow........

You need to put the whole thing inside of ISERROR:

=IF(ISERROR(your_formula)),"",your_formula))

That's gonna be a long one, ain't it? <bg

Maybe you'd rather use conditional formatting to "hide" the error. The
#VALUE! entry will still be there, you just won't see it:

Select the cell that holds the formula.
Goto FormatConditional Formatting
Formula is: =ISERROR(cell_reference)
Set the font color to be the same as the background color

Another option is to figure out where the error is being generated and try
to rewrite the formula to prevent the error.

Another option is to create a lookup table for the ordinal numbers. That
would eliminate all this:

&IF(AND(DAY($K$1-(6-ROW(A1)))=10,DAY($K$1-(6-ROW(A1)))<=14),"th",
CHOOSE(MOD(DAY($K$1-(6-ROW(A1))),10)+1,"th","st","nd","rd","th","th","th" ,"th","th","th"))


Lots of options!

Biff

"slvtenn" wrote in message
ups.com...
I have a formula in a cell, which reads #VALUE!, that i want to hide if
this error is displayed. My cell formula looks like this.....

=TEXT($K$1-(6-ROW(A1)),"ddd dd")
&IF(AND(DAY($K$1-(6-ROW(A1)))=10,DAY($K$1-(6-ROW(A1)))<=14),"th",
CHOOSE(MOD(DAY($K$1-(6-ROW(A1))),10)+1,"th","st","nd","rd","th","th","th" ,"th","th","th"))

where do i put the "IF(ISERROR" statement??? Any help would be greatly
appreciated!





  #4   Report Post  
Posted to microsoft.public.excel.misc
slvtenn
 
Posts: n/a
Default Hiding Error in Cells!!

Thanks Biff it worked great!!!

  #5   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Hiding Error in Cells!!

You're welcome. Thanks for the feedback!

Biff

"slvtenn" wrote in message
oups.com...
Thanks Biff it worked great!!!





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display first, second, etc Nonblank Cells in a Range Jeremy N. Excel Worksheet Functions 12 September 25th 05 01:47 PM
Use functions when cells are merged Amanda Excel Worksheet Functions 3 September 12th 05 06:08 PM
requires that merged cells must be identically sized? Catt Excel Discussion (Misc queries) 11 July 3rd 05 12:36 PM
Hiding cells on condition Pennington Excel Worksheet Functions 19 April 21st 05 12:30 AM
Hiding Formula in cells thrava Excel Discussion (Misc queries) 2 December 23rd 04 12:42 AM


All times are GMT +1. The time now is 05:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"