+ Reply to Thread
Results 1 to 12 of 12

Finding product prices with criteria.

  1. #1
    Registered User
    Join Date
    12-19-2022
    Location
    Poland
    MS-Off Ver
    XL365 v.2301
    Posts
    4

    Finding product prices with criteria.

    I need to find a product and a brand at the lowest and highest price only for Lipstick segemnt.
    task3.xlsx

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Finding product prices with criteria.

    something like this ?

    Mark Segment Min Max
    Brand A Lipstick
    8.9
    25.63
    Brand B Lipstick
    6.6
    25.33
    Brand C Lipstick
    6.4
    25.42
    Last edited by sandy666; 12-19-2022 at 04:48 PM.

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Finding product prices with criteria.

    update your profile about Excel Product and Version, eg XL2021 or XL365 v.2301 and so on

    GoogleTranslate:
    zaktualizuj swój profil o produkt i wersję programu Excel, np. XL2021 lub XL365 v.2301 i tak dalej
    Last edited by sandy666; 12-20-2022 at 04:04 AM.

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,842

    Re: Finding product prices with criteria.

    Of course you will want to reference a cell that has the word "Lipstick" in it, but try this:

    =INDEX(E2:E186,MATCH("Lipstick"&MAXIFS($H$2:$H$186,$G$2:$G$186,"Lipstick"),$G$2:$G$186&$H$2:$H$186,0))

    And as another option if you have 365 or 2021:

    =FILTER(E2:F186,(G2:G186="Lipstick")*($H$2:$H$186=MAXIFS($H$2:$H$186,$G$2:$G$186,"Lipstick")))


    (of course just switch out MINIFS for MAXIFS to find the least)

  5. #5
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Finding product prices with criteria.

    This should work regardless of which version of excel you are using;

    In Tab Table 1,2
    in cell D13

    =INDEX(Data!$E$2:$E$9999,MATCH(MIN(IF(Data!$G$2:$G$9999="Lipstick",Data!$H$2:$H$9999)),Data!H$2:$H$9999,0))

    in cell E13

    =INDEX(Data!$E$2:$E$9999,MATCH(MIN(IF(Data!$G$2:$G$9999="Lipstick",Data!$H$2:$H$9999)),Data!H$2:$H$9999,0))

    in cell F13

    =MIN(IF(Data!$G$2:$G$9999="Lipstick",Data!$H$2:$H$9999))

    Drag each one of these formula down and change MIN to MAX

    Note these are all array formulae so must be entered with a CSE (ie. copy the formula into the cell then Press Enter whilst holding the Ctrl and Shift buttons down simultaneously)
    Attached Files Attached Files
    Last edited by Croweater; 12-20-2022 at 02:11 AM.

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,611

    Re: Finding product prices with criteria.

    Pl see file.
    For lowest cost in L2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For highest cost in N2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  7. #7
    Registered User
    Join Date
    12-19-2022
    Location
    Poland
    MS-Off Ver
    XL365 v.2301
    Posts
    4

    Re: Finding product prices with criteria.

    Thank you all, that's correct
    Last edited by Gordian27; 12-20-2022 at 12:05 PM.

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Finding product prices with criteria.

    Quote Originally Posted by Gordian27 View Post
    Thank you, that's correct
    to whom is your post ?

  9. #9
    Registered User
    Join Date
    12-19-2022
    Location
    Poland
    MS-Off Ver
    XL365 v.2301
    Posts
    4

    Re: Finding product prices with criteria.

    Quote Originally Posted by sandy666 View Post
    to whom is your post ?
    To Croweater for genius formula.
    Of course, I also thank the others for your interest in the problem, sank you.

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Finding product prices with criteria.

    next time use @username

    did you read post#3 ?



    if the problem is solved, hit Add Reputation (bottom left corner next to the post that was helpful)
    and then mark the thread as SOLVED (top above your first post - Thread Tools)
    Last edited by sandy666; 12-20-2022 at 12:19 PM.

  11. #11
    Registered User
    Join Date
    12-19-2022
    Location
    Poland
    MS-Off Ver
    XL365 v.2301
    Posts
    4

    Re: Finding product prices with criteria.

    Yes, "update your profile", thank you.

  12. #12
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Finding product prices with criteria.

    Quote Originally Posted by Gordian27 View Post
    To Croweater for genius formula.
    Thanks for the feedback/rep.

+ 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] Autogenerating Prices on Product List
    By ImStuckPeaseHelpMe in forum Excel General
    Replies: 6
    Last Post: 12-10-2019, 02:13 PM
  2. Autofilter VBA but also show product prices from other shop
    By rksingh2020 in forum Excel General
    Replies: 3
    Last Post: 01-06-2017, 12:26 AM
  3. Pivot Table Product Prices
    By dw_22801 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-18-2016, 01:14 PM
  4. Find forecast on the prices of a product
    By nageshpolu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-16-2013, 11:59 AM
  5. Using IF/WHEN formula for determining product shipping prices
    By Batman777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-13-2013, 12:34 AM
  6. EXCEL TEMPLATE THAT CALCULATES PRODUCT PRICES
    By bobnewmark in forum Excel General
    Replies: 1
    Last Post: 07-12-2006, 09:45 PM
  7. Replies: 0
    Last Post: 06-09-2006, 02:20 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