+ Reply to Thread
Results 1 to 7 of 7

Function to recognise if a date is a monday

  1. #1
    Registered User
    Join Date
    06-28-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    42

    Function to recognise if a date is a monday

    I have a list of data where the date is in column A and values are in E. I need to take only that numbers that were recorded on a Monday and average them.

    Thanks
    Last edited by TheNameless122; 07-14-2010 at 08:58 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Function to recognise if a date is a monday

    =AVERAGE(IF(WEEKDAY(A2:A20,2)=1,E2:E20))
    array entered (using Ctrl+Shift+Enter) and adjust ranges to suit.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    06-28-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: Function to recognise if a date is a monday

    Very helpful, Im going to work on this for a while, but im sure I will need more help soon. Thanks.

  4. #4
    Registered User
    Join Date
    06-28-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: Function to recognise if a date is a monday

    How could you do...

    put contents from cell E2 in current cell if it was recorded on a Monday?

  5. #5
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Function to recognise if a date is a monday

    =if(weekday(a2,2)=1,e2,"")

  6. #6
    Registered User
    Join Date
    06-28-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: Function to recognise if a date is a monday

    Quote Originally Posted by romperstomper View Post
    =if(weekday(a2,2)=1,e2,"")
    Great, last thing... How can you average the contents of a column while excluding the value of zero.

  7. #7
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Function to recognise if a date is a monday

    Much like the date:
    =AVERAGE(IF(E2:E20<>0,E2:E20))
    array-entered.

+ 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