Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get excel column name dynamically?

Status
Not open for further replies.

bodlela

Programmer
Oct 22, 2009
45
MZ
Hi all

I using the below formula on Excel: =IF(AND(Sheet1(2)!$A$2=Sheet5!$A$2,$D$1=Sheet5!$B2),Sheet5!$C2,"") Where is $D$1, 'D' refers to the column letter. I would like to get it dynamically. I tried to use =IF(AND(Sheet1(2)!$A$2=Sheet5!$A$2,CHAR(64+COLUMN())&1=Sheet5!$B2),Sheet5!$C2,"") but it is not working :(

Please advice
 


Hi,

This is not a VBA question: rather formu68 question.

Please use examples of data to illustrate WHAT you are attempting, rather than telling us HOW you think it ought to be done.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top