Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Sumproduct Question

I think I need to use sumproduct for this. I want to add two columns based
on matching of one criteria.

For example

A B C D
---------------------------------------------------------
User A 3 User A 6
User B 4 User B 5
User A 5 User B 3

So my results for User A would by 14 and User B would be 12



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Sumproduct Question

Hi
=SUMIF(A:A,"User A",B:B)+SUMIF(C:C,"User A",D:D)

But you may consider also changing your layout to a 2-column layout :-)

--
Regards
Frank Kabel
Frankfurt, Germany
"Dthmtlgod" schrieb im Newsbeitrag
...
I think I need to use sumproduct for this. I want to add two columns based
on matching of one criteria.

For example

A B C D
---------------------------------------------------------
User A 3 User A 6
User B 4 User B 5
User A 5 User B 3

So my results for User A would by 14 and User B would be 12





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default Sumproduct Question

Hello, for a single sumproduct() call, try:

=SUMPRODUCT((A11:A13="User A")*(B11:B13)+(C11:C13="User A")*(D11:D13))
=SUMPRODUCT((A11:A13="User B")*(B11:B13)+(C11:C13="User B")*(D11:D13))

Regards,
Nate Oliver
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
SUMPRODUCT question PFAA Excel Discussion (Misc queries) 13 June 2nd 08 07:58 PM
Sumproduct question John in Wembley Excel Discussion (Misc queries) 6 January 29th 08 08:26 PM
Sumproduct Question Sandy Excel Worksheet Functions 4 October 13th 07 12:45 PM
SUMPRODUCT question Conan Kelly Excel Worksheet Functions 2 January 5th 07 08:26 PM
SUMPRODUCT QUESTION RGB Excel Discussion (Misc queries) 3 June 15th 06 05:11 PM


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