+ Reply to Thread
Results 1 to 2 of 2

How to use substitute?

  1. #1
    Registered User
    Join Date
    07-24-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2000,2003,2010
    Posts
    38

    How to use substitute?

    If I have “H” in the A1 I can get “H” converted to “V”
    Or
    If I have “V” in the A1 I can get “V” converted to “H”
    By using following formula:
    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B3,"H","Z"),"V","H"),"Z","V")
    if I have “H” or “V” in the A1 how can I get result = “T”
    Thank you for help.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How to use substitute?

    Isn't this just
    =SUBSTITUTE(SUBSTITUTE(B3,"H","T"),"V","T")
    ie, H changes to T and V changes to T
    Or try

    =SUBSTITUTE(B3,A1,"T")
    where A1 contains H or V
    Last edited by Special-K; 05-01-2015 at 11:02 AM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

+ 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: 4
    Last Post: 10-28-2014, 11:04 PM
  2. 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
  3. Using &Chr$(39)& as substitute for ' in VBA
    By Paul987 in forum Excel General
    Replies: 4
    Last Post: 03-15-2006, 10:55 AM
  4. [SOLVED] substitute for =
    By CEN7272 - ExcelForums.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 PM
  5. [SOLVED] substitute for =
    By Gary's Student in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 09:05 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