+ Reply to Thread
Results 1 to 4 of 4

Change reference "name" in formula to value inside other cell

  1. #1
    Registered User
    Join Date
    11-27-2020
    Location
    Denmark
    MS-Off Ver
    Office365
    Posts
    13

    Question Change reference "name" in formula to value inside other cell

    Hi guys,

    Sorry for the not so flattering title of my issue, I simply do not know how to put it in short term.

    My issue is:

    I have an sheet with an overview.
    It is like this in format:

    1 2
    A Doc. no. Amount (Reference to another sheet)
    B Doc. no. Amount (Reference to another sheet)
    C Doc. no. Amount (Reference to another sheet)

    It is looking into another sheet to find the amount of a deal. I have been doing this manually - stupid, I know

    All sheets are named a Doc. no. that matches the Doc. no. in the overview.

    Now, my VLOOKUP forumla looks like this: =+VLOOKUP(G4;'50025041'!B24:D119;3;FALSE)
    Working great - no problems.

    BUT.. I would like to change the red number, so it points to A1 instead. Is it possible to do so in an easy way?
    Last edited by AliGW; 01-04-2021 at 09:48 AM. Reason: SOLVED tag added - no need to edit the thread title!!!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Change reference "name" in formula to value inside other cell

    You could do it using the INDIRECT function, like this in B1:

    =VLOOKUP(G4;INDIRECT("'"&A1&"'!B24:D119");3;FALSE)

    then copy down.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    11-27-2020
    Location
    Denmark
    MS-Off Ver
    Office365
    Posts
    13

    Re: Change reference "name" in formula to value inside other cell

    I have never heard of the function before - works perfectly! Thank you very much
    Last edited by AliGW; 01-04-2021 at 09:48 AM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,381

    Re: [PROBLEM SOLVED] Change reference "name" in formula to value inside other cell

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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: 5
    Last Post: 10-27-2020, 12:14 PM
  2. [SOLVED] drag-across of INDIRECT function does not change cell reference between " " marks
    By Pilly Ears in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-07-2018, 06:56 AM
  3. [SOLVED] drag-down of indirect function does not change cell reference within " "
    By alsan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-15-2016, 07:09 AM
  4. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  5. Replies: 9
    Last Post: 09-25-2013, 06:26 PM
  6. Change "Parent" cell based on results of multiple "Children" cells
    By ccowman in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 12-14-2012, 02:33 AM
  7. Replies: 9
    Last Post: 11-06-2012, 08:59 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