Assigning letter in a new column corresponding to a numeric

Nitesh

New Member
Joined
Oct 17, 2006
Messages
1
Hi All,

I have two coluns colA & ColB. Col A has numeric values in a random order such as:

Col A
4.2
3.1
5.2

Now i want to write a vba macro which assigns a alphabet to each value in column b (going from max to min). I want to acheive as follows:

Col A ColB
4.2 B
3.1 C
5.2 A

All help is much appreciated.

Thanks.
 

Some videos you may like

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Krishnakumar

Well-known Member
Joined
Feb 28, 2003
Messages
2,615
Hi,

This will work upto 256 numbers.

=SUBSTITUTE(ADDRESS(1,RANK(A1,$A$1:$A$3)+COUNTIF($A$1:A1,A1)-1,4),1,"")
 

Watch MrExcel Video

Forum statistics

Threads
1,109,445
Messages
5,528,800
Members
409,835
Latest member
Mafu1267

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top