+ Reply to Thread
Results 1 to 4 of 4

Categorizing Variable using List

  1. #1
    Registered User
    Join Date
    10-09-2011
    Location
    Kuala Lumpur
    MS-Off Ver
    Excel 2003
    Posts
    19

    Categorizing Variable using List

    Hi, I read one of the thread on how actually do you do this.

    What im trying to do is using a set of list (data dictionary) to group data. Reason using list is so I can expand the list in future.

    I manage to use this but I want to slightly improve it.

    Please Login or Register  to view this content.
    If you look at the attached example, instead of the formula giving me the column E result i want it to give the column F result.


    Your feedback is most welcome.
    Attached Files Attached Files
    Last edited by freqzz; 11-20-2013 at 01:51 AM. Reason: Solved

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Categorizing Variable using List

    deleted, redundant
    Last edited by protonLeah; 11-20-2013 at 02:00 AM.
    Ben Van Johnson

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Categorizing Variable using List

    In an INDEX() formula, the first range is the values you are pulling a result from. The second parameter resolves to a numeric "position" to pull from that first range.

    So to make your existing formula pull back from column F, just change the first range to that:

    =INDEX($F$2:$F$6,MATCH(TRUE,INDEX(ISNUMBER(SEARCH($E$2:$E$6,A2)),),0))


    Now, to make that formula dynamic and work with any size data table in E:F, adjust it like so:

    =INDEX($F:$F, MATCH(TRUE, INDEX(ISNUMBER(SEARCH($E:$E,A2)),),0))
    Last edited by JBeaucaire; 11-20-2013 at 01:50 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    10-09-2011
    Location
    Kuala Lumpur
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Categorizing Variable using List

    Thanks for the prompt response!

+ 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. Categorizing a List of Words by Referencing Another List of Phrases
    By samebito in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-29-2012, 02:26 PM
  2. Categorizing Hours Worked
    By MarcLiq in forum Excel General
    Replies: 3
    Last Post: 10-02-2009, 06:28 AM
  3. Categorizing and sorting data
    By DA CPA in forum Excel General
    Replies: 7
    Last Post: 07-03-2009, 03:59 PM
  4. Categorizing labels??
    By gvb in forum Excel General
    Replies: 4
    Last Post: 11-05-2008, 05:00 PM
  5. [SOLVED] Categorizing an excel column
    By Anna in forum Excel General
    Replies: 2
    Last Post: 07-15-2005, 03:05 AM

Tags for this Thread

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