+ Reply to Thread
Results 1 to 3 of 3

VLookup (to be variable by month)

  1. #1
    Registered User
    Join Date
    09-17-2019
    Location
    Brisbane, Australia
    MS-Off Ver
    Office365
    Posts
    9

    VLookup (to be variable by month)

    Hey all,

    If this is a duplicate post, then I apologise in advance, but I don't know what words I should be using to search for an answer.

    Example Workbook attached.

    I want to be able to select someone from the first drop down (D2) to populate the date below, but then be able to switch from month to month by using the second drop down (I2)

    I am pretty sure I have overthought this and am now stumped.. Any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    697

    Re: VLookup (to be variable by month)

    See the attached file, based on the period the values will change and for the name parameter, I have given 2 conditional formatting.

    =IF(C$5="","",VLOOKUP($B6,INDIRECT("'"&TEXT($J$2,"Mmm")&"-"&RIGHT(YEAR($J$2),2)&"'!$A$3:$Z$17",TRUE),COLUMN(Summary!B$5),0))

    Please review and revert if you need further assistance.
    Attached Files Attached Files

  3. #3
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,972

    Re: VLookup (to be variable by month)

    Worksheet Summary, B6 cell formula , Drag down and accross

    HTML Code: 

+ 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. [SOLVED] Set variable range Sheet named month and 4 diferent ranges in each month.
    By clixo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2020, 07:24 AM
  2. Calc days in month when full and variable month for a budget report
    By JOHNAK27 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-10-2018, 03:29 PM
  3. [SOLVED] VBA Code to convert one variable as an Integer to a new variable as a month name
    By rvgray in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2017, 03:18 AM
  4. [SOLVED] Convert two digit month (ex 10) to full Month Name in Variable
    By orozvik in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-30-2015, 05:42 PM
  5. Replies: 18
    Last Post: 09-08-2014, 05:06 PM
  6. VB Help - Month Beginning Month End Variable
    By Jonesey_MFC in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2012, 11:13 AM

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