+ Reply to Thread
Results 1 to 6 of 6

Finding out the name of the most expensive item in the product group

  1. #1
    Registered User
    Join Date
    01-11-2021
    Location
    Netherlands
    MS-Off Ver
    2011
    Posts
    5

    Wink Finding out the name of the most expensive item in the product group

    Dear members,

    I am far away from excel expert and probably can't even properly describe what I really need in the title of this thread
    Recently I got a new job where I have to work a lot with excel. My colleagues are already working for years in the same position as I just started and I suspect that they haven't exploited excel opportunities in full. I'm a little bit lazy and get quickly tired of monotonuous clicking for hours. Maybe someone in this forum can help me answer the following?
    Here I made a visual example:
    Fiksavimas.JPG

    I have articles that belong to article groups. In the column D I need a formula, which I can drag-down to the bottom and get a name of the most expensive article in the group. Does someone have an idea how to do this? I already tried so many times by myself, called all my friends and none of them could help me.

    In reality I have 800 different groups and around 17 000 diferent article names. Me and my colleagues would appreciate if someone could help us with this formula

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    12,993

    Re: Finding out the name of the most expensive item in the product group

    Please Login or Register  to view this content.
    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    01-11-2021
    Location
    Netherlands
    MS-Off Ver
    2011
    Posts
    5

    Re: Finding out the name of the most expensive item in the product group

    Quote Originally Posted by protonLeah View Post
    Please Login or Register  to view this content.
    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Thanks Ben! It works almost perfect :D
    I had to replace commas into ";" in your formula in order to make it work. And I don't know if I ruined your formula by replacing commas, or this formula is not designed to put results in every single cell? Now if I drag the formula all the way to the bottom, then it gives results that are true, but there are blank spaces in between. Is it possible to reajust the formula in a way that it fills every single cell in a column?

    Formula I put in D2 without commas (with ctrl+shift+enter)
    =IFERROR(INDEX($B$2:$B$30;MATCH(IF(COUNTIF($A$2:$A2;$A2)=1;MAX(IF($A$2:$A$30=A2;$C$2:$C$30));"");$C$2:$C$30;0));"")
    Fiksavimas2.JPG

  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: Finding out the name of the most expensive item in the product group

    One way (non-array):

    You may need ; instead of ,

    =INDEX($B$2:$B$35,MATCH(1,INDEX(($A$2:$A$35=A2)*($C$2:$C$35=AGGREGATE(14,6,$C$2:$C$35/($A$2:$A$35=A2),1)),0),0))
    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

  5. #5
    Registered User
    Join Date
    01-11-2021
    Location
    Netherlands
    MS-Off Ver
    2011
    Posts
    5

    Re: Finding out the name of the most expensive item in the product group

    Thanks Glenn! That's exactly what I was looking for!!!
    You just saved me at least one hour of every working 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: Finding out the name of the most expensive item in the product group

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It would also be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members 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] Product item Std Runtime
    By JNEWMAN in forum Excel General
    Replies: 8
    Last Post: 07-19-2019, 07:26 AM
  2. [SOLVED] Find top Repeated + most Expensive Categories
    By vill in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-15-2018, 10:18 AM
  3. Replies: 14
    Last Post: 01-12-2017, 01:41 PM
  4. Item Code created from Product Name and Color VBA
    By unclejemima in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-25-2013, 11:58 PM
  5. multiple item/product inventoy
    By dworsham in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-03-2012, 01:10 PM
  6. Replies: 8
    Last Post: 08-06-2010, 07:27 AM
  7. copy/paste expensive
    By ElTerrible in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2009, 01:38 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