#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default #VALUE! Error

I have a cell in F8 with the formula =E8/C8, that references a formula in E8
containing an IF function formual: =IF((D8-C8)<=0,"",(D8-C8)). These
formulas are used throughout the spreadsheet.

A #VALUE! shows in column F if there are no values in the cells referred to
in the formulas. Is there a way to stop this from showing in the spreadsheet?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,104
Default #VALUE! Error

=if(ISERROR(E8/C8),"",E8/C8)
or
=IF(COUNT(E8,C8)=2,E8/C8,"")
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"bgcooker" wrote in message
...
I have a cell in F8 with the formula =E8/C8, that references a formula in
E8
containing an IF function formual: =IF((D8-C8)<=0,"",(D8-C8)). These
formulas are used throughout the spreadsheet.

A #VALUE! shows in column F if there are no values in the cells referred
to
in the formulas. Is there a way to stop this from showing in the
spreadsheet?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default #VALUE! Error

Maybe
=IF(ISERROR(E8/C8),"",E8/C8)

Regards,
Stefi

€˛bgcooker€¯ ezt Ć*rta:

I have a cell in F8 with the formula =E8/C8, that references a formula in E8
containing an IF function formual: =IF((D8-C8)<=0,"",(D8-C8)). These
formulas are used throughout the spreadsheet.

A #VALUE! shows in column F if there are no values in the cells referred to
in the formulas. Is there a way to stop this from showing in the spreadsheet?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 143
Default #VALUE! Error

I have a cell in F8 with the formula =E8/C8, that references a formula
in E8 containing an IF function formual: =IF((D8-C8)<=0,"",(D8-C8)).
These formulas are used throughout the spreadsheet.

A #VALUE! shows in column F if there are no values in the cells
referred to in the formulas. Is there a way to stop this from showing
in the spreadsheet?


One way is to use something like this in F8:
=IF(C8=0,"undefined",N(E8)/C8)
The N() function addresses the problem you asked about. Without it, F8
might be trying to do arithmetic combining a number (in C8) with a text
value (""); the two don't mix well that way. See Excel's built-in Help for
details of the N() function.

The IF() deals with potential division-by-zero errors.

If C8 contains a formula that might return "" then use N(C8) in the
formulas.
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
Error of slope taking into account error of the data points cer144 Excel Worksheet Functions 5 July 7th 08 07:26 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
I have Error 1919 Error Configuring ODBC dataSource Database Texanna1 Excel Discussion (Misc queries) 1 September 12th 06 06:35 AM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM


All times are GMT +1. The time now is 10:27 AM.

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"