Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: SUBSTITUTE and AND

  1. #1
    Guest

    Default

    Hi all,

    I'm trying to use =SUBSTITUTE and =AND in one formula but can't get the syntax right :

    A1 : "This is the sentence I want to alter"

    B1 : substitute "sentence" with "file" and substitute "alter" with "delete"

    is it possible ?

    many thanks
    Chris

  2. #2
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi

    If your text is in cell C3, try:

    =SUBSTITUTE(SUBSTITUTE(C13,"sentence","File"),"alter","Delete")

  3. #3
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Millbank, London, UK
    Posts
    1,790
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Good on ya Dave !

    thanks
    Chris

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •