Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Why am I getting a #VALUE! error?

I'm getting a #VALUE! error in this formula:
=SUM(Main!K180:K197)+Main!K218

If I remove the +Main!K218 from the formula, the error goes away. So, I
figured that there must be a problem with Main!K218. So, just to test it, I
manually entered a "zero" in Main!K218. Voila, the error went away. So, I
figured that the formula doesn't like an "empty" value ... but it can,
apparently, handle a "zero" in the field. (When Main!K218 = 0, I don't get
the #VALUE! error.)

So, again, I guess the formula doesn't like an "empty" value which,
apparently, results from the "" in Main!K218's formula he
=IF(A218=0,"",IF(SUM(L174:L219)+SUM(M174:M219)=0," ",IF(L2180,(J218-(L218/100*J218)),(J218-M218))))

But, I DON'T want to display a "zero" in Main!K218. I want it to appear as
"blank" (empty). A lot of fields have that same (type of) formula so if I
have to display a zero instead of blank/empty, I'll have zeroes all over the
place. It'll make my spreadsheet look very "messy" so I want to avoid that.

If all of the above makes sense ...
how can I display a blank/empty value (not a "zero") in Main!K218 and still
avoid the #VALUE! error in the formula =SUM(Main!K180:K197)+Main!K218?

Whew.

Thanks. Dan





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Why am I getting a #VALUE! error?

Try =SUM(Main!K187:A197,Main!K208) instead

Kathy
"crimsonkng" wrote in message
...
I'm getting a #VALUE! error in this formula:
=SUM(Main!K180:K197)+Main!K218

If I remove the +Main!K218 from the formula, the error goes away. So, I
figured that there must be a problem with Main!K218. So, just to test it,

I
manually entered a "zero" in Main!K218. Voila, the error went away. So,

I
figured that the formula doesn't like an "empty" value ... but it can,
apparently, handle a "zero" in the field. (When Main!K218 = 0, I don't

get
the #VALUE! error.)

So, again, I guess the formula doesn't like an "empty" value which,
apparently, results from the "" in Main!K218's formula he

=IF(A218=0,"",IF(SUM(L174:L219)+SUM(M174:M219)=0," ",IF(L2180,(J218-(L218/10
0*J218)),(J218-M218))))

But, I DON'T want to display a "zero" in Main!K218. I want it to appear

as
"blank" (empty). A lot of fields have that same (type of) formula so if I
have to display a zero instead of blank/empty, I'll have zeroes all over

the
place. It'll make my spreadsheet look very "messy" so I want to avoid

that.

If all of the above makes sense ...
how can I display a blank/empty value (not a "zero") in Main!K218 and

still
avoid the #VALUE! error in the formula =SUM(Main!K180:K197)+Main!K218?

Whew.

Thanks. Dan







  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Why am I getting a #VALUE! error?

Woo-hoo, it worked! Thanks, Kathy! Yer a pal!

"Kathy" wrote:

Try =SUM(Main!K187:A197,Main!K208) instead

Kathy
"crimsonkng" wrote in message
...
I'm getting a #VALUE! error in this formula:
=SUM(Main!K180:K197)+Main!K218

If I remove the +Main!K218 from the formula, the error goes away. So, I
figured that there must be a problem with Main!K218. So, just to test it,

I
manually entered a "zero" in Main!K218. Voila, the error went away. So,

I
figured that the formula doesn't like an "empty" value ... but it can,
apparently, handle a "zero" in the field. (When Main!K218 = 0, I don't

get
the #VALUE! error.)

So, again, I guess the formula doesn't like an "empty" value which,
apparently, results from the "" in Main!K218's formula he

=IF(A218=0,"",IF(SUM(L174:L219)+SUM(M174:M219)=0," ",IF(L2180,(J218-(L218/10
0*J218)),(J218-M218))))

But, I DON'T want to display a "zero" in Main!K218. I want it to appear

as
"blank" (empty). A lot of fields have that same (type of) formula so if I
have to display a zero instead of blank/empty, I'll have zeroes all over

the
place. It'll make my spreadsheet look very "messy" so I want to avoid

that.

If all of the above makes sense ...
how can I display a blank/empty value (not a "zero") in Main!K218 and

still
avoid the #VALUE! error in the formula =SUM(Main!K180:K197)+Main!K218?

Whew.

Thanks. Dan








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
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
Error Handling - On Error GoTo doesn't trap error successfully David Excel Programming 9 February 16th 06 05:59 PM
run-time error '1004': Application-defined or object-deifined error [email protected] Excel Programming 5 August 10th 05 09:39 PM
Automation Error, Unknown Error. Error value - 440 Neo[_2_] Excel Programming 0 May 29th 04 05:26 AM


All times are GMT +1. The time now is 01:30 AM.

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

About Us

"It's about Microsoft Excel"