+ Reply to Thread
Results 1 to 6 of 6

Find product in a list and return a price within a range

  1. #1
    Registered User
    Join Date
    09-14-2012
    Location
    Lancashire, England
    MS-Off Ver
    Excel 2016
    Posts
    31

    Find product in a list and return a price within a range

    Hello,

    I have a list of products and those products have different price breaks. If a customer orders over a certain amount they get it cheaper. I need a formula that will look at the price, then look to the price range and return the correct price.

    I have attached an example spreadsheet.

    Thank You
    Attached Files Attached Files
    Last edited by Enigma1985; 07-18-2017 at 06:12 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,280

    Re: Find product in a list and return a price within a range

    Please provide a worked example based on one of the stock codes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-14-2012
    Location
    Lancashire, England
    MS-Off Ver
    Excel 2016
    Posts
    31

    Re: Find product in a list and return a price within a range

    Thank you for the prompt reply. Please see the updated attached. I would need H3 to be returned from the list, in this example, as it is above the 125,000 threshold.
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,280

    Re: Find product in a list and return a price within a range

    Try this in H4:

    =INDEX($C$2:$C$4824,MATCH(1,(H3>=$B$2:$B$4824)*(H3<$B$3:$B$4825)*($A$2:$A$4824=H2),0))

    ... confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  5. #5
    Registered User
    Join Date
    09-14-2012
    Location
    Lancashire, England
    MS-Off Ver
    Excel 2016
    Posts
    31

    Re: Find product in a list and return a price within a range

    Perfect! Thank You

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,280

    Re: Find product in a list and return a price within a range

    You're welcome!

+ 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. Drop down list = price when product selected
    By hsantos in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-11-2017, 02:44 PM
  2. help on price increase on product list ?
    By digga in forum Excel General
    Replies: 3
    Last Post: 07-27-2016, 01:43 AM
  3. Macro to lookup and return lowest product price from specific website
    By timmy1254 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-13-2014, 12:02 AM
  4. [SOLVED] Find the latest selling price from a product list for selected customer
    By wesleyho in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-30-2013, 04:53 AM
  5. Replies: 1
    Last Post: 07-24-2013, 12:13 PM
  6. Product Price List and Invoice
    By jamesahunt in forum Excel General
    Replies: 2
    Last Post: 02-19-2013, 08:00 AM
  7. Find the last price of a product sold
    By jemamena in forum Excel General
    Replies: 6
    Last Post: 10-23-2012, 06:37 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