How to change which value increments when pasting/filling?

Christien

New Member
Joined
Oct 6, 2005
Messages
14
I'm sure this question has been asked and answered before, but obviously I don't know what search terms to use!

When filling a series by dragging the lower right corner handle, how to I force excel to increment a different value?

I want to paste the following formula to many cells:
=IF(X1="y",'[clients.xls]05035'!E100, 0)
(basically, if the column X value indicates the file is active, read the E100 value from worksheet 05035 in clients.xls)

But when I paste it to multiple cells by filling in automatically, I want to increase the file # (in this case, 05035) by one each time, not the reference cell E100 (that should always stay the same). So when I drag it down to fill, or copy paste it, I want to get:
=IF(X1="y",'[clients.xls]05036'!E100, 0)

Any ideas?

Thanks in advance!
Chris
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
The data inside the single quotes in your formula is considered as Text by Excel and therefore will not increment during autofill operations.
I don't know if this is possible. There may be someone that has a clever work around.
 
Upvote 0
I'm still pretty new at excel, but I had thought that may the problem, that the stuff in the single quotes isn't considered formula.

Anyone have an idea for a workaround? I don't like the thought of manually entering this in hundreds of cells...

Thanks!
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,836
Members
449,096
Latest member
Erald

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