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 / October 2006

Tip: Looking for answers? Try searching our database.

Function error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rosemary - 19 Oct 2006 17:55 GMT
Hi,

What is wrong with my formula?  Here is the formula I wrote.  I placed it in
the function field:

=SUM(IF(J2:O2=""),"",I2-(J2:O2))

Here is what I am trying to do with the formula --

IF J2 thru O2 are all blank,

THEN this cell stays blank

ELSE

This cell shows the result of I2 minus (sum of J2 thru O2)

END IF

Cell I2 is amount due,
J2 thru O2 are payments made,
P2 is balance due.
Requestor wants P2 left blank if no payments have been made.  If payments
have been made, they should be totalled then subtracted from I2, and the
results displayed in P2.

Thanks!

Thanks!
Teethless mama - 19 Oct 2006 18:17 GMT
Try this:

=IF(J2:O2="","",I2-SUM(J2:O2))

> Hi,
>
[quoted text clipped - 25 lines]
>
> Thanks!
Rosemary - 19 Oct 2006 19:19 GMT
Hello,

Thanks for your help with this.  I put it in, and got a #VALUE in that cell.
Also, I tried adding dollar amounts and it didn't calculate.  Sorry for the
bother ...

Rosemary

> Try this:
>
[quoted text clipped - 29 lines]
> >
> > Thanks!
Bernard Liengme - 19 Oct 2006 20:45 GMT
Not sure what the calculation should do but try entering it as an array with
SHIFT+CTRL+ENTER in place of just ENTER
best wishes
Signature

Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

> Hello,
>
[quoted text clipped - 42 lines]
>> >
>> > Thanks!
Rosemary - 19 Oct 2006 20:50 GMT
Hello,

I think the problem is in the first J2:O2 reference.  I write it this way,
referencing only one cell in the range ...

> =IF(J2="","",I2-SUM(J2:O2))

... it works.

I think I just need to figure out how to write the J2 through O2 reference
in the first part of the statement.

Thanks!
Rosemary

> Try this:
>
[quoted text clipped - 29 lines]
> >
> > Thanks!
Teethless mama - 19 Oct 2006 20:48 GMT
=IF(J2:O2="","",I2-SUM(J2:O2))

ctrl>shift>enter  (not just enter)

> Hi,
>
[quoted text clipped - 25 lines]
>
> Thanks!
Rosemary - 19 Oct 2006 20:56 GMT
Great, thanks all.  That worked.  I have one error in my own logic, however.

I want the Balance Due cell (P2) to calculate if ANY ONE OR MORE of the
cells J2 through O2 have amounts entered in them.  Right now, the way I wrote
the logic, it will only calculate of ALL cells (J2 thru O2) have amounts in
them.

Sorry ... how would I change the formula?

Thanks again,
Rosemary

> =IF(J2:O2="","",I2-SUM(J2:O2))
>
[quoted text clipped - 29 lines]
> >
> > Thanks!
PapaDos - 20 Oct 2006 04:38 GMT
=IF( SUMPRODUCT( LEN( J2:O2 ) ) = 0, "", I2 - SUM( J2:O2 ) )
Signature

Regards,
Luc.

"Festina Lente"

> Great, thanks all.  That worked.  I have one error in my own logic, however.
>
[quoted text clipped - 41 lines]
> > >
> > > Thanks!
Roger Govier - 20 Oct 2006 09:50 GMT
Hi Rosemary

Isn't it simply
=IF(COUNT(J2:O)=0,"",I2-SUM(J2:O2))

Signature

Regards

Roger Govier

> Great, thanks all.  That worked.  I have one error in my own logic,
> however.
[quoted text clipped - 48 lines]
>> >
>> > Thanks!
 
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



©2008 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.