Sumproduct Not Updating Relative Column Reference

isadoko

Active Member
Joined
Jan 10, 2005
Messages
322
Office Version
  1. 365
Platform
  1. Windows
I am using this seemingly simple formula: =SUMPRODUCT(--(owssvr!$A:$A>=$B$1)*(--(owssvr!T:T=$B$2)))

I started in B3 and dragged it down to B30. I expected the column T to increase to column BG but stayed put at column T. Does Excel not increment if I drag down for column reference? I noticed it did increase when dragged horizontally. I would appreciate an explanation and perhaps a better way. Thank you.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
The key to this is in the word "relative". If you type =A1 into cell B1 and drag copy across, the column reference will increment, but the row reference will not. If you drag copy downwards, the row will increment but the column reference will not. So it's not correct to expect the column references to increment in your case.

You will most likely need to find a solution using the INDIRECT and/or OFFSET functions.
 
Upvote 0

Forum statistics

Threads
1,214,571
Messages
6,120,302
Members
448,954
Latest member
EmmeEnne1979

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