+ Reply to Thread
Results 1 to 5 of 5

Help! VLOOKUP / INDIRECT formula when the data is a formula

  1. #1
    Registered User
    Join Date
    02-28-2019
    Location
    Scarborough, England
    MS-Off Ver
    MS 365 Subscription (Windows 11 64-bit)
    Posts
    17

    Help! VLOOKUP / INDIRECT formula when the data is a formula

    Hi,

    Please note I am self taught in Excel. I will try best explain the best I can, but don't know the lingo

    I am doing a formula (below) which looks up data in a sheet name. The data is a date for example 01.02.22

    =VLOOKUP($F4,INDIRECT("'"&AN$2&"'!"&"F4:W300"),18,0)

    Cell AN2 is a formula =C2+7

    When AN2 is a formula the VLOOKUP formula doesn't work. But when I type the date straight into AN2 it works.

    How do I change it so it does work with the formula?

    Thanks in advance,

    Jenny
    Last edited by jennyclark; 06-15-2022 at 07:36 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,926

    Re: Help! VLOOKUP / INDIRECT formula when the data is a formula

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,926

    Re: Help! VLOOKUP / INDIRECT formula when the data is a formula

    Try this:

    =VLOOKUP($F4,INDIRECT("'"&TEXT(AN$2,"dd.mm.yyyy")&"'!"&"F4:W300"),18,0)

    Failing that, attach a workbook.

  4. #4
    Registered User
    Join Date
    02-28-2019
    Location
    Scarborough, England
    MS-Off Ver
    MS 365 Subscription (Windows 11 64-bit)
    Posts
    17

    Re: Help! VLOOKUP / INDIRECT formula when the data is a formula

    Thank you

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,926

    Re: Help! VLOOKUP / INDIRECT formula when the data is a formula

    Glad to have helped.

    If you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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