+ Reply to Thread
Results 1 to 6 of 6

RE: formula to display cell data if another cell has a specific text (multiple options)

  1. #1
    Registered User
    Join Date
    04-09-2014
    Location
    Mississippi
    MS-Off Ver
    Excel 2010
    Posts
    19

    RE: formula to display cell data if another cell has a specific text (multiple options)

    I will try to be clear, but you know how these things go. Here is an example of data on one worksheet (work sheet 1):
    Column 1 Column 2
    Row 1: Boy 100
    Row 2: Girl 200
    Row 3: Dog 300
    Row 4: Cat 400

    On a separate worksheet (sheet 2), I would like to create a drop down list in a cell (for ease we will put this in cell "D1") with all the words which are listed in column 1, where you can select to display one word off the drop list (there will be 30 options from this list).

    Next, I would like to create a formula in a completely different cell (let's make this one "F1") which, according to what word is displayed off the list is visible in cell "D1", the formula will display the corresponding cell information in cell "F1" from column 2. For instance, if I choose "Boy" from the drop down list in cell "D1", then I would like cell "F1" to display "100". If I choose "Girl" for "D1", I would like "200" to display.

    I would like to thank everyone ahead of time for helping me with this matter!!!!!!!

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: formula to display cell data if another cell has a specific text (multiple options)

    index match or vlookup will do that for you
    in sheet2 F1 put

    =index(sheet1!B1:B30, match(sheet2!D1,sheet1!A1:A30,0))
    or
    =Vlookup(sheet2!D1, Sheet1!A1:B30,2,false)

    see attached
    F1 for index/match
    H1 for Vlookup

    for the dropdown, use data valdation > list
    Attached Files Attached Files
    Last edited by etaf; 04-09-2014 at 05:54 PM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    04-09-2014
    Location
    Mississippi
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: formula to display cell data if another cell has a specific text (multiple options)

    Thanks Etaf!!!! First response and you hit it right on the nail!!!

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: formula to display cell data if another cell has a specific text (multiple options)

    your welcome
    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here

  5. #5
    Registered User
    Join Date
    04-09-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: formula to display cell data if another cell has a specific text (multiple options)

    I was having the same problem finding a formula, this works great. My question is though if say there are two or more rows that say boy or girl but column 2 has a different number is there a way to get each one to list in different rows. So say:
    Row 1: Boy 100
    Row 2: Girl 200
    Row 3: Dog 300
    Row 4: Cat 400
    Row 5: Boy 200
    Row 6: Girl 400

    And have the multiples display in say "F2", "F3", "F4"..., without getting duplicates? I hope this makes sense, thank you very much if you any way help with this!

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: formula to display cell data if another cell has a specific text (multiple options)

    @pitterpatton

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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. Replies: 2
    Last Post: 08-05-2013, 07:32 PM
  2. Replies: 21
    Last Post: 08-13-2012, 01:52 PM
  3. Replies: 1
    Last Post: 06-22-2012, 02:18 PM
  4. Extract specific text in Cell A1 and display in A2
    By Dave32 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-22-2008, 08:27 AM
  5. Independently Summing Multiple Text Options Within a Cell
    By Iain Halder in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-20-2005, 08:07 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