+ Reply to Thread
Results 1 to 7 of 7

Vlookup Month and Year in a Date

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    19

    Vlookup Month and Year in a Date

    Hi All

    If i have the following data:

    A B
    1 2012-05-15 100
    2 2012-05-22 103
    3 2012-05-29 96
    4 2012-06-04 110
    5 2012-06-22 85
    6 2012-07-15 102
    7 2012-07-17 109
    8 2012-07-20 115
    9 2012-07-23 97
    10 2012-07-31 99
    11 2012-08-25 89
    13 2012-08-27 102
    14 2012-09-12 129

    How can I use a vlookup to extract only the July 2012 rows? So in other words to get the following table (basically as if i was using the excel filter function to filter out the month and year):

    1 2012-07 102
    2 2012-07 109
    3 2012-07 115
    4 2012-07 97
    5 2012-07 99

    Thanks in advance
    Last edited by deanstein; 09-14-2012 at 03:42 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Vlookup Month and Year in a Date

    Hello

    One way is this. Look at my sample.

    Is it OK for you?
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    08-13-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Vlookup Month and Year in a Date

    Exactly what I was looking for! Thank you very much!

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Vlookup Month and Year in a Date

    You are welcome!

  5. #5
    Registered User
    Join Date
    08-13-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Vlookup Month and Year in a Date

    Hi Fotis

    I thought everything was working but then tested the year part of the date and it doesn't seem to be doing anything

    Please help!

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Vlookup Month and Year in a Date

    Apologize! Wronk sample! Don't worry.

    Here is the correct.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-13-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Vlookup Month and Year in a Date

    Thank you very much! Works like a charm now

+ 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