#1   Report Post  
Posted to microsoft.public.excel.misc
Ken Ken is offline
external usenet poster
 
Posts: 590
Default SUMIF? Or other?

Excel2003 ...

Range A4:A50 ... contains Text (may repeat)
Range D4:J50 .... contains numbers
Range A52:A57 ... contains "unique" Text from Range A4:A50

I want to sum all the values in Range D4:J50 when the value in Range A4:A50
matches "unique" value in Range A52:A57.

My 1st formula is ... =Sumif(A4:A50,A52,D4:J50) ... but it is not returning
value I expect.

Col A ..... Col D thru Col J

aaaa 1 - 3 - 0 - 3 - 0 - 0 - 0
bbbb 0 - 0 - 0 - 1 - 0 - 0 - 4
aaaa 2 - 1 - 2 - 0 - 1 - 1 - 1
cccc 4 - 2 - 0 - 0 - 2 - 1 - 0
aaaa 3 - 0 - 1 - 1 - 1 - 1 - 2
bbbb 1 - 2 - 1 - 2 - 0 - 2 - 1

Unique ... (return value I wish)

aaaa ... = 24
bbbb ... = 14
cccc ... = 9
etc

Thanks ... Kha






  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default SUMIF? Or other?

=SUMPRODUCT((A4:A50=A52)*(D4:J50))

--
---
HTH

Bob


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



"Ken" wrote in message
...
Excel2003 ...

Range A4:A50 ... contains Text (may repeat)
Range D4:J50 .... contains numbers
Range A52:A57 ... contains "unique" Text from Range A4:A50

I want to sum all the values in Range D4:J50 when the value in Range
A4:A50
matches "unique" value in Range A52:A57.

My 1st formula is ... =Sumif(A4:A50,A52,D4:J50) ... but it is not
returning
value I expect.

Col A ..... Col D thru Col J

aaaa 1 - 3 - 0 - 3 - 0 - 0 - 0
bbbb 0 - 0 - 0 - 1 - 0 - 0 - 4
aaaa 2 - 1 - 2 - 0 - 1 - 1 - 1
cccc 4 - 2 - 0 - 0 - 2 - 1 - 0
aaaa 3 - 0 - 1 - 1 - 1 - 1 - 2
bbbb 1 - 2 - 1 - 2 - 0 - 2 - 1

Unique ... (return value I wish)

aaaa ... = 24
bbbb ... = 14
cccc ... = 9
etc

Thanks ... Kha








  #3   Report Post  
Posted to microsoft.public.excel.misc
Ken Ken is offline
external usenet poster
 
Posts: 590
Default SUMIF? Or other?

Yes ... worked perfect ... (Once I got rid of a hidden character in 1 of my
cells)

Thanks for supporting these boards ... Kha

"Bob Phillips" wrote:

=SUMPRODUCT((A4:A50=A52)*(D4:J50))

--
---
HTH

Bob


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



"Ken" wrote in message
...
Excel2003 ...

Range A4:A50 ... contains Text (may repeat)
Range D4:J50 .... contains numbers
Range A52:A57 ... contains "unique" Text from Range A4:A50

I want to sum all the values in Range D4:J50 when the value in Range
A4:A50
matches "unique" value in Range A52:A57.

My 1st formula is ... =Sumif(A4:A50,A52,D4:J50) ... but it is not
returning
value I expect.

Col A ..... Col D thru Col J

aaaa 1 - 3 - 0 - 3 - 0 - 0 - 0
bbbb 0 - 0 - 0 - 1 - 0 - 0 - 4
aaaa 2 - 1 - 2 - 0 - 1 - 1 - 1
cccc 4 - 2 - 0 - 0 - 2 - 1 - 0
aaaa 3 - 0 - 1 - 1 - 1 - 1 - 2
bbbb 1 - 2 - 1 - 2 - 0 - 2 - 1

Unique ... (return value I wish)

aaaa ... = 24
bbbb ... = 14
cccc ... = 9
etc

Thanks ... Kha









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
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
Sumif? Muppet Excel Discussion (Misc queries) 2 June 22nd 05 06:21 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 12:43 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"