+ Reply to Thread
Results 1 to 4 of 4

Excel counts withing specific date ranges (star signs)

  1. #1
    Registered User
    Join Date
    03-15-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    7

    Excel counts withing specific date ranges (star signs)

    What I'm basically trying to do is to count how many people have coded 1 through to 10 within each star sign - regardless of year born.
    I've tried varies formulas from looking around the internet, but none seem to work!

    Any help on the enclosed xls would be great!

    Many thanks
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Excel counts withing specific date ranges (star signs)

    I created a lookup table in X1:Y15 which shows the start day/month for each star sign (Capricorn has to appear twice, once for the start of the year once for the end).

    Then in your headers I1:T1 I listed just the star sign, then you can use this formula in I2 copied across and down

    =SUMPRODUCT((LOOKUP(MONTH($A$2:$A$2000)*100+DAY($A$2:$A$2000),$X$2:$Y$15)=I$1)*($B$2:$B$2000=$H2))

    U11 is just a check - it counts numbers in column B - that should match the sum in U12 to check that all entries are counted

    Do the same for the other answers just changing the red part to the correct column, see attached
    Attached Files Attached Files
    Audere est facere

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Excel counts withing specific date ranges (star signs)

    ....another way that might be simpler is to use an extra column to get the star sign for each date, e.g. insert column at B and use this formula in B2

    =LOOKUP(MONTH(A2)*100+DAY(A2),Y$2:Z$15)

    copy that down the column and you get the star sign against ecah date, then just a simple COUNTIFS in J2 copied across and down

    =COUNTIFS($B:$B,J$1,$C:$C,$I2)

    see revised attachment
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-15-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Excel counts withing specific date ranges (star signs)

    Brilliant daddylonglegs! Much appreciated

+ 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