Changing Column and Row Formula

AshM91

New Member
Joined
Feb 8, 2017
Messages
7
Hello,

I want to write a formula for when I update a "Reference" Sheet the letter i type in refers to the columns

For example

February is column: A
March is column : B

So in the month of February I want the cells to reference column A, but in March I want it to reference Column B.

The cell formulas are taking the values in column A and dividing it by static numbers in down the line in Column Z

February would be :

(A1/Z1)
(A2/Z2)
(A3/Z3)

March would be:

(B1/Z1)
(B2/Z2)
(B3/Z3)

And all i want to do is type in B in a reference cell such as Cell: AA1 i would type "B" to have to the fomulas update to reference column B.

Any help would be appreciated. Hopefully that made sense
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Try something like this.
AA1 can be A-L and reference cells A1 to L1 (12 months). You could change that if needed.

=INDEX(A1:L1,1,CODE(UPPER(AA1))-64)/Z1

You could also pull the month from a date and reference a column based on the month number.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,114
Messages
6,128,913
Members
449,478
Latest member
Davenil

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