Convert column letter to numbers

  • Thread starter Todd Huttenstine
  • Start date
T

Todd Huttenstine

Hey guys

In cell W4 I have column letters. I would like to convert them to numbers.
For example, the value of cell W4 is currently "AJ". If you were to count
the columns, AJ would equal 36. What is the code to put the number 36 in
cell W5?


Thank you
Todd Huttenstine
 
R

Rob van Gelder

Since you asked for code.

Range("W5").Value = Range(Range("W4").Value & "1").Column
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top