Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
EstherJ
 
Posts: n/a
Default Sum based on criteria in rows and columns

I have a sheet of data which runs horizontally containing 12 months of data.
I need a formula which will lookup criteria horizontally as well as
vertically and return the summed value of all occurences. So I would like it
to sum all instances of FR and abc when row 1 equals Nov-05 and row 2 equals
OOH.

A B C D
1 Nov-05 Nov-05
2 REP CUST OOH VALUE
3 FR abc 100 300
4 FR abc 200 100
5 JPZ def 300 200
6 JPZ def 100 300
7 JPZ ghi 200 100
8 JPZ ghi 300 200

Thank you in advance,

Esther




  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default Sum based on criteria in rows and columns

=SUMPRODUCT((A2:A20="FR")*(B2:B20="abc")*(C1:Z1=--"2005-11-05")*(C2:Z2="OOH"
),C2:Z20)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"EstherJ" wrote in message
...
I have a sheet of data which runs horizontally containing 12 months of

data.
I need a formula which will lookup criteria horizontally as well as
vertically and return the summed value of all occurences. So I would like

it
to sum all instances of FR and abc when row 1 equals Nov-05 and row 2

equals
OOH.

A B C D
1 Nov-05 Nov-05
2 REP CUST OOH VALUE
3 FR abc 100 300
4 FR abc 200 100
5 JPZ def 300 200
6 JPZ def 100 300
7 JPZ ghi 200 100
8 JPZ ghi 300 200

Thank you in advance,

Esther






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
Insert rows based on specific value bob Excel Worksheet Functions 6 February 29th 08 08:11 PM
How to swap rows and columns? [email protected] Excel Discussion (Misc queries) 5 September 21st 05 09:07 AM
Arithmetical Mode of Criteria in Multiple Non-Adjacent columns Sam via OfficeKB.com Excel Worksheet Functions 4 July 14th 05 10:15 PM
inserting columns within certain rows only crimsonkng Excel Discussion (Misc queries) 4 July 14th 05 06:13 PM
Removing Near-Duplicate Rows, Leaving Those w/Most Data in Specific Columns foofoo Excel Discussion (Misc queries) 1 April 2nd 05 01:02 AM


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