#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default sumif nightmare!

I was wondering if it's possible to use sumif with multiple criteria? In a
pivot table I have periods in a column with their corresponding values by
month in each row. In the left most column of the pivot table I have sorted
by revenue & expenses. I need to sumif (column d:d,"revenue" and column
e:e,"LY 2007", values in column f:f)

Sorry for the confusion!
--
Thanks for your help!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default sumif nightmare!

Sumproduct will be better on this case

=sumproduct(--(a2:a100=a1)*(b2:b100=b2),(c2:c100))

just a sample, a1 and b1 has the conditonal

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"TamIam" escreveu:

I was wondering if it's possible to use sumif with multiple criteria? In a
pivot table I have periods in a column with their corresponding values by
month in each row. In the left most column of the pivot table I have sorted
by revenue & expenses. I need to sumif (column d:d,"revenue" and column
e:e,"LY 2007", values in column f:f)

Sorry for the confusion!
--
Thanks for your help!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default sumif nightmare!

Did I do something wrong? I entered
=SUMPRODUCT(--(A6:A845="Revenue")*(D6:D845="LY 2007"),(E6:E845)) and the
formula didn't work. It gave me a value of -10 which is the value in cell E6?

Thanks again!
--



"Marcelo" wrote:

Sumproduct will be better on this case

=sumproduct(--(a2:a100=a1)*(b2:b100=b2),(c2:c100))

just a sample, a1 and b1 has the conditonal

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"TamIam" escreveu:

I was wondering if it's possible to use sumif with multiple criteria? In a
pivot table I have periods in a column with their corresponding values by
month in each row. In the left most column of the pivot table I have sorted
by revenue & expenses. I need to sumif (column d:d,"revenue" and column
e:e,"LY 2007", values in column f:f)

Sorry for the confusion!
--
Thanks for your help!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default sumif nightmare!

No need to reply - it worked beautifully once I had my columns set up
properly! Thank you soooo much!
--
Thanks for your help!


"Marcelo" wrote:

Sumproduct will be better on this case

=sumproduct(--(a2:a100=a1)*(b2:b100=b2),(c2:c100))

just a sample, a1 and b1 has the conditonal

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"TamIam" escreveu:

I was wondering if it's possible to use sumif with multiple criteria? In a
pivot table I have periods in a column with their corresponding values by
month in each row. In the left most column of the pivot table I have sorted
by revenue & expenses. I need to sumif (column d:d,"revenue" and column
e:e,"LY 2007", values in column f:f)

Sorry for the confusion!
--
Thanks for your help!

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
PivotTable Nightmare Sandi Excel Discussion (Misc queries) 3 March 3rd 07 04:34 PM
Concatenate Nightmare! DEE Excel Worksheet Functions 10 November 16th 06 12:00 AM
PivotTable Nightmare MarkM Excel Discussion (Misc queries) 1 August 14th 06 07:41 PM
VLookup Nightmare! twarden Excel Worksheet Functions 3 July 24th 06 11:46 PM
IF Statement nightmare eugenevr Excel Discussion (Misc queries) 6 May 18th 05 01:09 PM


All times are GMT +1. The time now is 12:15 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"