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

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Datsmart

Well-known Member
Joined
Jun 19, 2003
Messages
7,985
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.
 

Christien

New Member
Joined
Oct 6, 2005
Messages
14
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!
 

Forum statistics

Threads
1,137,366
Messages
5,681,068
Members
419,950
Latest member
BeckiJae

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
Top