Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default SUMIF based on 2 columns instead of 1?

I have columns Person ("Adam", "Bob", "Charlie"), Day ("Monday",
"Tuesday", etc), Total. I'd like to SUMIF based on BOTH Person and Day
(e.g. sum for "Bob" and "Tuesday"). I'd rather not use PivotTables,
because (1) this is pretty simple and (2) people here are scared of
PivotTables. Can i use SUMIF based on 2 columns, either by
concatenating the text or with an array? Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default SUMIF based on 2 columns instead of 1?

You are better off with sumproduct. Check out this site for further details...

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Bookmark this site. It is a great reference...
--
HTH...

Jim Thomlinson


" wrote:

I have columns Person ("Adam", "Bob", "Charlie"), Day ("Monday",
"Tuesday", etc), Total. I'd like to SUMIF based on BOTH Person and Day
(e.g. sum for "Bob" and "Tuesday"). I'd rather not use PivotTables,
because (1) this is pretty simple and (2) people here are scared of
PivotTables. Can i use SUMIF based on 2 columns, either by
concatenating the text or with an array? Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default SUMIF based on 2 columns instead of 1?

Hi there,

Try something like ..

=SUMPRODUCT((A1:A100="Bob")*(B1:B100="Tuesday"),C1 :C100)

Where column A has your names, column B has your days and column C has the
associated value you wish to sum.

HTH

--
Regards,
Zack Barresse, aka firefytr


wrote in message
oups.com...
I have columns Person ("Adam", "Bob", "Charlie"), Day ("Monday",
"Tuesday", etc), Total. I'd like to SUMIF based on BOTH Person and Day
(e.g. sum for "Bob" and "Tuesday"). I'd rather not use PivotTables,
because (1) this is pretty simple and (2) people here are scared of
PivotTables. Can i use SUMIF based on 2 columns, either by
concatenating the text or with an array? Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default SUMIF based on 2 columns instead of 1?


You can use SUMPRODUCT, e.g.

SUMPRODUCT(--(A2:A100="Bob"),--(B2:B100="Tuesday"),C2:C100)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=540054

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default SUMIF based on 2 columns instead of 1?

Have you tried an array function, something like

=(SUM((A1:A3="Bob")*(B1:B3="Tuesday")))

then use ctrl shift enter to set it as array

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 based on several criteria. Mike Excel Worksheet Functions 6 April 17th 09 10:01 PM
SUMIF based on duplicates? Tacrier Excel Discussion (Misc queries) 3 October 26th 08 08:18 PM
Average/Sumif based on several columns mslabbe Excel Worksheet Functions 3 February 4th 07 09:40 PM
Average/Sumif based on several columns mslabbe Excel Worksheet Functions 0 February 4th 07 05:49 PM
SUMIF in multiple columns based on other criteria in Excel? Scott Powell Excel Discussion (Misc queries) 9 April 13th 05 02:32 PM


All times are GMT +1. The time now is 11:33 AM.

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"