#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default SUMIF / IF

I have a spreadsheet with different data in multiple columns. Depending on
whether those columns have certain criteria i need to sum a different column.

A B C D
E
1 TS NYMEX FP_FIN 2500 $10,000
2 TPORT NYMEX FP_FIN 2500 -$50,000
3 TS AECO BASIS_FIN 2500 -$40,000
4 TS MALIN BASIS_FIN 2500 $5000
5 TS HSC BASIS_FIN 2500 $2500
6 TS NYMEX FP_FIN 10000 $4500

i would like to sum column E based on what A, B and C say - A has to equal
"TS", B - "NYMEX" and C-"FP_FIN" to add rows 1 and 6.

I've been juggling vlookups, sumifs and ifs in my head but i can't seem to
figure it out.

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default SUMIF / IF

=SUMPRODUCT(--(A1:A6="TS"),--(B1:B6="NYMEX"),--(C1:C6="FP_FIN"),E1:E6)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Daniel Q." wrote in message
...
I have a spreadsheet with different data in multiple columns. Depending on
whether those columns have certain criteria i need to sum a different
column.

A B C D
E
1 TS NYMEX FP_FIN 2500 $10,000
2 TPORT NYMEX FP_FIN 2500 -$50,000
3 TS AECO BASIS_FIN 2500 -$40,000
4 TS MALIN BASIS_FIN 2500 $5000
5 TS HSC BASIS_FIN 2500 $2500
6 TS NYMEX FP_FIN 10000 $4500

i would like to sum column E based on what A, B and C say - A has to equal
"TS", B - "NYMEX" and C-"FP_FIN" to add rows 1 and 6.

I've been juggling vlookups, sumifs and ifs in my head but i can't seem to
figure it out.

Thanks,



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default SUMIF / IF

=sumproduct(--(A1:A6="TS")*(B1:B6="NYMEX")*(C1:C6="FP_FIN"),(E1: E6))

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



"Daniel Q." escreveu:

I have a spreadsheet with different data in multiple columns. Depending on
whether those columns have certain criteria i need to sum a different column.

A B C D
E
1 TS NYMEX FP_FIN 2500 $10,000
2 TPORT NYMEX FP_FIN 2500 -$50,000
3 TS AECO BASIS_FIN 2500 -$40,000
4 TS MALIN BASIS_FIN 2500 $5000
5 TS HSC BASIS_FIN 2500 $2500
6 TS NYMEX FP_FIN 10000 $4500

i would like to sum column E based on what A, B and C say - A has to equal
"TS", B - "NYMEX" and C-"FP_FIN" to add rows 1 and 6.

I've been juggling vlookups, sumifs and ifs in my head but i can't seem to
figure it out.

Thanks,

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default SUMIF / IF

Are you sure you need the double unary minus before the first term, Marcelo?
Doesn't the multiplication force the conversion from true/false to 1/0 ?
--
David Biddulph

"Marcelo" wrote in message
...
=sumproduct(--(A1:A6="TS")*(B1:B6="NYMEX")*(C1:C6="FP_FIN"),(E1: E6))


"Daniel Q." escreveu:

I have a spreadsheet with different data in multiple columns. Depending
on
whether those columns have certain criteria i need to sum a different
column.

A B C D
E
1 TS NYMEX FP_FIN 2500 $10,000
2 TPORT NYMEX FP_FIN 2500 -$50,000
3 TS AECO BASIS_FIN 2500 -$40,000
4 TS MALIN BASIS_FIN 2500 $5000
5 TS HSC BASIS_FIN 2500 $2500
6 TS NYMEX FP_FIN 10000 $4500

i would like to sum column E based on what A, B and C say - A has to
equal
"TS", B - "NYMEX" and C-"FP_FIN" to add rows 1 and 6.

I've been juggling vlookups, sumifs and ifs in my head but i can't seem
to
figure it out.

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
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" Harry Seymour Excel Worksheet Functions 9 June 12th 07 10:47 PM
SUMIF Alectrical Excel Worksheet Functions 4 December 13th 05 12:15 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


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