+ Reply to Thread
Results 1 to 9 of 9

VLOOKUP MONTH & YEAR formula

  1. #1
    Registered User
    Join Date
    01-15-2015
    Location
    Seattle, WA
    MS-Off Ver
    2013
    Posts
    21

    Question VLOOKUP MONTH & YEAR formula

    I need to update my formula so that it captures the month & year of a date.
    Here is what I have now: =IFERROR(VLOOKUP(MONTH(D8)&"/"&YEAR(D8),Months,2),"")

    So far the formula only returns the "NULL" value from my table.

    Months_Table.jpg

    •D8 represents the cell containing my date.
    •"Months" represents my table containing the months of the year

    Any help would be appreciated

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: VLOOKUP MONTH & YEAR formula

    Please post a sample sheet so we can work with it. Thank you

  3. #3
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: VLOOKUP MONTH & YEAR formula

    IFERROR(VLOOKUP(PROPER(TEXT(D8,"MMM/")&YEAR(D8),Months,2),"")

  4. #4
    Registered User
    Join Date
    01-15-2015
    Location
    Seattle, WA
    MS-Off Ver
    2013
    Posts
    21

    Re: VLOOKUP MONTH & YEAR formula

    VLOOKUP_Test.xlsx

    Here is a test sheet to play with.
    Thank you very much for any advice you can offer.

  5. #5
    Registered User
    Join Date
    01-15-2015
    Location
    Seattle, WA
    MS-Off Ver
    2013
    Posts
    21

    Re: VLOOKUP MONTH & YEAR formula

    Quote Originally Posted by tim201110 View Post
    IFERROR(VLOOKUP(PROPER(TEXT(D8,"MMM/")&YEAR(D8),Months,2),"")
    I tried this formula and got an error message that I had entered too many arguments.
    Thank you for your response. I appreciate the effort.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: VLOOKUP MONTH & YEAR formula

    Perhaps this...
    =IFERROR(VLOOKUP(C4,Months[Column2],1,1),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    917

    Re: VLOOKUP MONTH & YEAR formula


  8. #8
    Registered User
    Join Date
    01-15-2015
    Location
    Seattle, WA
    MS-Off Ver
    2013
    Posts
    21

    Re: VLOOKUP MONTH & YEAR formula

    Quote Originally Posted by FDibbins View Post
    Perhaps this...
    =IFERROR(VLOOKUP(C4,Months[Column2],1,1),"")
    This worked perfectly!

    Thank you!!

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: VLOOKUP MONTH & YEAR formula

    Happy to help. For future reference, if you post on another forum, you must include a link to that thread here (and there), so that members dont waste their time answering a thread that may already have been answered on another forum

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 11-26-2013, 02:34 PM
  2. If Column A Month and Year = ColumnB Todays Month and Year then send email
    By HACCStaff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2013, 12:47 AM
  3. Vlookup Month and Year in a Date
    By deanstein in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-14-2012, 12:52 PM
  4. Replies: 4
    Last Post: 02-14-2010, 05:21 AM
  5. formula for prior month & year of a month end date.
    By mikeburg in forum Excel General
    Replies: 2
    Last Post: 09-25-2007, 04:01 PM

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