+ Reply to Thread
Results 1 to 5 of 5

lookup within a formular

  1. #1
    Registered User
    Join Date
    02-28-2022
    Location
    Australia
    MS-Off Ver
    2019
    Posts
    2

    lookup within a formular

    Hi,
    I am hopeing someone can help with this, I have numerous cels on worksheets that refer to a different workbook

    ='[Drivers_Invoices_2019.xlsm]Drv 1-3'!$D$59

    I would like to have a a cel on a setup sheet in the workbook where I can put in a date that the above formula will look for. Example: I type in 2021 and the above formula will read ='[Drivers_Invoices_2021.xlsm]Drv 1-3'!$D$59 or if I type 2022 the formular will read ='[Drivers_Invoices_2022.xlsm]Drv 1-3'!$D$59

    at the moment I have to go through the whole wokbook and change the year of the drivers_invoice workbook
    Thanks
    Grumpar

  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. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,886

    Re: lookup within a formular

    Like this:

    =INDIRECT("'[Drivers_Invoices_"&A1&".xlsm]Drv 1-3'!$D$59")

    where A1 is the cell containing the year.
    Last edited by AliGW; 02-28-2022 at 01:47 PM. Reason: Typo fixed.
    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 - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: lookup within a formular

    Hi and welcome to the forum

    Just use

    Data...Edit Links...Change Source and select the 2021 workbook.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    02-28-2022
    Location
    Australia
    MS-Off Ver
    2019
    Posts
    2

    Re: lookup within a formular

    Thankyou AliGW for quickly responding, that worked great.
    Thankyou Richard Buttrey, I will check that out too.
    Last edited by Grumpar; 02-28-2022 at 02:25 PM.

  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. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,886

    Re: lookup within a formular

    Glad to help.

+ 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. Order formular with assortment lookup
    By jesperb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2020, 10:38 AM
  2. Complicated formular. Formular, remove text if available
    By TheTrooper1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2014, 12:39 PM
  3. IF Formular with Average Formular
    By Ginger2k9 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-28-2014, 04:56 AM
  4. [SOLVED] Replacing a date formular result with another formular
    By stpeter in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-06-2013, 06:27 PM
  5. [SOLVED] Advance lookup formular (simplification needed)
    By pabloponza in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-22-2013, 10:56 PM
  6. Which formular should be
    By thepdaoson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-20-2011, 03:45 AM
  7. Excel 2007 : Lookup:create a formular
    By Shazz in forum Excel General
    Replies: 5
    Last Post: 10-20-2009, 07:56 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