+ Reply to Thread
Results 1 to 8 of 8

Looking Up Values

  1. #1
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Looking Up Values

    I'm trying to come up with a way to lookup a value based on criteria entered in a certain cell on another sheet. I can't seem to figure it out for the life of me. I'm sure it's something really easy.

    I have three tabs in my worksheet... The lookup would be located on the 'Final Value' tab in column C. That value would be based on the criteria entered on the 'Main' tab in cell D8. If '260' was selected in cell D8, the value for cell C3 of the 'Mixed Value' tab would be $41 based on the criteria from cell E6 of the 'Value Database' tab.

    On the otherhand, if '290' was selected in cell D8 of the 'Main' tab, the value for cell C3 of the 'Mixed Value' tab would be $43 based on the criteria from cell L6 of the 'Value Database' tab.

    Can someone please help me with this? Much appreciated. My worksheet is attached. Thanks!
    Attached Files Attached Files

  2. #2
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    Re: Looking Up Values

    This data is set up in a very confusing way... Are your only options 260 and 290? That is how it currently appears to me.

  3. #3
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: Looking Up Values

    Quote Originally Posted by yay_excel View Post
    This data is set up in a very confusing way... Are your only options 260 and 290? That is how it currently appears to me.
    For now yes, but I will be adding more choices later. Does that matter? I wanted to simplify things for the example

  4. #4
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    Re: Looking Up Values

    Yes, it does matter. First of all, in order to effectively use lookup formulas your data must be formatted consistently and in order. This means that we need to have a table somewhere which contains all of the possible data we will be looking up, both the lookup value and the return value. There should not be any gaps in the data, meaning no blank rows or columns. The labels must be in order (alphabetical or numerical) in either the first row or the first column of the data. Basically, if we keep your labels in the first row and use the data you have provided so far, we should have a table with the labels PLAYERS DRAFTED and RANK 1 in A1:A2 and the corresponding data in cells B2:C3. See new worksheet added to your file; it contains the data we need in a usable format. Let me know if you need help reformatting the data.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: Looking Up Values

    Quote Originally Posted by yay_excel View Post
    Yes, it does matter. First of all, in order to effectively use lookup formulas your data must be formatted consistently and in order. This means that we need to have a table somewhere which contains all of the possible data we will be looking up, both the lookup value and the return value. There should not be any gaps in the data, meaning no blank rows or columns. The labels must be in order (alphabetical or numerical) in either the first row or the first column of the data. Basically, if we keep your labels in the first row and use the data you have provided so far, we should have a table with the labels PLAYERS DRAFTED and RANK 1 in A1:A2 and the corresponding data in cells B2:C3. See new worksheet added to your file; it contains the data we need in a usable format. Let me know if you need help reformatting the data.
    Ok I've updated the data and reattached the worksheet.
    Attached Files Attached Files

  6. #6
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    Re: Looking Up Values

    I have added an HLOOKUP formula which I believe does what you have requested. Because the player rank values are in the same order on the final value worksheet as they are in the database, I did not write the formula to look for the matching rank number in the database. Instead, it uses the the data from the corresponding row.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: Looking Up Values

    Quote Originally Posted by yay_excel View Post
    I have added an HLOOKUP formula which I believe does what you have requested. Because the player rank values are in the same order on the final value worksheet as they are in the database, I did not write the formula to look for the matching rank number in the database. Instead, it uses the the data from the corresponding row.
    Awesome! Thanks

  8. #8
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: Looking Up Values

    Quote Originally Posted by yay_excel View Post
    I have added an HLOOKUP formula which I believe does what you have requested. Because the player rank values are in the same order on the final value worksheet as they are in the database, I did not write the formula to look for the matching rank number in the database. Instead, it uses the the data from the corresponding row.
    What if I have 3 columns with the same number of players drafted? How will it know which column to look up?

+ 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: 1
    Last Post: 04-11-2013, 01:02 PM
  2. Replies: 0
    Last Post: 10-12-2012, 01:08 PM
  3. Replies: 8
    Last Post: 07-28-2012, 03:22 PM
  4. [SOLVED] How to lookup values same row values different column values
    By kgonzalbo in forum Excel General
    Replies: 5
    Last Post: 05-22-2011, 01:49 AM
  5. assigning date entries to week values and month values to sum column C-N values C-
    By the accountant in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2010, 09:52 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