Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Please help with SumIf

What am I doing wrong with this formula?

=SUMIF(L7:L7,"0",(L7*S7))

What I really want to do, is, if L7 has any value in it
then I want to multiply this value by the value that is in S7.
If there is no value (blank cell), then I want the cell that would contain
the product to remain blank.

L7 represents quantity
S7 represents Cost Per Unit
U7 represents Total

When I try to multiply L7 to S7, I get errors. I amtrying to avoid having
many cells with the 0 (zero) value
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Please help with SumIf

When I try to multiply L7 to S7, I get errors.

Do you mean that this formula gives you an error:

=L7*S7

Does it return a #VALUE! error? If so, that means one of or both values are
TEXT. Format those cells as GENERAL then select each cell and press function
key F2 then hit ENTER. That should fix the error problem (unless there are
unseen characters like spaces in one or both cells).

What I really want to do, is, if L7 has any value in it
then I want to multiply this value by the value that is in S7.


=IF(ISNUMBER(L7),L7*S7,"")

Biff

"Ne0dammerung" wrote in message
...
What am I doing wrong with this formula?

=SUMIF(L7:L7,"0",(L7*S7))

What I really want to do, is, if L7 has any value in it
then I want to multiply this value by the value that is in S7.
If there is no value (blank cell), then I want the cell that would contain
the product to remain blank.

L7 represents quantity
S7 represents Cost Per Unit
U7 represents Total

When I try to multiply L7 to S7, I get errors. I amtrying to avoid having
many cells with the 0 (zero) value



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default Please help with SumIf

Hi

SUMIF sums up values in one range when condition in another range is true -
you have there not a range as 3rd argument at all, and more generally, you
have only single cells in your formula - so no need for summing at all.
=IF(OR(L7="",S7=""),"",L7*S7)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"Ne0dammerung" wrote in message
...
What am I doing wrong with this formula?

=SUMIF(L7:L7,"0",(L7*S7))

What I really want to do, is, if L7 has any value in it
then I want to multiply this value by the value that is in S7.
If there is no value (blank cell), then I want the cell that would contain
the product to remain blank.

L7 represents quantity
S7 represents Cost Per Unit
U7 represents Total

When I try to multiply L7 to S7, I get errors. I amtrying to avoid having
many cells with the 0 (zero) value



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
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
How to use SUMIF function with non-adjacent cells KLaw Excel Worksheet Functions 5 October 19th 06 10:15 AM
Sumif of Sumif perhaps? Fred Excel Discussion (Misc queries) 2 March 29th 06 05:39 PM
SUMIF Ferg Excel Worksheet Functions 3 February 28th 06 03:37 AM
SUMIF with Mutiple Ranges & Criteria PokerZan Excel Discussion (Misc queries) 5 August 4th 05 10:31 PM


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"