sumproduct-can fill down change column reference?

D

dcd123

I have a worksheet that is using the sumproduct function based on
criteria on another sheet. I need to use the same function in other
cells so I am using the fill handle to bring it down, but I want one of
the criteria references to change by column, not by row.

Please help!! :confused:
 
M

Morrigan

Can you post your formula? Which part of the formula should be changed
by column as you drag it down?
 
D

dcd123

=SUMPRODUCT(('Sales thru 9-16-05'!$1:$1=Summary!$B2)*('Sales thru
9-16-05'!B$2:B$1433=TRUE))

While filling down, I want the reference in the second criteria to
change from B$2:B$1433 to C$2:C$1433, then in the next cell down
D$2:D$1433, etc.

Does that help?
 
M

Morrigan

See attachment, hope it helps.

=SUMPRODUCT(('Sales thru 9-16-05'!$1:$1=Summary!$B2)*('Sales thr
9-16-05'!B$2:B$1433=TRUE))

While filling down, I want the reference in the second criteria t
change from B$2:B$1433 to C$2:C$1433, then in the next cell dow
D$2:D$1433, etc.

Does that help

+-------------------------------------------------------------------
|Filename: Column.zip
|Download: http://www.excelforum.com/attachment.php?postid=3843
+-------------------------------------------------------------------
 
B

Biff

Hi!

Based on what your formula is actually doing, try this:

=COUNTIF('sales thru 9-16-05'!$1:$1,Summary!$B2)*COUNTIF(OFFSET('sales thru
9-16-05'!B$2:B$1433,,(ROW(1:1)-1)*1),TRUE)

Biff
 
Top