Column name letter as a function

slava

New Member
Joined
Dec 20, 2016
Messages
2
Hi, I will greatly appreciate your help on this question as I've hit a mental block

My question is about the correct syntax to use for my problem. Say, I have a formula in cell A1 on Sheet1
=Sheet2!N2+10

Say, I also have a cell on the same tab, B1, where letter N is generated by another formula. I need to know either:

1) What is the syntax to substitute column letter N in the formula above with a reference to cell B1 on Sheet1
or
2) What is the syntax that I can use to substitute the column letter N in the formula above with the formula below in cell B1?

The letter N is generated by a formula =SUBSTITUTE(SUBSTITUTE(ADDRESS(10,MATCH($C$1,'Sheet2'!$A$8:$Z$8,0)),"$",""),10,"")

Thank you very much for your time!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi.

1. with "N" in 'B1' you could use:
Code:
=INDIRECT("Sheet2!"&B1&"2")+10

2. with 'N2' in 'B1' >> for this you should add &2 to your formula like >> =(your formula)&2 and use
Code:
=INDIRECT("Sheet2!"&B1)+10
 
Upvote 0
Hi Osvaldo, thank you for looking into this.

How will the syntax change if in my A1 cell on Sheet1 I have =SUM('Sheet2'!N19:N21)

I want to substitute letter N in that formula with the formula that produced letter N or with a reference to another cell containing letter N.
 
Upvote 0
Hi.
Assuming that the formula in Sheet1 'B1' produces the letter 'N', try this in Sheet1 'A1':
Code:
=SUM(INDIRECT("Sheet2!"&B1&"19:"&B1&"21"))
 
Upvote 0

Forum statistics

Threads
1,214,647
Messages
6,120,722
Members
448,987
Latest member
marion_davis

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