+ Reply to Thread
Results 1 to 3 of 3

Applying Characters to Text in Cells?

  1. #1
    Registered User
    Join Date
    01-09-2007
    Posts
    43

    Applying Characters to Text in Cells?

    HI,

    I'd like to apply characters to a word or a phrase in a cell based on the content of another cell. For example:

    Cell A1,2,3
    word one
    word two
    word three

    Cell B1,2,3
    yes
    yes
    no

    Cell C1,2,3
    "word one"
    "word two"
    [word three]

    As you can see, if the word in column A is next to a cell in column B that has a yes in it then it will add quote marks as shown in cells C1 and C2. If the cell in column B has a no in it then square brackets are added around the word or phrase in cell C.

    Is this possible and if so how?

    Thanks,
    Alex
    Last edited by byepeeps; 07-01-2010 at 10:57 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,447

    Re: Applying Characters to Text in Cells?

    =if(upper(b1)="yes",char(34)&a1&char(34),"["&a1&"]")
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    01-09-2007
    Posts
    43

    Re: Applying Characters to Text in Cells?

    Quote Originally Posted by Andy Pope View Post
    =if(upper(b1)="yes",char(34)&a1&char(34),"["&a1&"]")
    Thank you so much that works a treat. I've added to your reputation if that is any use to you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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