LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
agarwaldvk
 
Posts: n/a
Default Can this be done using Sumproduct?


Hi everybody

I have this requirement where I am required to find the total number of
entries that meet critieria in three columns. I have used the below
listed formula to realize that :-


=SUMPRODUCT((INDEX(WE_20060319,,10)="NN01")*(INDEX (WE_20060319,,5)=1)*(((INDEX(WE_20060319,,3))<=C$3 )*((INDEX(WE_20060319,,3))(C$3-7))))

This works OK but the problem was that in the first argument there
(reproduced below) :-

((INDEX(WE_20060319,,10)="NN01")

the value of "NN01" represents the region encompassing various number
of outlets. For example, the region and outlets are related like so :-

Region Outlet Code
NN01 AUBY
NN01 AUGH
NN01 AYGR
NN02 BUYE
NN03 BJUR
NN01 AUBT

etc.etc.

The region code is in column 10 ('J') and outlet code is in column 1
('A')

The region code as such does not form a part of source data but is
available on a separate mapping worksheet which shows the association
of each of the outlets with a region code. To be able to use the
Sumproduct function, I had to actually introduced another column in the
source data worksheet (Column 'J') with matching values of the region
code from the mapping worksheet for each of the outlet code entries in
the source data.

I was wondering if this can be done using sumproduct :-

=SUMPRODUCT((INDEX(WE_20060319,,10)=A1:C8)*(INDEX( WE_20060319,,5)=1)*(((INDEX(WE_20060319,,3))<=C$3) *((INDEX(WE_20060319,,3))(C$3-7)))).

The range "A1:C1" on the worksheet containing the formula (this
worksheet is obviously different from either the source data worksheet
or the mapping worksheet) lists all the outlets falling under the
region code "NN01".

The number of rows in the named range "WE_20060319" will always far
exceed the number of entries in any given region code.

I am reproducing an example from the XLDynamic page to indicate tdhat
this could be something that I could be looking for :-


Example 3: Instead of typing the multiple criteria into the formula,
can I have them typed into cells, and just reference the cells?

Solution: This seeemd a simple request to which a solution of
=SUMPRODUCT((B5:B63=L1:N1)*(C5:C63))
was suggested.
This failed because the requester wanted the criteria in a column, not
a row, so this required the TRANSPOSE function to incorporate in
SUMPRODUCT. This was the result
=SUMPRODUCT((B5:B63=TRANSPOSE(P46:P48))*(C5:C63))

which, because it uses the TRANSPOSE function, has to be entered as an
array formula.



Any suggestions please??????????



Best regards



Deepak Agarwal


--
agarwaldvk
------------------------------------------------------------------------
agarwaldvk's Profile: http://www.excelforum.com/member.php...o&userid=11345
View this thread: http://www.excelforum.com/showthread...hreadid=537634

 
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
Adding "OR" to a Sumproduct Formula Duke Carey Excel Worksheet Functions 0 March 21st 06 06:41 PM
Need help with sumproduct & dynamic ranges bill_s1416 Excel Worksheet Functions 1 March 19th 06 03:36 AM
Sumproduct Peter B Excel Worksheet Functions 1 March 7th 05 01:59 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


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