Specify Excel increments in autofill

gl4sses

New Member
Joined
Aug 7, 2021
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
I'm looking to use excel autofill to complete my formulas in a specific way. My formula is:

=IF(Sheet1!E2<$A$2,$A$2,IF(Sheet1!E2>$A$3,A$3,Sheet1!E2))

I drag down to autofill all instances of E2 --> E3 and so on, as I'd like.

I also want to drag right to make incremental formulae where all instances of A$2 --> B$2 and so on, as well as all instances of E2 --> F2 and so on:

=IF(Sheet1!F2<$B$2,$B$2, IF(Sheet1!F2>$B$3,B$3, Sheet1!F2))

Instead, I get this:

=IF(Sheet1!F2<$A$2,$A$2,IF(Sheet1!F2>$A$3,B$3,Sheet1!F2))

I'm aware that there are some macros that can do this for me, but I'm not very familiar with excel macros and I wouldn't know how to edit them for my specific issue.

Any help would be appreciated, thank you!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
It looks like you just need to remove some of the $ symbols from your formula. If there is a $ symbol then it will not change as you drag it, if there is no $ symbol then it will change.

From the examples you give, I think that you need to change it to
Excel Formula:
=IF(Sheet1!E2<A$2,A$2,IF(Sheet1!E2>A$3,A$3,Sheet1!E2))
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,696
Members
449,048
Latest member
81jamesacct

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