#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David Harrison
 
Posts: n/a
Default SUMIF FUNCTION

Hi There

I currently have the function that works fine but i need to put another
argument into it and i am struggling.
Currently:

=SUMIF('Sales Ledger'!B:B,"JAN",'Sales Ledger'!F:F)

However, on the Sales ledger page i have another box with different details
in. The is in Colum C:C and the current details is Tool Hire.

How do i get the query to only add up the sum if cell Colum B has JAN and
Colum C has Tool Hire.

Thanks

David
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default SUMIF FUNCTION

=SUMPRODUCT(--('Sales Ledger'!B1:B100="JAN"),--('Sales Ledger'!C1:C100="Tool
Hire"),'Sales Ledger'!F1:F100)

Note that SUMPRODUCT doesn't work with complete columns, you have to specify
a range.


--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"David Harrison" wrote in message
...
Hi There

I currently have the function that works fine but i need to put another
argument into it and i am struggling.
Currently:

=SUMIF('Sales Ledger'!B:B,"JAN",'Sales Ledger'!F:F)

However, on the Sales ledger page i have another box with different

details
in. The is in Colum C:C and the current details is Tool Hire.

How do i get the query to only add up the sum if cell Colum B has JAN and
Colum C has Tool Hire.

Thanks

David



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ardus Petus
 
Posts: n/a
Default SUMIF FUNCTION

=SUMPRODUCT(('Sales Ledger'!B1:B65536="JAN")*('Sales Ledger'!C1:C65536="Tool
Hire"),'Sales Ledger'!F1:F65536)

SUMPRODUCT doesn't like whole columns!

HTH
--
AP

"David Harrison" a écrit dans le
message de news: ...
Hi There

I currently have the function that works fine but i need to put another
argument into it and i am struggling.
Currently:

=SUMIF('Sales Ledger'!B:B,"JAN",'Sales Ledger'!F:F)

However, on the Sales ledger page i have another box with different
details
in. The is in Colum C:C and the current details is Tool Hire.

How do i get the query to only add up the sum if cell Colum B has JAN and
Colum C has Tool Hire.

Thanks

David



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
Can I add and IF function to a SUMIF function? adscrim Excel Worksheet Functions 4 January 21st 06 12:32 PM
SUMIF Function Inside SUMPRODUCT Function Abdul Waheed Excel Worksheet Functions 17 September 19th 05 04:24 PM
SumIF function ACDenver Excel Discussion (Misc queries) 2 August 17th 05 09:47 PM
Sumif function with remote cell references hennis Excel Worksheet Functions 1 August 12th 05 01:54 AM
SUMIF function yak10 Excel Worksheet Functions 0 February 12th 05 05:12 PM


All times are GMT +1. The time now is 02:19 PM.

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

About Us

"It's about Microsoft Excel"