+ Reply to Thread
Results 1 to 9 of 9

Convert References in Formula to Containing Formula

  1. #1
    Registered User
    Join Date
    05-30-2018
    Location
    United States
    MS-Off Ver
    2007
    Posts
    19

    Convert References in Formula to Containing Formula

    I'm sorry for the confusing title but I have no idea how else to word that. The clearest way I can ask this question is with an example. Say cells A1, A2, and A3 contain any value. Now say that B1 contains "=A1+A2" and B2 contains "=A2-A3". Finally, say that cell C1 contains "=B1+B2". Is there a way I can replace a value in a formula, such as B1 with what cell B1 contains? In the end I'd like to have cell C1 equal "=(A1+A2)+(A2-A3)" so that I may eliminate the B1:B2 values... essentially skipping the middle man of formulas.

    EDIT: I want this to occur in a click rather than me entering in the values. Ultimately this is for HUGE formulas.
    Last edited by SDings; 07-26-2018 at 01:54 PM.

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,664

    Re: Convert References in Formula to Containing Formula

    Formula given for C1 is free from B cells. Where is the question of middle man?
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,416

    Re: Convert References in Formula to Containing Formula

    haven't you answered your own question???

    =(A1+A2)+(A2-A3)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    05-30-2018
    Location
    United States
    MS-Off Ver
    2007
    Posts
    19

    Re: Convert References in Formula to Containing Formula

    I'm not sure what you're asking. If cell C1 contains a formula that currently references B1 and B2, but, B1 and B2 reference A1, A2, and A3. I want to convert the formula inside of C1 to instead of referencing B1 and B2 to instead directly contain the formulas that B1 and B2 have.

  5. #5
    Registered User
    Join Date
    05-30-2018
    Location
    United States
    MS-Off Ver
    2007
    Posts
    19

    Re: Convert References in Formula to Containing Formula

    I'm looking for this to occur with an option, like a 1 click button of some kind. Not so much as entering it in.
    Last edited by SDings; 07-26-2018 at 12:05 PM.

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Convert References in Formula to Containing Formula

    Quote Originally Posted by SDings View Post
    C1 contains "=B1+B2". Is there a way I can replace a value in a formula, such as B1 with what cell B1 contains? In the end I'd like to have cell C1 equal "=(A1+A2)+(A2-A3)" so that I may eliminate the B1:B2 values... essentially skipping the middle man of formulas.

    EDIT: I want this to occur in a click rather than me entering in the values. Ultimately this is for HUGE formulas.
    So you want to delete the 'middle man' cells afterwards?

    What you call a middle man, everyone else calls a helper cell, the purpose of which, more often than not, is to help simplify huge formulas.

  7. #7
    Registered User
    Join Date
    05-30-2018
    Location
    United States
    MS-Off Ver
    2007
    Posts
    19

    Re: Convert References in Formula to Containing Formula

    Quote Originally Posted by jason.b75 View Post
    So you want to delete the 'middle man' cells afterwards?

    What you call a middle man, everyone else calls a helper cell, the purpose of which, more often than not, is to help simplify huge formulas.
    Which is understandable. Just curious if that was applicable. I'm looking to have a clean excel doc for all to use and if I can delete these cells then I can keep it looking clean easier than anticipated. That or I improve my cell organizational skills. OR I could put the formulas and answers on different sheets. But I was simply curious if it were applicable to just do this.

  8. #8
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Convert References in Formula to Containing Formula

    If the middle man / helper cells are all in column B, why not just hide the column?

    To do what you want would require a vba procedure (aka a macro) of some kind. A little bit of organisation would probably require a lot less effort.

  9. #9
    Registered User
    Join Date
    05-30-2018
    Location
    United States
    MS-Off Ver
    2007
    Posts
    19

    Re: Convert References in Formula to Containing Formula

    Quote Originally Posted by jason.b75 View Post
    If the middle man / helper cells are all in column B, why not just hide the column?

    To do what you want would require a vba procedure (aka a macro) of some kind. A little bit of organisation would probably require a lot less effort.
    I'll be honest. I didn't one could even hide a row/column. That's significantly helpful and will do what I need for now while maintaining a good appearance for the sheet. 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. Auto fill formula to last row, formula references another sheet
    By Cheesecube in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-20-2018, 12:31 PM
  2. Write a formula that references another cell with a formula
    By knuckledownlacrosse in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-29-2015, 04:44 PM
  3. [SOLVED] How to avoid formula circular references and hiding and locking the formula
    By Venkata Krishna in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 06-21-2013, 08:17 AM
  4. Formula to pull cell references from a formula
    By amartin575 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2013, 11:53 PM
  5. [SOLVED] Need to Convert Formula R1C1 into A1-style but the Formula String exceeds 255 characters
    By VBA_Gary in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-04-2012, 12:09 PM
  6. Replies: 7
    Last Post: 01-31-2012, 12:18 PM
  7. Dissecting a formula string into references/non-references
    By quekbc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-06-2011, 10:52 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