Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / November 2005

Tip: Looking for answers? Try searching our database.

Help with #VALUE! error please...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ted - 21 Nov 2005 17:09 GMT
Hi, can anyone tell me how to change the value of an empty cell to a zero
please?

I am using =SUM(A1-B1 A2-B2 A3-B3 and so on)

It performs the sum ok and everything, but when one of the cells is blank,
it just returns a #VALUE massage, because its being asked to sum blanks etc.
How can I get around this please, and have a zero appear in the answer cells
(C1 C2 C3 etc)??

Thanks in advance,

Ted.
Gary L Brown - 21 Nov 2005 17:37 GMT
=IF(ISNUMBER(A1),A1,0)-IF(ISNUMBER(B1),B1,0)

HTH,
Signature

Gary Brown
gary_brown@ge_NOSPAM.com
If this post was helpful, please click the ''''Yes'''' button next to
''''Was this Post Helpfull to you?".

> Hi, can anyone tell me how to change the value of an empty cell to a zero
> please?
[quoted text clipped - 9 lines]
>
> Ted.
Ted - 21 Nov 2005 18:02 GMT
sorr, but noup - it accounts for zeros I think, but it changes the other
correct sums to zero.

thanks anyway,
Ted.

> =IF(ISNUMBER(A1),A1,0)-IF(ISNUMBER(B1),B1,0)
>
[quoted text clipped - 13 lines]
> >
> > Ted.
Ron Rosenfeld - 21 Nov 2005 19:31 GMT
>Hi, can anyone tell me how to change the value of an empty cell to a zero
>please?
[quoted text clipped - 9 lines]
>
>Ted.

=SUM(A1-B1) should not produce an error if either or both cells are blank.  

And neither will the equivalent and simpler formula  =A1-B1

I suspect that either A1 or B1 or both are NOT blank.  What is the result of
these formulas:  
    =ISBLANK(A1)
    =ISBLANK(B1)

One method of outputting a zero unless A1 and B1 BOTH contain numbers is:

=IF(COUNT(A1:B1)=2,A1-B1,0)

--ron
Ted - 21 Nov 2005 20:09 GMT
hi, no - they contain formula, sorry. Is there a way of gettign it to ignore
the formula and return a zero when there are no numbers in the cell - it
displays the answer to a previous formula.

thanks, Ted.

> >Hi, can anyone tell me how to change the value of an empty cell to a zero
> >please?
[quoted text clipped - 24 lines]
>
> --ron
Ron Rosenfeld - 21 Nov 2005 20:47 GMT
>hi, no - they contain formula, sorry.

Ah -- that makes a big difference.  What is the formula?

>Is there a way of gettign it to ignore
>the formula and return a zero when there are no numbers in the cell - it
>displays the answer to a previous formula.

Post the formulas from A1 & B1.

What was the problem with the formula I suggested?

> One method of outputting a zero unless A1 and B1 BOTH contain numbers is:
>
> =IF(COUNT(A1:B1)=2,A1-B1,0)

--ron
Ted - 21 Nov 2005 21:02 GMT
Hi Ron, its:

=IF(AND(C4-D4>0,COUNT(C4:D4)=2),IF(ROUND(7/(C4-D4),5)>0.5,ROUND(7/(C4-D4),5),""),"")

quite a handfull I'm afraid. the actual cell reference for where the formula
result is to display is E43

the currnet formula is:

=SUM(C23-Sheet1!C23)

the first cell is on 'Sheet 2' and the second on 'Sheet 1'

Any ideas please??

Ted.

> >hi, no - they contain formula, sorry.
>
[quoted text clipped - 13 lines]
>
> --ron
Ron Rosenfeld - 21 Nov 2005 21:25 GMT
>Hi Ron, its:
>
>=IF(AND(C4-D4>0,COUNT(C4:D4)=2),IF(ROUND(7/(C4-D4),5)>0.5,ROUND(7/(C4-D4),5),""),"")

So this formula is in Sheet1!C23 and also in Sheet2!C23

>quite a handfull I'm afraid. the actual cell reference for where the formula
>result is to display is E43
>
>the currnet formula is:

=SUM(C23-Sheet1!C23)

in Sheet2!E43 /

>the first cell is on 'Sheet 2' and the second on 'Sheet 1'
>
>Any ideas please??

1.  Change the formulas in Sheet1!C23 and Sheet2!C23 to:

=IF(AND(C4<>D4,COUNT(C4:D4)=2),IF(ROUND(7/(C4-D4),5)>0.5,ROUND(7/(C4-D4),5),""),"")

2.  Change your SUM formula in E43 to:

=IF(COUNT(Sheet2:Sheet1!C23)=2,SUM(Sheet2:Sheet1!C23),0)

--ron
Ted - 21 Nov 2005 22:29 GMT
Hi Ron, thanks - that works great $;-)

Ted.

> >Hi Ron, its:
> >
[quoted text clipped - 24 lines]
>
> --ron
Ron Rosenfeld - 21 Nov 2005 23:10 GMT
>Hi Ron, thanks - that works great $;-)
>
>Ted.

Ahh -- You're most welcome.  Good thing, too, as I'm out of town starting
tomorrow for the rest of the week!

--ron
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.