+ Reply to Thread
Results 1 to 7 of 7

Relative reference table lookup and adjustment

  1. #1
    Registered User
    Join Date
    05-14-2014
    MS-Off Ver
    Excel 2003
    Posts
    5

    Relative reference table lookup and adjustment

    Hi,

    I want to be able to pass in a customer type (column headers in row 1) and a number of points (the values in B2:F14) and return the value in column A for that particular customer type. For example, for customer type 2 and 9 points, I'd want to return 72.5. For customer type 5 and 13 points, answer would be 62.5. For a particular customer type, if there is more than one answer for points (e.g., 10 for customer type 5), I'd want to return the largest column A value (e.g., 55.0).

    Thanks for your help!

    James


    excel sample.jpg
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075

    Re: Relative reference table lookup and adjustment

    It would help us find a solution if you could attach a copy of your workbook instead of the image file.
    Trish in Oz
    -------------
    A problem well defined is a puzzle half solved


    If you attach a sample of your workbook it will be easier to find a solution. Remember to remove/replace sensitive data before uploading the file. Look here if you need help with attachments:
    http://www.excelforum.com/faq.php?fa...b3_attachments

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Relative reference table lookup and adjustment

    Hi and welcome to the forum

    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you Also, not all members can upload picture files (Company firewalls and stuff)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-14-2014
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Relative reference table lookup and adjustment

    Sorry. Here is the excel file. Thank you for your help.
    Attached Files Attached Files

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Relative reference table lookup and adjustment

    See if this is what you want...
    =INDEX($A$2:$A$14,MATCH(H1,OFFSET($A$1,1,MATCH($G$1,$B$1:$F$1,0),13,1),0)+COUNTIF(OFFSET($A$1,1,MATCH($G$1,$B$1:$F$1,0),13,1),H1)-1)

    I put the Customer type in G1 and the amount in H7

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Relative reference table lookup and adjustment

    Try this...

    A16 = some type
    B16 some point value

    This array formula** entered in C16:

    =MAX(IF(INDEX(B2:F14,0,MATCH(A16,B1:F1,0))=B16,A2:A14))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Registered User
    Join Date
    05-14-2014
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Relative reference table lookup and adjustment

    This is great! Thank you. One related follow-on question: when I'm doing a VLOOKUP now to do another analysis where I pass in a value associated with Column A and know the customer so I'm trying to solve for the points, is there a way to get VLOOKUP to round up? In my attached example, I pass in 77.27% and customer 2, the formula is currently returning 12, but I'd like it to return 18. Any thoughts?

    Thanks,
    James
    Attached Files Attached Files

+ 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: 5
    Last Post: 09-21-2012, 02:08 PM
  2. [SOLVED] How to lookup tax rate from a reference table?
    By icarrington in forum Excel General
    Replies: 4
    Last Post: 08-23-2012, 04:43 AM
  3. Replies: 2
    Last Post: 04-01-2011, 08:43 AM
  4. Replies: 0
    Last Post: 11-15-2007, 02:35 AM
  5. Lookup /Reference Table
    By emel24 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-28-2005, 05:48 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