+ Reply to Thread
Results 1 to 6 of 6

Find value within table within a range

Hybrid View

  1. #1
    Registered User
    Join Date
    10-28-2015
    Location
    Switzerland
    MS-Off Ver
    2010
    Posts
    3

    Find value within table within a range

    Hi All,

    I hope someone can help me with the below:

    I have a reference table like this where each cell within the table shows a specific price, depending on the item (a b c d e) and depending on how often that item is ordered (within a range)
    If the amount of ordered is higher than 100, I take the

    0-100 101-1000 1001-1500 1501-1700 1701- 1800 1801- 2000
    a price #1 price #2 ...
    b price #7 ....
    c ....
    d
    e

    Now I need to find a formula that would give me the exact price depending on the item and the amount ordered.
    So ie: if item a is ordered 800 times I would get price #2.

    I hope I have been clear.

    Thank you and kind regards,
    Sam

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Find value within table within a range

    One way, using INDEX-MATCH-MATCH

    =INDEX($B$2:$G$3,MATCH(B9,$A$2:$A$3,0),MATCH($B$10,B1:G1,1))

    as shown in the file
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    10-28-2015
    Location
    Switzerland
    MS-Off Ver
    2010
    Posts
    3

    Re: Find value within table within a range

    Thank you Glenn but there is one issue I have with it still.
    In your example the result for my exercise should be 160 as I surpassed 101 so I should take the price in column "D"
    So range 1-101 = 180, range 102-1001 = 160 etc.

    Am I being clear?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Find value within table within a range

    In the sheet that I attached, the 160 CHF band starts (as I think you specified) at 1001 units. In cell B10, I had left it at 1000 units - which has a price of 180 CHF. Or am I wrong....

  5. #5
    Registered User
    Join Date
    10-28-2015
    Location
    Switzerland
    MS-Off Ver
    2010
    Posts
    3

    Re: Find value within table within a range

    Yes thank you, I viewed it differently but it is what i need.

    Have a nice day!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Find value within table within a range

    Grand!!

    Glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ 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 - Find Value of 2nd or 3rd unique non-null value in range or table
    By kc_aerohead in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-16-2015, 11:40 AM
  2. Find the range of a table & copy/past into body of an Outlook email
    By JamesGilchrist in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-28-2014, 08:44 PM
  3. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  4. Find text in range of cells and add to table if it does not exist in range
    By dgadler1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-12-2013, 12:54 PM
  5. Code to find named range doesn't find the correct field range?
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-12-2012, 05:54 PM
  6. Using Find in macro to select range of a table
    By BHudPE in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-17-2010, 05:08 PM
  7. find minimum value for each range of numbers in a table
    By Val H in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-13-2008, 10:23 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