Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JJ JJ is offline
external usenet poster
 
Posts: 122
Default SUMIF with criteria

Hi,
I need to sumif the amount with the criteria of segment 'Cafe' and product
'mayo'.
I am using this function with the sheetname 'cafe S MTD07'. I should get a
return amount of 30 instead of 60.

SUMIF('cafe S MTD07'!A:A,B1,'cafe S MTD07'!C:C)

A B C
Segment Product Amount
1 Cafe Mayo 10
2 Cafe Mayo 20
3 Hotel Mayo 30
4 Cafe Pudding 30

Pls enlighten me...

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JJ JJ is offline
external usenet poster
 
Posts: 122
Default SUMIF with criteria

I m able to find the solution using sumproduct.
=SUMPRODUCT(('cafe S MTD07'!$C$2:$C$9999="CAFES, CAFETERIA, BAR&PUB")*('cafe
S MTD07'!$H$2:$H$9999=G8)*('cafe S MTD07'!$J$2:$J$9999))

But at the end of the sumproduct, i need to total sum the value. Its return
'0'. How do i make it to calculate all the total value ?
"jj" wrote:

Hi,
I need to sumif the amount with the criteria of segment 'Cafe' and product
'mayo'.
I am using this function with the sheetname 'cafe S MTD07'. I should get a
return amount of 30 instead of 60.

SUMIF('cafe S MTD07'!A:A,B1,'cafe S MTD07'!C:C)

A B C
Segment Product Amount
1 Cafe Mayo 10
2 Cafe Mayo 20
3 Hotel Mayo 30
4 Cafe Pudding 30

Pls enlighten me...

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMIF with criteria

Try it like this:

=SUMPRODUCT(--('cafe S MTD07'!A1:A4="cafe"),--('cafe S
MTD07'!B1:B4="mayo"),'cafe S MTD07'!C1:C4)

Note that with SUMPRODUCT you can't use entire columns as range references
unless you're using Excel 2007.


--
Biff
Microsoft Excel MVP


"jj" wrote in message
...
Hi,
I need to sumif the amount with the criteria of segment 'Cafe' and product
'mayo'.
I am using this function with the sheetname 'cafe S MTD07'. I should get a
return amount of 30 instead of 60.

SUMIF('cafe S MTD07'!A:A,B1,'cafe S MTD07'!C:C)

A B C
Segment Product Amount
1 Cafe Mayo 10
2 Cafe Mayo 20
3 Hotel Mayo 30
4 Cafe Pudding 30

Pls enlighten me...



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
SUMIF Criteria Emile[_2_] Excel Worksheet Functions 1 April 24th 07 04:25 PM
Criteria in SUMIF Space Elf Excel Worksheet Functions 2 December 22nd 05 06:43 PM
SUMIF with two criteria?? Potatosalad2 Excel Discussion (Misc queries) 3 October 25th 05 09:59 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
Sumif() with criteria Jim May Excel Worksheet Functions 4 February 18th 05 02:29 PM


All times are GMT +1. The time now is 03:28 AM.

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"