+ Reply to Thread
Results 1 to 2 of 2

Testing a Date

  1. #1
    Registered User
    Join Date
    08-29-2006
    Posts
    2

    Testing a Date

    Hi Guys,
    i'm using Microsoft Excel 2003 and i have a small problem which i will try to explane: i have to test a cell (format ddd) which contain the name of the day: in few word in that cell A1 i calculated, with the formula [Date(year,month,day)] the "name" of the day (f.i. "mon","tue","thu",etc.,etc). Now, in another cell (B1, for istance) i should have the necessity to show the value of the cell A1 only if the value of the cell A1 is "sat" (saturday) or "sun" (sunday). Could be somebody so kind to help me in this matter ? Thanks ion advance

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    this should work

    =IF(OR(WEEKDAY(A1)=7,WEEKDAY(A1)=1),A1,"")

    VBA Noob

+ 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