Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 73
Default Sumproduct where cell values are the same in a sorted column

In cell C2 I have the following formula that works fine for what I need it
for.

=SUMPRODUCT(($L1:$L23<$B1)*($M1:$M23<=$A$1)*($L13: $L23=$K1))

In the cells in column J i have a list of numbers that are the same in the
following different ranges as follows
J2:J23 = 123456
J24:J30 = 123457
J31 = 123458
J32:J33 = 123459
etc.

I copy the formula in cell C2 down the column and then I have to manually
change the range in the formula to match the ranges of other columns. So the
following cells will have the following formulas in. The rest of the cells in
the range are deleted.

C2 =SUMPRODUCT(($L2:$L23<$B1)*($M2:$M23<=$A$1)*($L2:$ L23=$K1))
C24 =SUMPRODUCT(($L24:$L30<$B1)*($M24:$M30<=$A$1)*($L2 4:$L30=$K1))
C31 =SUMPRODUCT(($L31:$L31<$B1)*($M31:$M31<=$A$1)*($L3 1:$L31=$K1))
C32 =SUMPRODUCT(($L32:$L33<$B1)*($M32:$M33<=$A$1)*($L3 2:$L33=$K1))

What I need is to copy the formula in cell C2 down the page so it displays
the answer to the formula in the first cell where the entries in the ranges
in column J are the same but blanks are in the rest of the cells in the range.

e.g.
Cell C2 =SUMPRODUCT(($L2:$L23<$B1)*($M2:$M23<=$A$1)*($L2:$ L23=$K1))
Cell C3 BLANK
etc.,
Cell C23 BLANK

Cell C24 =SUMPRODUCT(($L24:$L30<$B1)*($M24:$M30<=$A$1)*($L2 4:$L30=$K1))
Cell C25 BLANK
etc.,
Cell C30 BLANK

Cell C31 =SUMPRODUCT(($L31:$L31<$B1)*($M31:$M31<=$A$1)*($L3 1:$L31=$K1))

Cell C32 =SUMPRODUCT(($L32:$L33<$B1)*($M32:$M33<=$A$1)*($L3 2:$L33=$K1))
Cell C33 BLANK

I hope this makes sense.

Thank you in advance for any help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 834
Default Sumproduct where cell values are the same in a sorted column

Just copy them down across J2:J32, then delete the ones you don't want, it
will take 10 seconds.

--

HTH

Bob

"Mally" wrote in message
...
In cell C2 I have the following formula that works fine for what I need it
for.

=SUMPRODUCT(($L1:$L23<$B1)*($M1:$M23<=$A$1)*($L13: $L23=$K1))

In the cells in column J i have a list of numbers that are the same in the
following different ranges as follows
J2:J23 = 123456
J24:J30 = 123457
J31 = 123458
J32:J33 = 123459
etc.

I copy the formula in cell C2 down the column and then I have to manually
change the range in the formula to match the ranges of other columns. So
the
following cells will have the following formulas in. The rest of the cells
in
the range are deleted.

C2 =SUMPRODUCT(($L2:$L23<$B1)*($M2:$M23<=$A$1)*($L2:$ L23=$K1))
C24 =SUMPRODUCT(($L24:$L30<$B1)*($M24:$M30<=$A$1)*($L2 4:$L30=$K1))
C31 =SUMPRODUCT(($L31:$L31<$B1)*($M31:$M31<=$A$1)*($L3 1:$L31=$K1))
C32 =SUMPRODUCT(($L32:$L33<$B1)*($M32:$M33<=$A$1)*($L3 2:$L33=$K1))

What I need is to copy the formula in cell C2 down the page so it displays
the answer to the formula in the first cell where the entries in the
ranges
in column J are the same but blanks are in the rest of the cells in the
range.

e.g.
Cell C2 =SUMPRODUCT(($L2:$L23<$B1)*($M2:$M23<=$A$1)*($L2:$ L23=$K1))
Cell C3 BLANK
etc.,
Cell C23 BLANK

Cell C24 =SUMPRODUCT(($L24:$L30<$B1)*($M24:$M30<=$A$1)*($L2 4:$L30=$K1))
Cell C25 BLANK
etc.,
Cell C30 BLANK

Cell C31 =SUMPRODUCT(($L31:$L31<$B1)*($M31:$M31<=$A$1)*($L3 1:$L31=$K1))

Cell C32 =SUMPRODUCT(($L32:$L33<$B1)*($M32:$M33<=$A$1)*($L3 2:$L33=$K1))
Cell C33 BLANK

I hope this makes sense.

Thank you in advance for any help.



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
move a row of data values to a column in sorted order moving row data to a column in a sorted[_2_] Excel Discussion (Misc queries) 2 February 21st 10 11:13 PM
Create sorted list based on cell values Jon Excel Discussion (Misc queries) 7 October 9th 09 07:30 AM
First Value in Sorted Column is Not Sorted Properly jgraves Excel Discussion (Misc queries) 3 August 4th 09 07:19 PM
SUMPRODUCT calculating difference between column values Mike Excel Worksheet Functions 8 February 28th 09 07:39 AM
Returning Sorted Values Kevin Mulvaney Excel Worksheet Functions 3 January 9th 09 04:32 PM


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