+ Reply to Thread
Results 1 to 12 of 12

Returning highest ranking values in a range in succession

  1. #1
    Forum Contributor Saeber4777's Avatar
    Join Date
    06-06-2014
    Location
    United States
    MS-Off Ver
    365 Enterprise
    Posts
    159

    Returning highest ranking values in a range in succession

    Pic attachment of exampleExcel.jpgExcel.jpg




    I am trying to find two formulas:

    Formula 1
    Formula 1 will be entered into rows 6:9 (in this example). I need it to return the highest selling product (by store) in order form highest selling to lowest selling. I have a makeshift formula already but it cannot report in order (only the highest selling) and it cannot get past the one return index( limitation. When it finds two high sellers it prioritizes the ranking based on how well that product has sold across the other stores. Product 1 sold 13 times across all stores. Product 2 sold 9 times across all stores. So if product 1 & 2 tie for Store 3 (as shown in the example) Product 1 would be chosen based on its sales across the row.

    Formula 2
    Same as formula 1 but with Stores (in column 6-9). It reports the highest selling store and treats ties the same way as formula 1.

  2. #2
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Returning highest ranking values in a range in succession

    Is this what you're looking for?
    Attached Files Attached Files
    1. Include a sample workbook with an example of the result you want
    2. Use [CODE] and [FORMULA] wrappers for your VBA code or excel formulas
    3. If your question has been answered, mark the thread as SOLVED and click on the "Add Rep" star to thank whoever helped you.

  3. #3
    Forum Contributor Saeber4777's Avatar
    Join Date
    06-06-2014
    Location
    United States
    MS-Off Ver
    365 Enterprise
    Posts
    159

    Re: Returning highest ranking values in a range in succession

    close, but I couldn't adapt it. also, the ranking isn't prioritizing at the right place. I included more detailed information in the excel file you sent me. Formula sort.update.xlsx

  4. #4
    Forum Contributor Saeber4777's Avatar
    Join Date
    06-06-2014
    Location
    United States
    MS-Off Ver
    365 Enterprise
    Posts
    159

    Re: Returning highest ranking values in a range in succession

    also, I'd like to try to avoid an {} formula if possible

  5. #5
    Forum Contributor Saeber4777's Avatar
    Join Date
    06-06-2014
    Location
    United States
    MS-Off Ver
    365 Enterprise
    Posts
    159

    Re: Returning highest ranking values in a range in succession

    sorry, I also forgot to mention that it would need to avoid detecting 0s and "". Any blank spaces in the datarange will return 0.

  6. #6
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Returning highest ranking values in a range in succession

    Do you want to use a macro? Otherwise, if there is a way to do it without using a macro or an array formula, then I've never heard of it.

  7. #7
    Forum Contributor Saeber4777's Avatar
    Join Date
    06-06-2014
    Location
    United States
    MS-Off Ver
    365 Enterprise
    Posts
    159

    Re: Returning highest ranking values in a range in succession

    an array is better than nothing, just didn't know if it was possible without one.

  8. #8
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Returning highest ranking values in a range in succession

    This can't be real data. Everything sold the exact same, making sorting a little difficult
    Here is the workbook. It should work, but I can't tell since everything is selling the same. Also, I'm assuming that you're not selling 10,000+ of a product. If you are, adjust my .0001 accordingly.
    Also, not sure what you mean about not detecting 0s. If something sold 0 and so there is either a 0 or a "", it would be the least seller, and will be ranked accordingly.
    Attached Files Attached Files
    Last edited by k64; 06-07-2014 at 01:02 AM.

  9. #9
    Forum Contributor Saeber4777's Avatar
    Join Date
    06-06-2014
    Location
    United States
    MS-Off Ver
    365 Enterprise
    Posts
    159

    Re: Returning highest ranking values in a range in succession

    yes, the data is fictitious. You can enter whatever you want in it... Thank you for your help. I just want to make sure it can sort through tied numbers. If you want the real excel workbook I can send that if necessary.

  10. #10
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Returning highest ranking values in a range in succession

    Well try this one out. I made the sort priority 1. highest selling for that line 2. highest selling overall 3. listed first.

  11. #11
    Forum Contributor Saeber4777's Avatar
    Join Date
    06-06-2014
    Location
    United States
    MS-Off Ver
    365 Enterprise
    Posts
    159

    Re: Returning highest ranking values in a range in succession

    I posted last night to let you know it worked but for some reason the post didn't stick. It took a while to adapt the formula but it works like a charm. Thank you very much.

  12. #12
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Returning highest ranking values in a range in succession

    Good to hear. Glad that I could be helpful

+ 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] Returning the 5 highest values in a row.
    By LucG in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-24-2012, 02:36 PM
  2. Returning the Highest Count of a row of Values
    By hammer2 in forum Excel General
    Replies: 2
    Last Post: 12-06-2011, 09:25 PM
  3. Excel 2007 : Returning the highest value in a range
    By JohnJC in forum Excel General
    Replies: 3
    Last Post: 10-01-2010, 08:45 AM
  4. Selection and ranking 10 highest values
    By roberto1111 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-29-2010, 08:02 PM
  5. Replies: 4
    Last Post: 06-07-2005, 10:05 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