Drag copying

ddub25

Well-known Member
Joined
Jan 11, 2007
Messages
625
Office Version
  1. 2019
Platform
  1. Windows
Is there a way of drag copying the formula below to the right so that the last cell reference will increment by one each time. The last cell reference is $F$30. When I drag the formula to the right to copy it, I want $F$30 to have changed to $F$31.

=IF(AND($B30<>"",$A30>=M$25),$F30-$F$30,"--")

I have 600 columns and don't really want to have to manually adjust the formula.

Dan
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Is there a way of drag copying the formula below to the right so that the last cell reference will increment by one each time. The last cell reference is $F$30. When I drag the formula to the right to copy it, I want $F$30 to have changed to $F$31.

=IF(AND($B30<>"",$A30>=M$25),$F30-$F$30,"--")

I have 600 columns and don't really want to have to manually adjust the formula.

Dan
Try this...

Let's assume the first cell the formula will be entered in is cell B2.

=IF(AND($B30<>"",$A30>=M$25),$F30-INDEX($F$30:$F$1000,COLUMNS($B2:B2)),"--")

Adjust for the correct end of range F1000.
 
Upvote 0
thanks, that's great - does exactly what I want.

Dan
 
Upvote 0

Forum statistics

Threads
1,224,596
Messages
6,179,807
Members
452,944
Latest member
2558216095

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