+ Reply to Thread
Results 1 to 3 of 3

IF function query on Day/Dates

Hybrid View

  1. #1
    Registered User
    Join Date
    06-01-2007
    Posts
    2

    IF function query on Day/Dates

    Hi to all!

    I'm having problem getting the IF function to recognize Date or text as a logical test. I like to insert date(or day) in one column and have the results in the 2nd column. Hence, if Cell A2 showed Monday, Cell B2 will show Maths and so on. Here's my weak and amateur attempt.


    =IF(A2=Monday,"Maths",IF(A2=Tuesday,"Science", IF(A2=Wednesday,"Geography",IF(A2=Thursday,"History"))))

    But I'm unable to achive the results I want. Hope someone can help me out here.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    In A3 enter a date. Then in B3 enter the formula

    =CHOOSE(WEEKDAY(A3),"","Maths","Science","Geography","History","","")

    This will take the weekday of the date, and select the relevant subject.


    HTH

    rylo

  3. #3
    Registered User
    Join Date
    06-01-2007
    Posts
    2
    That worked great man, thanks!

+ 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