LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default SUM columns based on 2 pieces of logic

=SUMPRODUCT(--(rng1=A1),--(rng2=B1),rng3)

unlike SUMIF, SUMPRODUCT in Excel prior to 2007 won't take whole columns, it
has to be a defined range.

--
---
HTH

Bob


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



"LOGICAL" wrote in message
...
(col 1) (col 2) (col 3)
PRICE REP_ID FY_PD
5072 17 801
1008 17 801
14656 4 801
14760 68 802
1344 68 802
7302 4 802
1899 4 802
33978 4 802
904 68 802
6500 68 802
5640 4 803
1380 4 803
76500 68 803
3900 68 803
50660 4 803
7302 4 803
61326 68 803
500 4 803
3744 4 803
153000 68 803
60120 85 804
1908 68 804
6275 68 804

I am trying to create a summary of the above data using 2 inputs. I need
help on the function or nested functions.

If cell A1 = 68 and cell B1 = 802 I want to return the sum from the data
above of all prices (column 1) to cell C1 where B1 and C1 are true.

I was trying SUMIF() but that is only good for 1piece of logic not 2.
Also
SUMIF() would not refer to a cell but required hard code of "=68".



 
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
Counting 2 different pieces of data in 2 different columns Cindyt Excel Worksheet Functions 5 September 29th 09 11:43 PM
selecting an answer based on a 3 way logic Sam B Excel Worksheet Functions 3 November 29th 07 07:11 PM
DISPLAY Image Based on Logic RayportingMonkey Excel Discussion (Misc queries) 5 July 25th 07 05:54 PM
count pieces of records meet conditions in different columns Amy Excel Worksheet Functions 1 July 19th 07 10:39 AM
combining 2 pieces of text from 2 columns alexy Excel Worksheet Functions 3 September 15th 05 10:35 AM


All times are GMT +1. The time now is 07:00 PM.

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"