+ Reply to Thread
Results 1 to 3 of 3

Extracting data depending on whether a date is a weekday or weekend

  1. #1
    Registered User
    Join Date
    09-19-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    10

    Extracting data depending on whether a date is a weekday or weekend

    I have a column of data with a large amount of various unorganized dates (dd/mm/yyyy). Each of the dates corresponds with a time (hh:mm:ss) in an adjacent column.

    I have to separate the time data into weekdays and weekends, likely by using two new columns - one column with the extracted time data related to weekdays, and the other with the weekend time data, with blanks where necessary.

    I am just wondering if anyone knows how to do this? One method I attempted is that I have used the =WEEKDAY() function to number each day in a separate column, but I cannot extract the data from here.

    Cheers.
    Last edited by weldo; 09-19-2012 at 11:24 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Extracting data depending on whether a date is a weekday or weekend

    Maybe something like:

    Say data is in A:B, and in C2 enter:

    =IF(WEEKDAY(A2,2)<=5,B2,"")

    and in D2:


    =IF(WEEKDAY(A2,2)>=6,B2,"")

    both copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-19-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Extracting data depending on whether a date is a weekday or weekend

    Yep, sorted, cheers for that!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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