+ Reply to Thread
Results 1 to 8 of 8

Thread: Lookup function?

  1. #1
    Registered User
    Join Date
    05-18-2011
    Location
    North Carolina
    MS-Off Ver
    Excel 2003
    Posts
    29

    Lookup function?

    Hello. I am trying to make a spreadsheet where, when you enter a certain number in a cell, it references a chart and returns a certain value in another cell based on the number entered. The chart will be on the same Excel worksheet.

    For example, based on the chart below, if I typed in "510" in cell A1, it should populate ".10" in cell A2.

    NUMBER VALUE
    500 .5
    505 .7
    510 .10
    550 .15

    I'm thinking this could be done using the Lookup function but I've never used it before. Any help would be most appreciated. Thanks!

  2. #2
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,300

    Re: Lookup function?

    Hi wvpersephone13,

    See the attached with an example of VLookup.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * below to say thanks.

  3. #3
    Registered User
    Join Date
    05-18-2011
    Location
    North Carolina
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Lookup function?

    Awesome! That looks like it's just what I need. Thank you SO much!

  4. #4
    Registered User
    Join Date
    06-03-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: Lookup function?

    hope the attached file should help you
    Last edited by kt090678; 06-13-2011 at 06:29 AM.

  5. #5
    Registered User
    Join Date
    05-18-2011
    Location
    North Carolina
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Lookup function?

    Thanks kt090678!

  6. #6
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,057

    Re: Lookup function?

    What result would you expect if you typed in 520....or won't that happen?
    Audere est facere

  7. #7
    Registered User
    Join Date
    05-18-2011
    Location
    North Carolina
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Lookup function?

    There will only be certain numbers typed in. The sheet is for metal material codes, and it returns the metal's density. Good point though!

  8. #8
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,228

    Re: Lookup function?

    I think you'd probably call that a table rather than a chart but no worries. You want something like:

    =VLOOKUP(A1,$D$1:$E$4,2,FALSE) ... if your table were in cells D1 to E4


    Or, you could use:

    =IFERROR(INDEX({0.5,0.7,0.1,0.15},MATCH(A1,{500,505,510,550},0)),"")

    This probably works better if the values are static.


    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0