+ Reply to Thread
Results 1 to 7 of 7

Cells Referenced in a Formula

  1. #1
    Forum Contributor
    Join Date
    11-29-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    104

    Cells Referenced in a Formula

    Good morning all,
    I have a question I can use a bit of direction on,

    I want to pull the cell references for each of the cell referenced in a formula. For example:

    If in cells A1:A12 you have the following values, 41734, 34673, 49365, 40804, 32221, 35453, 38521, 51037, 56854, 30672, 14267, 21600. And in cell A13 you have the following formula:

    =A1+A2+A3+A4+A5+A6+A7+A8+A9+A10+A11+A12.

    (In this overly simplified example) How would I pull the cells references (A1, A2 etc.) for each of the cells referenced in cell A13? Ultimately a list of cell references from a formula. Combined with transpose to give values in column layout

    My current idea is to copy the formula and paste it in another cell with a “ ‘ “ in front so I see the formula. Then parse the formula based on the operator. Then build a string that is the tab name and cell reference.

    My ultimate goal is to use this solution with the offset function to basically do a reverse vlookup.

    Practical application: My boss routinely has me take over excel worksheets that he maintains that I will have to replicate for the following year. And my first thought is, how can I quickly see what cells he is referencing in his formulas without clicking into the cell, and manually writing the value from each cell in the formula.

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Cells Referenced in a Formula

    Toggle your worksheet with CTRL + tilde (~). Then back again to see results.

    Pete

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Cells Referenced in a Formula

    You can also use FORMULATEXT, copy/paste values and then manipulate the resulting text string.
    Dave

  4. #4
    Forum Contributor
    Join Date
    11-29-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    104

    Re: Cells Referenced in a Formula

    Never knew about FORMULATEXT, great suggestion.
    However what I am looking to do is pull the cell references out of a formula. I am able to see them, I just need to pull them out, and put them in a column

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Cells Referenced in a Formula

    Here's one way.

    With the output of FORMULATEXT in B2 enter this formula in A2 and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    A
    B
    2
    A1
    =A1+A2+A3+A4+A5+A6+A7+A8+A9+A10+A11+A12
    3
    A2
    4
    A3
    5
    A4
    6
    A5
    7
    A6
    8
    A7
    9
    A8
    10
    A9
    11
    A10
    12
    A11
    13
    A12

  6. #6
    Forum Contributor
    Join Date
    11-29-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    104

    Re: Cells Referenced in a Formula

    WOW, this formula does exactly what I need! This will be invaluable.
    Thank you so much!!

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Cells Referenced in a Formula

    You are welcome. Glad to help. Thank you for the feedback and added rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Formula Issue regarding referenced cells
    By jdiamond13 in forum Excel General
    Replies: 1
    Last Post: 07-13-2016, 06:35 PM
  2. Formula when the number of referenced cells changes
    By dkester in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-31-2013, 01:14 PM
  3. Replies: 1
    Last Post: 04-30-2012, 10:01 PM
  4. Locking Formula to referenced cells...
    By High_Road in forum Excel General
    Replies: 1
    Last Post: 03-23-2012, 12:12 PM
  5. Select referenced cells in a formula
    By kzbigboss in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2009, 01:17 AM
  6. Sorting Referenced Cells in VBA and Keeping Them Referenced
    By BrownTeddyBear in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2009, 06:15 AM
  7. Highlighting referenced cells within a formula
    By jonnyaykroyd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2007, 08:48 AM

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