+ Reply to Thread
Results 1 to 6 of 6

A problem with creating a formula to substitute given symbols

  1. #1
    Forum Contributor
    Join Date
    05-01-2014
    Location
    RIX
    MS-Off Ver
    Excel 2003; 2007
    Posts
    114

    A problem with creating a formula to substitute given symbols

    Hello!

    I've got a workbook with multiple formulas e.g.:

    t=S/D

    TCh=Ch*(S^2/2D)*(D/Q)

    TC=Co*(D/Q)+Ch*((i-D)/2i)*Q

    which are built by implementing the symbols:

    t, S, D, TCh, Ch, Q, TC, Co, i

    I'd like to substitute the symbols in following sequence:

    t = a
    S = b
    D = c
    TCh = d
    Ch = e
    Q = f
    TC = g
    Co = h
    i = x

    Questions:

    1) Which formula could substitute the symbols automaticly?

    2) If there are up to 100 formulas in the workbook in the range of A1:E100,-

    would it be possible to to set the substitution for the mentioned range?

    See the attachment.

    I'll really appreciate your cooperation!
    Attached Files Attached Files
    Last edited by Arty_1; 05-17-2014 at 07:09 AM.
    Regards

    Arty

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: A problem with creating a formula to substitute given symbols

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    will do it, but cell by cell so to cover A1:E100 I would put this in F1 and drag it down and across to J100. You could then copy and paste values over the original data. Alternatively use Ctrl+H.

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: A problem with creating a formula to substitute given symbols

    You can not input the formula and the value in the same cell. So if you have values in A1:E100 range, you need to put the substitute formula in a cell which is out of this range. But if you want to change the value in the cell itself, you will need a VBA Code to do that. If this is your requirement, you may try this code to see if this works as per your requirement.
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Forum Contributor
    Join Date
    05-01-2014
    Location
    RIX
    MS-Off Ver
    Excel 2003; 2007
    Posts
    114

    Re: A problem with creating a formula to substitute given symbols

    Thanks Gak67! Indeed, both formula and Ctrl+H can be used in this case!

    Thanks for your effort!

  5. #5
    Forum Contributor
    Join Date
    05-01-2014
    Location
    RIX
    MS-Off Ver
    Excel 2003; 2007
    Posts
    114

    Re: A problem with creating a formula to substitute given symbols

    Thank you sktneer! The VBA code you've provided me with is definitely going to be useful!

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: A problem with creating a formula to substitute given symbols

    You're welcome.

+ 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] help creating conditional formatting symbols using a formula
    By SEMMatt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-22-2013, 10:27 AM
  2. Substitute text for data symbols?
    By Lis7 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 12-07-2012, 04:21 PM
  3. How to use a substitute formula to substitute text entries to a different text entry
    By andybocchi in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-01-2010, 07:50 PM
  4. =SUBSTITUTE Problem
    By seanjacob in forum Excel General
    Replies: 3
    Last Post: 09-23-2010, 06:04 AM
  5. Creating custom chart legen pallettes/styles symbols
    By ChartDummy in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-19-2005, 12:06 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