Name sequence with letter in Excel

HASSAN BIN NASIR DAR 351 Reputation points
2021-10-07T20:24:19.457+00:00

Hi,

I have two columns in microsoft excel. A1 and B1

A1 is for User Display Name. B1 is for User's E-mail id.

I want to set User Display Name in sequence (letter wise) for example, the names which are starting with A. It should be shown first. Then B, C and so on.

But when Display Names will make in sequence. User's email id should be in sequence according to the display name.

Please tell me any formula in Microsoft excel. Thanks

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,158 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,747 questions
0 comments No comments
{count} votes

Accepted answer
  1. Emily Hua-MSFT 27,691 Reputation points
    2021-10-08T07:03:20.957+00:00

    @HASSAN BIN NASIR DAR

    If you are not a Microsoft 365 subscriber, you could use the formula to get the sort of "User Display Name", then get the search results as "User's E-mail id based" on "User Display Name".

    Sort of "User Display Name", please enter following formula, and then press Ctrl+Shift+Enter at the same time.
    =INDEX(A$2:A$5,MATCH(ROWS(A$2:A2),COUNTIF(A$2:A$5,"<="&A$2:A$5),0))
    138852-image.png

    "User's E-mail id based", please enter below formula.
    =VLOOKUP(F2,A$2:B$5,2,FALSE)
    138738-image.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Emily Hua-MSFT 27,691 Reputation points
    2021-10-08T06:30:30.613+00:00

    @HASSAN BIN NASIR DAR

    Could you please tell us which version of Office are you using now?

    If you are using Microsoft 365 apps, please try the SORTBY function.
    For my simple sample, we could use the formula =SORTBY(A2:B5,A2:A5,1).

    138720-image.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.