+ Reply to Thread
Results 1 to 9 of 9

Tweaking formula to count days of the week instead of months

  1. #1
    Forum Contributor
    Join Date
    11-24-2013
    Location
    Huddersfield, England
    MS-Off Ver
    2013
    Posts
    104

    Tweaking formula to count days of the week instead of months

    I currently breakdown my betting returns in months and would like to do the same for days of the week.

    In the attached file you'll see the formulas to return my betting data by months/year and I need to tweak the formulas in the green highlighted cells to break them down by days of the week

    Any help appreciated

    Jonathan
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Tweaking formula to count days of the week instead of months

    In AC30

    =SUMPRODUCT(--(WEEKDAY(INT($A$3:$A$1295),2)=ROWS($1:1)))

    Copy down

    Change other formulae as above.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Tweaking formula to count days of the week instead of months

    ,,,,

    =SUMPRODUCT(--(WEEKDAY($A$3:$A$1295,2)=ROWS($1:1)))

    INT not necessary .....

  4. #4
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Tweaking formula to count days of the week instead of months

    I applied John's formulae into your sheet and think you should only bet on Wednesdays
    Attached Files Attached Files
    Kind regards,
    Piet Bom

  5. #5
    Forum Contributor
    Join Date
    11-24-2013
    Location
    Huddersfield, England
    MS-Off Ver
    2013
    Posts
    104

    Re: Tweaking formula to count days of the week instead of months

    Ha ha Piet Bom you are not wrong. I was really looking to see if Saturday's were profitable or not but it seems Monday and Tuesday are the days to have a rest.

    Thank you both for your help


  6. #6
    Forum Contributor
    Join Date
    11-24-2013
    Location
    Huddersfield, England
    MS-Off Ver
    2013
    Posts
    104

    Re: Tweaking formula to count days of the week instead of months

    On another note Piem Bom can you tell me how I would go about applying the "select a year" option to all my other tables in my sheet?

    Tis a good idea that!

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Tweaking formula to count days of the week instead of months

    Add a drop-down in AB5 with years as per AB29

    change formula:

    from

    =SUMPRODUCT((MONTH($A$3:$A$1295)=MONTH($AB6))*(YEAR($A$3:$A$1295)=YEAR(AB6)))

    tp

    =SUMPRODUCT((MONTH($A$3:$A$1295)=MONTH($AB6))*(YEAR($A$3:$A$1295)=YEAR($AB$5)))

    Note: your table starts Dec 2016/ ends Nov 2017 so the above will only work on Jan-Dec for given year.

  8. #8
    Forum Contributor
    Join Date
    11-24-2013
    Location
    Huddersfield, England
    MS-Off Ver
    2013
    Posts
    104

    Re: Tweaking formula to count days of the week instead of months

    Thanks John.

    Was wondering how I was going to separate my bets on a yearly basis - now I know.

    Cheers

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Tweaking formula to count days of the week instead of months

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. count if days of week and value
    By S.Peto in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-14-2017, 12:00 PM
  2. Replies: 4
    Last Post: 11-14-2015, 12:13 PM
  3. Replies: 8
    Last Post: 06-12-2015, 04:23 PM
  4. [SOLVED] Months and Week Days
    By JakeMann in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-09-2014, 10:52 AM
  5. [SOLVED] calculate numbers of days elapsed a week, month or 6 months from now
    By labogola in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-01-2014, 09:14 AM
  6. Count days depending on months
    By asifakhtar in forum Excel General
    Replies: 1
    Last Post: 10-13-2009, 02:25 PM
  7. Translate ~Number of days in a week to number of days across months
    By martin ridley in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-26-2008, 01:09 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