+ Reply to Thread
Results 1 to 8 of 8

Conditional Formatting as a new list

  1. #1
    Registered User
    Join Date
    02-13-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    7

    Conditional Formatting as a new list

    Is there any way that I can use conditional formatting and instead of highlighting top 10% to have them displayed as a new list.
    If that's not possible how can I have highlighted conditional formatting answers pulled to a new list for example: Top 10% list.

    I welcome any other ideas beside conditional formatting, pivot tables maybe?

    Please see attached

    Thanks
    Attached Files Attached Files
    Last edited by sandrax78; 02-14-2010 at 04:21 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Conditional Formatting as a new list

    Hi sandra,


    I don't see any conditional formatting to highlight anything in your file. What conditional formatting formula did you have in mind?

    Try this to list the top ten sales:

    in D2 put this formula and copy down to D11

    =LARGE($B$2:$B$206,ROW(A1))
    This will give you the 10 largest sales figures.

    In E2 put this formula and copy down to E11

    =INDEX($A$2:$A$206,MATCH(D2,$B$2:$B$206,0))

    This will give you the store numbers for each sales figure in column D

    hth

  3. #3
    Registered User
    Join Date
    02-13-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Conditional Formatting as a new list

    Teylyn,

    Thanks for help but I'm looking for top 10% rather then top 10 largest sales.
    I attached a new sheet with my conditional formatting (top 10% highlighted green, bottom 10% highlighted in yellow).

    If you look to the right you will see the lists that I would like to populate.

    I hope my explanation is clear enough.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Conditional Formatting as a new list

    Taking your formula used in the CF as a base, in F4 and copy down until you only see blanks

    =IF(LARGE($B$2:$B$206,ROW(A1))>LARGE($B$2:$B$206,ROWS(B$1:B$206)/10),LARGE($B$2:$B$206,ROW(A1)),"")

    in E4 and copy down as required

    =INDEX($A$2:$A$206,MATCH(F4,$B$2:$B$206,0))

    Likewise in N4 and copied down

    =IF(SMALL($B$2:$B$206,ROW(A1))<SMALL($B$2:$B$206,ROWS(B$1:B$206)/10),SMALL($B$2:$B$206,ROW(A1)),"")

    and in M4 copied down as required

    =INDEX($A$2:$A$206,MATCH(N4,$B$2:$B$206,0))

  5. #5
    Registered User
    Join Date
    02-13-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Conditional Formatting as a new list

    Teylyn, Thanks a lot for your help but I think there is a small problem.

    1. Top 10%-Solved
    2.Bottom 10%-Solved
    3. Everything between Top 10% and Bottom 10% -unfortunately not solved

    Is there an easy solution to this issue?

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Conditional Formatting as a new list

    I just realised I put the small 10% in the wrong column, but I see you sorted it. Completely overlooked the middle bit. Here is what you can use in column N

    =IF(LARGE(B:B,MATCH(MIN(F:F),B:B,0)+ROW(A1)-1)<=MAX(J:J),"",LARGE(B:B,MATCH(MIN(F:F),B:B,0)+ROW(A1)-1))

    Copy E or I to M for the Location lookup.

    hth

  7. #7
    Registered User
    Join Date
    02-13-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Conditional Formatting as a new list

    Just a last quick question teylyn

    Amount in B22 is highlighted but it doesn't show in the top 10% list,
    Amount in B187 is highlighted but it doesn't show in the bottom 10% list.

    Both of this amounts are showing as Between Top 10% and Bottom 10% List.

    I just don't understand why they would be highlighted as top 10% and bottom 10% and they wouldn't show up on the correct lists.

    Please see attached spreadsheet to see what exactly I'm talking about

    I really appreciate all your help with this question
    Attached Files Attached Files

  8. #8
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Conditional Formatting as a new list

    Ah,.... a small glitch in trying to reproduce the CF formula in the cell formula. The CF has "greater than or equal to", whereas the cell formula only has the > sign.

    Change

    F4 =IF(LARGE($B$2:$B$206,ROW(A1))>=LARGE($B$2:$B$206,ROWS(B$1:B$206)/10),LARGE($B$2:$B$206,ROW(A1)),"")

    J4 =IF(SMALL($B$2:$B$206,ROW(A1))<=SMALL($B$2:$B$206,ROWS(B$1:B$206)/10),SMALL($B$2:$B$206,ROW(A1)),"")

    and copy both formulae down. The formula in column N does not require any correction.

    hth

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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