+ Reply to Thread
Results 1 to 4 of 4

Help with looking up percentages based on criteria in a table

  1. #1
    Registered User
    Join Date
    10-03-2011
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    85

    Help with looking up percentages based on criteria in a table

    Hello

    Im have some trouble in getting something to work. Ive attached an example spreadsheet. On the table tab is different disc codes accross row 8 and then below that is spending range follwed by a % which would the discount %.

    What im trying to achieve is on the Discount threshold tab is if you put in the disc code in cell b5 it will then give you the new discount % (taken from the table tab) in column H. This is based on the net inv sales (column d) along with the disc code.

    Any help as always would be greatly appreciated.

    Thanks
    Attached Files Attached Files

  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,731

    Re: Help with looking up percentages based on criteria in a table

    add a new row for 0
    and then you can use

    =VLOOKUP(E12,Table!$C$4:$H$12,6,TRUE)

    see attached

    EDIT
    I have used the wrong column for the lookup gross instead of Net
    =VLOOKUP(D12,Table!$C$4:$H$12,6,TRUE)
    Attached Files Attached Files
    Last edited by etaf; 02-12-2016 at 04:07 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
    10-03-2011
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    85

    Re: Help with looking up percentages based on criteria in a table

    Hello

    Thanks for your help but it doesnt seem to change when I put a different code into cell B5. On the table tab there are different discounts depending on the discount code (Row 1). How can I can this to look at each specific table depending on the code?

    Thnaks

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Help with looking up percentages based on criteria in a table

    Here is a solution that uses a helper table of sorts (which can be hidden for aesthetic reasons if desired). The main formula that drives the solution is:
    Please Login or Register  to view this content.
    D28 is the cell that records the column number of the discount code that is entered in B5 using a match formula. Since the discount percentage is two columns offset from the sales amounts, E28 increments D28 by 2. The formula from D29 and down can then be copied across to E29 and dragged down to get the percentages. Data validation applied to B5 takes away the chance that the user would input an incorrect discount code. The list for the data validation is in B28:B45. Here is a copy of Etaf's file from post #2 with the solution applied:
    Copy of newdiscexample_etaf.xlsx
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] Ranking a column of percentages based on the cells that meet criteria (between 100 to 103)
    By scotlandsneo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-02-2015, 09:24 AM
  2. Replies: 9
    Last Post: 12-03-2014, 06:17 PM
  3. Table that shows percentages for each person based on table
    By thejoed82 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-28-2013, 11:36 AM
  4. Replies: 2
    Last Post: 04-16-2013, 06:17 AM
  5. [SOLVED] Directing to a table based on two criteria, then to a value based on a value - exel 2003
    By arsenalmom in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-15-2012, 02:32 AM
  6. [SOLVED] Formula that averages percentages based on said criteria
    By Leif Magnus in forum Excel General
    Replies: 3
    Last Post: 09-14-2012, 04:26 PM
  7. Calculating percentages based on multiple criteria
    By F6Hawk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-19-2007, 11:05 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