+ Reply to Thread
Results 1 to 4 of 4

Append word before text

  1. #1
    Forum Contributor
    Join Date
    12-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    387

    Append word before text

    Hi,

    I want to add common text to the beginning of all cells "OK" with condition
    IF Text string is =17 (LEN=17) then ADD "OK" Text beginning of cell.

    is that possible? if so, then how?
    My English is very poor, so please be patient >_<"

    Thanks & Regards.
    hkbhansali

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Append word before text

    Your request is not entirely clear to me, but this will check the LEN of A1. If the LEN is = 17 then add the text "OK", if not then just return what is in A1

    =IF(LEN(A1)=17,"OK "&A1,A1)
    HTH
    Regards, Jeff

  3. #3
    Forum Contributor
    Join Date
    12-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    387

    Re: Append word before text

    Thanks..jeffreybrown

    it's perfect what I want..

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Append word before text

    You are very welcome and thanks for the feedback.

+ 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] Create a Text File and then Append Text
    By dflak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2019, 12:39 PM
  2. Append, Excel data, to Word Table
    By ericbartha in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 12-08-2016, 07:18 PM
  3. Append data, from Excel, to word table
    By ericbartha in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-07-2016, 11:29 AM
  4. append a word document from Excel VBA, which is already created
    By prabhucse in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-05-2016, 03:08 AM
  5. Replies: 2
    Last Post: 03-21-2011, 06:42 AM
  6. [SOLVED] append data from text box
    By Qaspec in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-01-2006, 01:20 PM
  7. [SOLVED] Text Export/Append
    By Mr. C in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2006, 02:40 PM

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