+ Reply to Thread
Results 1 to 7 of 7

Finding a value in a list, then outputting the cell to the right

  1. #1
    Registered User
    Join Date
    01-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    57

    Finding a value in a list, then outputting the cell to the right

    I have a list of 1-100 in column A. Column B has a list of corresponding names.

    What I want is to be able to type "10" into say cell D5, and have cell E5 display the name from B10. I think I need to use the FIND function but I can't figure out how.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Finding a value in a list, then outputting the cell to the right

    use INDIRECT

    like
    Please Login or Register  to view this content.
    in E5

    if in A there are other numbers than 1..100 then use VLOOKUP formula

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Finding a value in a list, then outputting the cell to the right

    In E5 Cell

    =VLOOKUP(D5,A:B,2,FALSE)


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    06-12-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Finding a value in a list, then outputting the cell to the right

    Use Vlook up function , even use match and index.

    but vlookup is simple and smart way.

  5. #5
    Registered User
    Join Date
    01-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    57

    Re: Finding a value in a list, then outputting the cell to the right

    Hmm I'm really close. Sixthsense you actually answered what I asked, but it's brought up a new issue.

    What I'm actually doing is have a list of tabs from 1-100. I'm using a formula to output the tab name, so D4 is actually:

    =MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,256)

    I'm not sure where I got that formula, but it does successfully output the tab name and display "10". But I can't get excel to recognize that cell as an actual value, so I can use D4 in my VLOOKUP formula. Ideas?

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Finding a value in a list, then outputting the cell to the right

    Because MID is a TEXT function which outputs TEXT RESULT "10" instead of real number 10

    Try this...

    =VLOOKUP(IF(ISNUMBER(D4+0),VALUE(D4),D4),A:B,2,FALSE)

  7. #7
    Registered User
    Join Date
    01-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    57

    Re: Finding a value in a list, then outputting the cell to the right

    Yep that worked. I actually changed the D4 cell itself with the +0 but same difference. Thanks guys!

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Finding a value in a list, then outputting the cell to the right

    Glad it helps you and thanks for the feedback and rep

+ 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: 10-04-2013, 10:45 AM
  2. Outputting specific criteria from a cell
    By brad999 in forum Excel General
    Replies: 1
    Last Post: 10-04-2013, 09:37 AM
  3. Outputting data from list in one worksheet to another
    By banessa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-11-2012, 04:09 AM
  4. Finding R-squared Values automatically and outputting range
    By student_101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2009, 05:53 PM
  5. Outputting a formula in a cell using VB
    By Cardiff Maths Student in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-06-2005, 08: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