+ Reply to Thread
Results 1 to 4 of 4

Using text from a cell as part of formula text

  1. #1
    Registered User
    Join Date
    10-08-2012
    Location
    Finland
    MS-Off Ver
    Excel 2010
    Posts
    26

    Using text from a cell as part of formula text

    Hi,

    Is there a way to use text from a cell as part of formula text in another cell?

    For example:
    in general, there is four sheets in the workbook (car, banana, apple and result).
    Car, banana, and apple sheets have the same structure and data.

    In the result sheet:
    If A1 is a list and you can select "car!, banana!, apple!"
    A2 is the "main formula". In this formula I would like to pick the sheet to be used from the list in A1, but use the rest of formula text as typed in the formula.

    For example, in short: "=SUM(A1&B1:B100)". By changing the A1 results in different total. I have tried with CONCATENATE and & " " methods, but does not work. I also tried FORMULATEXT before CONCATENATE, but all these results in #VALUE!

    Brg,
    Thomas
    Last edited by truohol; 11-22-2021 at 04:48 AM. Reason: Solved

  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,288

    Re: Using text from a cell as part of formula text

    You will need the |INDIRECT function: https://exceljet.net/formula/indirec...ifferent-sheet
    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
    Registered User
    Join Date
    10-08-2012
    Location
    Finland
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Using text from a cell as part of formula text

    Ah, I tried that also, but a bit wrongly. Thank you!

  4. #4
    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,288

    Re: Using text from a cell as part of formula text

    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 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)

Similar Threads

  1. [SOLVED] Search a column for parts of text and return another part of text within the same cell
    By ClaudiaRovastino in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2021, 01:06 PM
  2. Formula to remove part of text from cell
    By Davidpcl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-08-2020, 02:40 PM
  3. Using Text in another cell to use as part of a formula
    By Helpappreciated107 in forum Excel General
    Replies: 3
    Last Post: 05-10-2016, 01:29 AM
  4. Formula to identify part of a text in cell from range of cells & insert adjacent cell text
    By Novicebutnotforlong in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-19-2013, 02:11 AM
  5. Replies: 7
    Last Post: 01-24-2013, 06:55 PM
  6. Replies: 5
    Last Post: 04-08-2012, 01:06 AM
  7. Insert cell text as part of formula?
    By elazarus in forum Excel General
    Replies: 3
    Last Post: 06-03-2009, 11:24 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