Get column letter from value in cell

Phil Payne

Board Regular
Joined
May 17, 2013
Messages
131
Office Version
  1. 365
Platform
  1. Windows
This works great for characters A-Z but not for columns after Z. E.g., 'AB' I tried the LEFT ADDRESS MATCH formula which works for Columns >Z but not for those <AA.

Any ideas?

The above refers to solution by VOG "=CHAR(66+MATCH(A1,C1:K1,0))" in 2010.


I found the above "Return column letter from match or lookup" discussion written a long time ago.

I am struggling to make this work because my range goes beyond column Z to column BW!

Does anyone have a solution please?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Like this:

Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAAAB
112345678910111213141516171819202122232425262728
228
3
4AB
5
Sheet1
Cell Formulas
RangeFormula
A4A4=SUBSTITUTE(ADDRESS(1,MATCH(A2,A1:AB1,0),4),1,"")
 
Upvote 0
Thankyou Phuoc,

I see what you have done (y) and it works.

However my problem is that I am looking for a specific date in a row of dates and that when found returns column letter.

I hope you can see the attached image and have a solution for me.

Thanks for taking the time to help me.
 

Attachments

  • view of range.PNG
    view of range.PNG
    65.8 KB · Views: 8
Upvote 0
try this ( untested)
Excel Formula:
=IF(MATCH(A1,C1:K1,0)>26,CHAR(66+MATCH(A1,C1:K1,0)-26) &CHAR(66+MATCH(A1,C1:K1,0)),MATCH(A1,C1:K1,0))
 
Upvote 0
I want this to be dynamic/manage itself.

Using the date presented by Today() I need to provide a status from the data in the relevant column that holds that months data.

Today is 18th August so the month I need to look at is August 2023.

This will change as soon as we get to 01 September and remain until 1st October etc..

Can you see a way for me to do this?
 
Upvote 0
My question is really why do you need the column letter? How are you using it?
 
Upvote 0
So I guess you're using INDIRECT? You'd probably be better off using something like INDEX (or V/XLOOKUP) and MATCH.
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,964
Members
449,094
Latest member
Anshu121

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