• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Number Classification

33sameer33

New Member
Hello Everyone

I need a formula to classify list of numbers so that the first number is given a letter, and if the next number is different, it gives it another letter, and if the number is repeated, the first letter is given.

Please see an example in the attached file


Best Regards
 

Attachments

  • Number Classification.xlsx
    13.8 KB · Views: 9
This is not exactly what I wanted.
I want it like this


YoursI want it like this
700000000HAAAAAAAAHAAAAAAAA
700000001HAAAAAAABHAAAAAAAB
700000002HAAAAAAACHAAAAAAAB
700000003HAAAAAAADHAAAAAAAB
700000004HAAAAAAAEHAAAAAAAB
700000005HAAAAAAAFHAAAAAAAB
700000006HAAAAAAAGHAAAAAAAB
700000007HAAAAAAAHHAAAAAAAB
700000008HAAAAAAAIHAAAAAAAB
700000009HAAAAAAAJHAAAAAAAB
 
Last edited:
33sameer33
Do You have some clear logic for that?
> why the 1st letter is H?
> why 2nd letter is A
> why the last letter is B? except in the 1st line?
> what would You want if any of those zeros would get something else?
 
Hi to all!

One option with Excel 2021/365 version:
=CONCAT(CHAR(96+MATCH(A2:I2,UNIQUE(A2:I2,1),)))
Another option (with Excel 2016) in attach file:
Blessings!
 

Attachments

  • Number Classification.xlsx
    27.1 KB · Views: 24
Hi to all!

One option with Excel 2021/365 version:
=CONCAT(CHAR(96+MATCH(A2:I2,UNIQUE(A2:I2,1),)))
Another option (with Excel 2016) in attach file:
Blessings!

That exactly what I wanted.
Many Thanks brother
Your are the best
and thanks to others for their kind support
 
That was an interesting lesson. I have similar problem and will be able to use it.
Sorry if I interfere in this query but if you can please explain it so that I can apply it to mine more accurately please, if possible.
I understand char is for 96 characters, but not sure of the formula. Like the "1" in UNIQUE function

=CONCAT(CHAR(96+MATCH(A2:I2,UNIQUE(A2:I2,1),)))
 
Back
Top