+ Reply to Thread
Results 1 to 9 of 9

Auto populate Weekdays and Dates in the specific cells

  1. #1
    Forum Contributor
    Join Date
    02-12-2014
    Location
    al ain
    MS-Off Ver
    Excel 2016
    Posts
    149

    Cool Auto populate Weekdays and Dates in the specific cells

    Hi All,
    I have two sheets and I create the monthly report each month where I manually put dates and weekdays in A8:A38 and B8:B38 respectively.
    and Current month in A1 each month. What would I do to do all this Automatically in both the sheets.
    I would like weekdays in my language and not in English. Here A stands for Saturday B for Sunday and so on.
    And I would also like to format the cell colour yellow where it contains A or B.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Auto populate Weekdays and Dates in the specific cells

    This in B8 and dragged down will give you the days of the week (I assume your local settings will show the correct wording not English).
    Please Login or Register  to view this content.

    Note: This works if you take out the word "Month:" from cell A1
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Auto populate Weekdays and Dates in the specific cells

    Done. Hopefully this is what you are looking for.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,919

    Re: Auto populate Weekdays and Dates in the specific cells

    Try:

    A1 =1/10/2016 -> FormatCells -> "Month: "mmmm yyyy

    A8 = A1

    A9 =IF(MONTH($A$1+ROWS($A$8:A8))=MONTH($A$1),$A$1+ROWS($A$8:A8),"")

    A8:A38 -> FormatCells -> d

    B8 =IF(A8="","",CHOOSE(WEEKDAY(A8),"B","C","D","E","F","G","A"))

    Formula for CF:

    =WEEKDAY(A8,2)>5

    See this...
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    02-12-2014
    Location
    al ain
    MS-Off Ver
    Excel 2016
    Posts
    149

    Re: Auto populate Weekdays and Dates in the specific cells

    Thank to all and special thanks to 'Phuocam' which gave me the exact thing I needed.

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,919

    Re: Auto populate Weekdays and Dates in the specific cells

    You are welcome!

  7. #7
    Forum Contributor
    Join Date
    02-12-2014
    Location
    al ain
    MS-Off Ver
    Excel 2016
    Posts
    149

    Re: Auto populate Weekdays and Dates in the specific cells

    How can I exclude the weekend dates when there are Saturdays and Sundays? I want to populate only working days each month..
    Thanks!
    Last edited by alipezu; 11-16-2016 at 04:32 AM.

  8. #8
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,919

    Re: Auto populate Weekdays and Dates in the specific cells

    In A8:

    =IF(MONTH(WORKDAY($A$1-1,ROWS($A$8:A8)))=MONTH($A$1),WORKDAY($A$1-1,ROWS($A$8:A8)),"")

    Copy down.

  9. #9
    Forum Contributor
    Join Date
    02-12-2014
    Location
    al ain
    MS-Off Ver
    Excel 2016
    Posts
    149

    Re: Auto populate Weekdays and Dates in the specific cells

    Thank you Phuocam,
    That worked.
    In some scenarios I need to exclude Fridays and Saturdays instead of Saturdays and Sundays. So what would my formula in those scenarios?

+ 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. [SOLVED] auto populate (dates)
    By HUW GARSTON in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-09-2016, 09:32 AM
  2. [SOLVED] Auto populate adjacent cells based on specific dropdown selection
    By ahtigers10 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-02-2014, 08:11 PM
  3. Auto rename sheets 1-7 with weekdays and dates
    By jimpr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-02-2013, 04:35 AM
  4. extending macro to auto populate the specific cells
    By Avinash Kumar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2009, 07:43 AM
  5. Auto Populate Dates
    By [email protected] in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-20-2008, 05:28 PM
  6. Auto populate dates
    By waiter11 in forum Excel General
    Replies: 2
    Last Post: 05-28-2006, 04:55 AM
  7. Cells populate on specific dates
    By JD MPLS in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-09-2006, 11:15 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