+ Reply to Thread
Results 1 to 10 of 10

alphabetical categorized

  1. #1
    Forum Contributor
    Join Date
    12-30-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    143

    alphabetical categorized

    hi

    i have a column with customer names for ex.
    customer name

    Adams john

    kite Peterson

    jack aloe

    what i would like is a second column, that would tell me in increments of 5 what letters it would fit into.
    for ex. the first name would fit in category "A-F" the second name would be in the category of "K-O" ETC..

    how can i get that done ?

    thanks

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: alphabetical categorized

    Your example data is inconsistent - the surname appears first in example 1, but second in the other two examples. Furthermore, the surname begins with a capital letter in the first two examples, but there are no capitals in the final example.

    It would help if you attached a sample Excel workbook, so we can see exactly how your data varies.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Pete

  3. #3
    Forum Contributor
    Join Date
    12-30-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    143

    Re: alphabetical categorized

    Ok file uploaded
    Attached Files Attached Files

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: alphabetical categorized

    In this example your categories are only 3 letters wide, i.e. A-C, D-F etc. Also, you seem to have categorised just on the first letter of the name, irrespective of ordering.

    Is this what you want?

    Pete

  5. #5
    Forum Contributor
    Join Date
    12-30-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    143

    Re: alphabetical categorized

    Yes this is it

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: alphabetical categorized

    Assuming that is what you want now, you can put this formula in B2:

    =IF(A2="","",INDEX($D$2:$D$10,INT((CODE(A2)-65)/3)+1))

    then copy down as required.

    Hope this helps.

    Pete

  7. #7
    Forum Contributor
    Join Date
    12-30-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    143

    Re: alphabetical categorized

    OK that worked the only question is
    is it possible to modify this formula that i shouldn't have to use any reference to any other column but column "A" ?

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: alphabetical categorized

    You can use this formula in B2:

    =IF(A2="","",CHOOSE(INT((CODE(UPPER(A2))-65)/3)+1,"A-C","D-F","G-I","J-L","M-O","P-R","S-U","V-X","Y-Z"))

    then you don't need to have column D.

    Hope this helps.

    Pete

  9. #9
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,910

    Re: alphabetical categorized

    Another way:

    =IF(A2="","",LOOKUP(LEFT(A2)&"-Z",{"A-C","D-F","G-I","J-L","M-O","P-R","S-U","V-X","Y-Z"}))
    Last edited by Phuocam; 04-18-2018 at 08:42 PM.

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: alphabetical categorized

    Or:
    Please Login or Register  to view this content.
    Quang PT

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Categorized graph with months
    By mmahrous in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 10-25-2017, 11:59 AM
  2. [SOLVED] Categorized Data Validation
    By nadimqaisar in forum Excel General
    Replies: 2
    Last Post: 03-07-2017, 01:56 PM
  3. Categorized data into several class
    By drake777 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-06-2016, 03:43 AM
  4. [SOLVED] Categorized Expense Report Reference
    By Student_Accounting in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-14-2015, 05:13 PM
  5. how to categorized accounts using excel formula?
    By katrinagidoc in forum Excel General
    Replies: 5
    Last Post: 08-28-2012, 12:04 AM
  6. [SOLVED] Customer List Categorized
    By SeaTiger in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 02-02-2006, 08:25 PM
  7. [SOLVED] Aggregating categorized information from several worksheets
    By Pedro Fonseca in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-13-2005, 03:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1