+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP for day and month

  1. #1
    Registered User
    Join Date
    10-19-2008
    Location
    UK
    Posts
    63

    VLOOKUP for day and month

    Hi,

    I have some dates in range A1:A400.

    Date format is like 20/03/2012

    I would like to do a VLOOKUP or whatever other excel function in cells B1:B400 so that if the date has 20/03, 20/06, 20/09 or 20/12 then I get a value of 1 otherwise 0.

    How do I do that?

    Last edited by nicolaforni; 04-05-2012 at 11:53 AM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: VLOOKUP for day and month

    Duplicate post, sorry.

  3. #3
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: VLOOKUP for day and month

    In cell B1:

    =IF(AND(DAY(A1)=20,MOD(MONTH(A1),3)=0),1,0)

    Should do it.

  4. #4
    Registered User
    Join Date
    10-19-2008
    Location
    UK
    Posts
    63

    Re: VLOOKUP for day and month

    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