+ Reply to Thread
Results 1 to 4 of 4

Fill text and count of days based date

  1. #1
    Registered User
    Join Date
    06-22-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2010
    Posts
    59

    Fill text and count of days based date

    Hi,
    Please help me with a proper formula, with the below sample formula "=IF(WEEKDAY(A2)<=5,"Vacation day "&SUMPRODUCT((WEEKDAY($A$2:A2)<=5)*1),"Weekend")" I have achieved partial result, but i need to get the result as shown in the column c in the sample below. Thanks

    Coulmn A Column B Column C
    1-Jan Vacation day 1 Holiday 1
    2-Jan Vacation day 2 Vacation day 1
    3-Jan Vacation day 3 Vacation day 2
    4-Jan Weekend Weekend
    5-Jan Weekend Weekend
    6-Jan Vacation day 4 Vacation day 3
    7-Jan Vacation day 5 Vacation day 4
    8-Jan Vacation day 6 Vacation day 5
    9-Jan Vacation day 7 Vacation day 6
    10-Jan Vacation day 8 Vacation day 7
    11-Jan Weekend Weekend
    12-Jan Weekend Weekend
    13-Jan Vacation day 9 Holiday 2
    14-Jan Vacation day 10 Holiday 2
    15-Jan Vacation day 11 Vacation day 8
    16-Jan Vacation day 12 Vacation day 9
    17-Jan Vacation day 13 Vacation day 10

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Fill text and count of days based date

    Hi

    Suppose your date in B2.Bn and a holiday list in H2:H29 (extend as needed)

    Use in C2 and drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See the file for clarification
    Attached Files Attached Files
    Last edited by José Augusto; 01-13-2019 at 07:45 AM. Reason: correct file

  3. #3
    Registered User
    Join Date
    06-22-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2010
    Posts
    59

    Re: Fill text and count of days based date

    Jose, Thanks a lot, it works as I desired. once again and have a nice day.

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Fill text and count of days based date

    You are welcome and thanks for the feedback.

    Do not forget to mark this thread as SOLVED, selecting Thread Tools from the menu link above

+ 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 days of week based on dates and specific text
    By elv28 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-20-2018, 01:23 AM
  2. [SOLVED] Count Down Days & Days elapsed after the finish date.
    By leemc1985 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-01-2018, 06:35 AM
  3. Replies: 16
    Last Post: 08-22-2017, 11:20 AM
  4. Replies: 7
    Last Post: 11-29-2016, 07:12 AM
  5. [SOLVED] Formula to get info based on text and date plus or minus 3 days
    By mtndewgradon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-17-2016, 12:31 PM
  6. Trying to create a formula to count days based on 8 hour days
    By meadnl89 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-03-2016, 06:41 PM
  7. Replies: 8
    Last Post: 07-13-2012, 09:02 AM

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