+ Reply to Thread
Results 1 to 11 of 11

best performing branch in each region

Hybrid View

  1. #1
    Registered User
    Join Date
    12-22-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    21

    best performing branch in each region

    music store selling cds has multiple branches in different regions

    I have 3 regions. there are 2 stores in region 1, 2 stores in region 2, and 3 stores in region 3.

    how would I highlight the best performing store in each region?

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: best performing branch in each region

    Hi tay101 and welcome to the forum,

    I think it would be pointless to give you any recommendations without seeing your data. I suggest that you upload a sample spreadsheet with about 10-15 rows of data so we could figure our a solution for you.

    To upload a file click on Go Advanced on the bottom of your screen, then click on paperclip icon and Add Files.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    12-22-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: best performing branch in each region

    any ideas ?

  4. #4
    Registered User
    Join Date
    12-22-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: best performing branch in each region

    There you go, there are stores in each region. How would I highlight the best
    Last edited by tay101; 12-22-2013 at 11:47 PM.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: best performing branch in each region

    Please see attached file with stores highlighted on previous year data.
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: best performing branch in each region

    Hi again.

    Just a quick note, forum rules suggest you wait at least 24 hours before "bumping" your thread.

    Having said that, your use of merged cells make this a bit more complex than it needed to be. They way I tackled tghis was to add a helper column (J) and copied this down (you can hide this if you want to)
    =IF(C7="",J6,C7)

    Then, based on those cells, I used this ARRAY formula in K, copied down...
    =IF(J7=J6,"",MAX(IF($J$7:$J$13=J7,$E$7:$E$13,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. Press F2 on that cell and try again.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Registered User
    Join Date
    12-22-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: best performing branch in each region

    That was just a sample piece of data. I tried it and nothing highlighted. I did the separate helper column, then applied to formula in conditional formatting and no results. What cells should I highlight to apply the conditional formatting highlight?

    And I don't understand what you did here

    '=IF(C7="",J6,C7)

    Then, based on those cells, I used this ARRAY formula in K, copied down...
    =IF(J7=J6,"",MAX(IF($J$7:$J$13=J7,$E$7:$E$13,0))) '

    Also, what should I do to make the merged cells better?
    Last edited by tay101; 12-22-2013 at 08:56 PM.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: best performing branch in each region

    Seeing as there are 2 of us offering suggestions, it would help if you ID'd which of us your comment was aimed at LOL.

    And I don't understand what you did here
    '=IF(C7="",J6,C7)
    All that is doing is pulling out the from the merged cells

    And the rest...
    =IF(J7=J6,"",MAX(IF($J$7:$J$13=J7,$E$7:$E$13,0)))
    I used that to ID the highest store for each reagion. I put that in another helper, just to show the value. It could also have been used to Conditional Format the qualifying cells

    See the attached for both ways
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    12-22-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: best performing branch in each region

    so to highlight the highest value in conditional formatting, you use formula: =E21=MAX(IF($J$7:$J$13=$J21,$E$7:$E$13,1))

    what formula would I use to highlight the store location instead of highlighting the actual value?

  10. #10
    Registered User
    Join Date
    12-22-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: best performing branch in each region

    nevermind, I managed to figure it out. Thanks for your help anyway, much appreciated

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: best performing branch in each region

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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] Separate data by Region & Branch by workbook and worksheet
    By vinaynaran in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2013, 02:11 PM
  2. Replies: 4
    Last Post: 05-17-2012, 06:30 PM
  3. Replies: 1
    Last Post: 10-04-2007, 12:04 PM
  4. How do I branch to another sheet in the same file?
    By wf4bk in forum Excel General
    Replies: 7
    Last Post: 01-18-2006, 05:20 AM
  5. [SOLVED] How to branch?
    By achidsey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2005, 08:05 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