#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Function error

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!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Function error

Try this:

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


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!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Function error

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



"Teethless mama" wrote:

Try this:

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


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!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Function error

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
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Rosemary" wrote in message
...
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



"Teethless mama" wrote:

Try this:

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


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!



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Function error

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

ctrlshiftenter (not just enter)



"Rosemary" wrote:

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!



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Function error

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

"Teethless mama" wrote:

Try this:

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


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!

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Function error

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

"Teethless mama" wrote:

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

ctrlshiftenter (not just enter)



"Rosemary" wrote:

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!

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 208
Default Function error

=IF( SUMPRODUCT( LEN( J2:O2 ) ) = 0, "", I2 - SUM( J2:O2 ) )
--
Regards,
Luc.

"Festina Lente"


"Rosemary" wrote:

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

"Teethless mama" wrote:

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

ctrlshiftenter (not just enter)



"Rosemary" wrote:

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!

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Function error

Hi Rosemary

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

--
Regards

Roger Govier


"Rosemary" wrote in message
...
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

"Teethless mama" wrote:

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

ctrlshiftenter (not just enter)



"Rosemary" wrote:

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!



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
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
How too set last edited date in excel and which user was it? jinlarse Excel Worksheet Functions 5 March 23rd 06 02:26 PM
Function giving error Martin Excel Discussion (Misc queries) 3 October 1st 05 12:58 PM
Function giving Error Martin Excel Worksheet Functions 3 October 1st 05 03:49 AM
Custom function returning VALUE error alex.k Excel Discussion (Misc queries) 6 September 27th 05 03:05 AM


All times are GMT +1. The time now is 06:39 PM.

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"