+ Reply to Thread
Results 1 to 13 of 13

Categorize data by words

  1. #1
    Registered User
    Join Date
    06-02-2016
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    14

    Categorize data by words

    Hi!

    I need to categorize the country by its continent.

    For example, if I key in Singapore, it must tell me that its in Asia.
    If i key in Congo, it must tell me its in Africa.
    If I key in Finland, it must tell me its in Finland.

    Do I need to create a full list of countries and its continents like what I do below?

    AFRICA:
    Algeria
    Angola
    Benin
    Botswana
    Burkina
    Burundi
    Cameroon
    Cape Verde
    Central African Republic
    Chad
    ...

    ASIA:
    Afghanistan
    Bahrain
    Bangladesh
    Bhutan
    Brunei
    Burma (Myanmar)
    Cambodia
    China
    ...

    Europe:
    Albania
    Andorra
    Armenia
    Austria
    Azerbaijan
    Belarus
    Belgium
    ...

    etc

    What should I do next?


    Can anyone help me with this please?

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: Categorize data by words

    Not that way.
    This is how your excel should look like.

    Conitnents in one column, countries in another, data in it's own columns...
    Attached Files Attached Files
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    06-02-2016
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    14

    Re: Categorize data by words

    I see.

    Is it possible that when i key in a country's name, the respective continent name will also come out beside it?

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: Categorize data by words

    You must define somewhere whole table.

    So if you asking that you want write somewhere else a country name and get continent, then Yes. It's possible.
    But above table should be used as definition table.

  5. #5
    Registered User
    Join Date
    06-02-2016
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    14

    Re: Categorize data by words

    Do I need pivot table/ vba to do this?

    I am an amateur excel user and I have never done such things before.

    Anyway, sorry if Im asking alot of questions that may seem stupid to you!

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: Categorize data by words

    it's not stupid question, I just don't have whole picture of what you trying to do.

    Can you use mine above example and adopt it to your needs and then I can see what to do next to help you?

    To attach a sample workbook. Make sure there is just enough data to demonstrate your need.
    Make sure your desired results are shown, mock them up manually if necessary.


    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window (or use the paperclip icon).

  7. #7
    Registered User
    Join Date
    06-02-2016
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    14

    Re: Categorize data by words

    Ohhh.

    Sorry. Actually I wanted to attach my excel but I couldnt find the right button.

    Hope this picture can explain things abit better.

    I have this table in my excel sheet. (refer to picture, column A and B)

    In the future, I hope that if i type in a country's name in an empty cell, the continent name will also appear, like F6 and F7.

    Untitled.png
    Attached Images Attached Images

  8. #8
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Categorize data by words

    Like this ...
    Attached Files Attached Files

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: Categorize data by words

    Here.
    Write this in G6:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you write wrong country or non-existing country you will get #N/A error.

  10. #10
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Categorize data by words

    Or if you use the question in an other sheet

    =INDEX(Sheet4!A:A,MATCH($A2,Sheet4!$B:$B,0),1)
    and you can copy the formula to right and down for new values for that country, or values for an other country

    See the file
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    06-02-2016
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    14

    Re: Categorize data by words

    Thank you so much!!!!!!!

  12. #12
    Registered User
    Join Date
    06-02-2016
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    14

    Re: Categorize data by words

    Thank you so much!!!!!

  13. #13
    Registered User
    Join Date
    06-02-2016
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    14

    Re: Categorize data by words

    Thank you so much!!!!!!!!!!!!

+ 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. How to categorize a big list of data in MS Excel 2010?
    By kalucharan in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-06-2016, 02:09 AM
  2. Categorize the words using macros
    By Latha Mani in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-07-2014, 06:39 AM
  3. [SOLVED] how to categorize data with numbers and a character
    By gHAR in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-23-2013, 04:53 PM
  4. Connect & Categorize Data by a Common Number
    By missy2728 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-10-2013, 01:57 PM
  5. Replies: 3
    Last Post: 07-30-2012, 07:16 PM
  6. Cross Categorize Product Data - Who can help with this?
    By LionBear in forum Excel General
    Replies: 1
    Last Post: 06-16-2012, 10:25 AM
  7. Need to categorize continuous data
    By Broccoli in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2012, 08:23 PM

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