+ Reply to Thread
Results 1 to 3 of 3

If and then

  1. #1
    Registered User
    Join Date
    02-28-2013
    Location
    PH
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    43

    Smile If and then

    Hi I am trying to use the if function.


    I have the criteria from A2. then trying to make an output in B2. I was trying to make a date range in my sheet.

    so, what i have in mind it to make an output like ,"If A2 is equals to "02/01/2013, then display Week1.

    Responses will be a great help.

    Thanks! Ae

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,149

    Re: If and then

    hi xygrax, welcome to the forum. is that date 2 jan 2013 or 1 feb 2013? assuming it's the former, then:
    =IF(A2=--("2jan2013"),"Week1","")
    so if A2 is that date, display "Week1", otherwise blank

    or if you need it to display the week of A2 & your week starts from Monday, then:
    ="Week"&WEEKNUM(A2,2)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    02-28-2013
    Location
    PH
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    43

    Smile Re: If and then

    Hello, thank you for your prompt response. I really appreciate it.

    I have another concern if it's not too much to ask.

    Let say,

    I put in dates between feb 1,2013 to feb 07 in A2 then the output should say "week1" in b2
    If I put feb 8, 2013 to feb 20, it should display "week 2".
    same goes for the upcoming dates as week 3 and week 4.

    responses will be very much appreciated

+ 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