Fill Down Help

eckert1961

New Member
Joined
Aug 16, 2002
Messages
36
Hello,

I have the following formula that I want to fill down in one column.

Code:
=IF(Sheet1!I3="Cost",(SUMPRODUCT(--(MONTH(Sheet1!$J$6:$J$1000)&YEAR(Sheet1!$J$6:$J$1000)=MONTH(A2)&YEAR(A2)), Sheet1!$I$6:$I$1000)),
(SUMPRODUCT(--(MONTH(Sheet1!$K$6:$K$1000)&YEAR(Sheet1!$K$6:$K$1000)=MONTH(A2)&YEAR(A2)), Sheet1!$J$6:$J$1000)))

When I fill down, Sheet1!I3 and the cell reference in MONTH(A2)&YEAR(A2)) increments. I only want the cell reference in MONTH(A2)&YEAR(A2)) to change. Is there a way to do this?

Thanks,
Chris
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Try

=IF(Sheet1!I$3="Cost",(SUMPRODUCT(--(MONTH(Sheet1!$J$6:$J$1000)&YEAR(Sheet1!$J$6:$J$1000)=MONTH(A2)&YEAR(A2)), Sheet1!$I$6:$I$1000)),
(SUMPRODUCT(--(MONTH(Sheet1!$K$6:$K$1000)&YEAR(Sheet1!$K$6:$K$1000)=MONTH(A2)&YEAR(A2)), Sheet1!$J$6:$J$1000)))
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,258
Members
452,901
Latest member
LisaGo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top