+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : extracting certain weekdays in a month

Hybrid View

  1. #1
    Registered User
    Join Date
    08-06-2011
    Location
    Budapest
    MS-Off Ver
    Excel 2010
    Posts
    2

    extracting certain weekdays in a month

    Situation: as a language teacher, I travel to different companies on fixed days each month, for this I would like to generate a timesheet.

    Problem: I am stuck with how to produce a list of, for example, Tuesdays and Thursdays in a given month. I understand how to produce weekdays, but can't see how to filter them. Ideally, my sheet would have a cell for the month and each weekday I teach, then a list of only those days would appear.

    Any ideas?

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: extracting certain weekdays in a month

    Hello,

    A1 enter the first day of the month, say 7/1/2001
    B1, enter the day want to get, say Tue

    A2,

    =A1-WEEKDAY(A1-MATCH(B1,{"Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat"},0))+7

    A3, copy down..

    =A2+7

    This will give only Tue after the start date. If you change B1 to Wed, would give only Wed after the start date.

    If this is not you are looking please post a dummy file with expecting result.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    08-06-2011
    Location
    Budapest
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: extracting certain weekdays in a month

    thx for your help, here is a file showing my expected result.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: extracting certain weekdays in a month

    Here is the one way. On a seperate sheet get whole date in a selected month, then extract the day you want. In F2, you can enter days you want to display seperated by comma.

    See the attached.

    I am sure there should be more easier & elegant ways.

    EDIT:

    Without any helper cell or sheet, A6 copy down.

    =IFERROR(INDEX(ROW(INDEX(A:A,(1&D$2&B$2)+0):INDEX(A:A,EOMONTH(1&D$2&B$2,0))),SMALL(IFERROR(IF(ISNUMBER(SEARCH(TEXT(ROW(INDEX(A:A,(1&D$2&B$2)+0):INDEX(A:A,EOMONTH(1&D$2&B$2,0))),"dddd"),F$2)),ROW($A$1:$A$31)),100),ROWS(A$6:A6))),"")

    Array Formula, confirmed with Control+Shift+Enter rather than just Enter.
    Attached Files Attached Files
    Last edited by Haseeb Avarakkan; 08-07-2011 at 06:51 PM.

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: extracting certain weekdays in a month

    If you are on XL2010 you can use NETWORKDAYS.INTL & WORKDAY.INTL. Whichever days you want to show, Just enter a X in G2:G8.

    See the attached
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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