+ Reply to Thread
Results 1 to 2 of 2

Write rest days for all year

  1. #1
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    769

    Write rest days for all year

    Dear all,
    2.png
    I want to do this job using formulas or vba
    Find the attachment
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Write rest days for all year

    I'm solving this using some old technology: SUMPRODUCT. SUMPRODUCT doesn't get used much anymore. It's been mostly replaced with SUMIFS and COUNTIFS. However when you have to add in an additional function to make things match up, in this case MONTH(), SUMPRODUCT can handle it while COUNTIFS cannot.

    You can see the formulas for yourself. SUMPRODUCT is not an array formula, but it acts like one and I use it to explain how array formulas work. This article explains how it works: http://www.utteraccess.com/wiki/Array_Formulas.

    I also converted the data on the main sheet to an Excel Table. I find it easier to write formulas in terms of column headings instead of ranges like "'Data'!A2:A366"
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Replies: 6
    Last Post: 02-19-2017, 09:28 AM
  2. project figures for rest of this year based on last 18 months?
    By prometheusfox in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-25-2016, 10:14 AM
  3. [SOLVED] calculate total number of days between two days based on 365 days year
    By aparunkumar in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-14-2016, 12:51 AM
  4. Projecting Rest Of Year Based Off Last 5 Pay Periods
    By Caedmonball19 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-13-2014, 03:53 AM
  5. Rest of the days
    By Rashidul in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-25-2013, 10:00 PM
  6. [SOLVED] Count days for specific year falling within in multi-year date range
    By jslo2013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2012, 05:58 PM
  7. Convert a multiple year list of 365 days/year into an equivalent of 360 days/year
    By lobotomy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-24-2012, 05:39 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