INDEX function to stay on it's current column if more are added

KranerRyan

New Member
Joined
Sep 17, 2016
Messages
18
I'm using =INDEX(Jan!$2:$2,(ROW(E2)-1)*5+36) to pull the date from Column 41, Row 2. When I add a new column it still pulls from the 41st although the data I want moved to the 42nd... I am making/formatting a sheet and the number of columns keeps changing. Getting to be a pain updating the 36 manually to keep seeing the data. Any workarounds?

Thanks!
 
Last edited:

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Try replacing the 36 in your formula with COLUMN(AJ1).
 
Upvote 0
Glad you got it working. I've never used the function, I just know of it. However, I find it strange that it wouldn't work inside the full formula - I've never heard of a function with such a limitation. Typically, whenever you reference a cell containing a formula, you can get the same result by putting the referenced formula directly into the referring cell.
 
Upvote 0

Forum statistics

Threads
1,225,757
Messages
6,186,848
Members
453,379
Latest member
gabriellegonzalez

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