+ Reply to Thread
Results 1 to 14 of 14

How to create signals for top 20%?

  1. #1
    Registered User
    Join Date
    06-30-2009
    Location
    Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    15

    How to create signals for top 20%?

    Hi,

    I got a problem here. I would like to create a signal for the top 5 hours which has the highest volume


    As you can see from the chart or picture. I want to create a =IF function signal so that on the right column it will show which of the hours is the top 20%/top 5 hours

    Is there anyway possible in excel to do this? To create a signal on the right showing which of the days hours, is the top 5 hours with the highest volumne?

    Thanks alot in advance guys
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by andrian; 09-18-2009 at 08:42 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to create signals for top 20%?

    Do you mean ?

    Please Login or Register  to view this content.
    or another way:

    Please Login or Register  to view this content.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,453

    Re: How to create signals for top 20%?

    I used

    =IF((G2/MAX($G$2:$G$24))>=80%,"Top 20%","")
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    06-30-2009
    Location
    Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: How to create signals for top 20%?

    thanks!!! all worked perfectly fine

    one more thing

    this is only for 1 day, i've like 1000 days
    how do i do it in such a way that i can do the formula for all the days?

    thanks in advance again guys

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,453

    Re: How to create signals for top 20%?

    For your given example I change A2:A14 to 1 date and A15:A24 to another.

    The used this Array formula, commit using CTRL+SHIFT+ENTER.

    =IF((G2:G24/MAX(IF($A$2:$A$24=A2,$G$2:$G$24,0)))>=80%,"Top 20%","")

  6. #6
    Registered User
    Join Date
    06-30-2009
    Location
    Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: How to create signals for top 20%?

    Thanks Andy for the reply

    Like i said i have about 1000 days so i can possibly manually do it, well i can, but its gonna take too long

    Can you please explain how to work this array formula? Ctrl Shift Enter? Im not too familiar with it

    Ive attached another file with a more days

    Thanks in advance again
    Attached Files Attached Files

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,453

    Re: How to create signals for top 20%?

    in H1 use the formula

    =IF((G1:G311/MAX(IF($A$1:$A$311=A1,$G$1:$G$311,0)))>=80%,"Top 20%","")


    the rather than simply pressing RETRUN to enter the formula use CTRL+SHIFT+ENTER
    This will make the formula an Array formula. It will also add { } brackets to the formula when displayed in the formula bar.

    In the attached I have added some formula to illustrate what the formula is doing so you can see the items with +80% values.
    Attached Files Attached Files

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to create signals for top 20%?

    Given the dates are seemingly sorted in ascending order you could avoid Array by means of INDEX in the MAX call, eg adapting Andy's last formula:

    Please Login or Register  to view this content.
    the above should perform better than the Array in the Long Term.

  9. #9
    Registered User
    Join Date
    06-30-2009
    Location
    Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: How to create signals for top 20%?

    Thank you for your patience and help

    I've tried the last method with the index, however the results came out abit weird.

    For some days, there were more than 5 hours that were considered in the top 20%, i would assume the top 20% would only be 4-5 hours?

    Some days only have 3 hours which are in the top 20%

    I've highlighted the days which seems wrong.

    What is your take on this?
    Attached Files Attached Files

  10. #10
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to create signals for top 20%?

    I believe Andy's approach is based on values being within 20% of the MAX value (seems sensible approach to me in truth).

  11. #11
    Registered User
    Join Date
    06-30-2009
    Location
    Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: How to create signals for top 20%?

    Sorry for the misunderstanding

    When I said top 20%, I meant the top 5 hours of the day

    Would it be possible for it to only indicate the top 5 hours with the highest volume?

  12. #12
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to create signals for top 20%?

    Reverting then to the earlier LARGE approach but still differentiating by day based on INDEX approach (rather than Array)

    Please Login or Register  to view this content.
    Does that work for you ?

    (note the addition of the COUNTIF in the MIN on the off chance there are fewer than 5 records for a given day)

  13. #13
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to create signals for top 20%?

    On an aside, without being quite clear as to where this is leading, given top 5 requirement a Pivot Table based approach might be of interest ? (see attached)

    Note also if preferred you can sort the PT such that times are listed in order of Volume (Asc/Desc)
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    06-30-2009
    Location
    Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: How to create signals for top 20%?

    Thank you all, to DonkeyOte and Andypope

    The 2nd last formula worked like a charm!

    Really really grateful, i should have asked this forum earlier rather than spend one whole day wrecking my brains out

    thanks again!

+ 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