+ Reply to Thread
Results 1 to 4 of 4

Search first two letter and replace with particular word in table

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Post Search first two letter and replace with particular word in table

    hi,
    i have a table with data
    in range c10:c100
    i want to replace data with LF To start with LF
    For Example
    "LF SARFARAZ NK" Replace with "LF"
    "LF GULLU G" replace with "LF"
    "LF H FAYYAZ G" replace with "LF"
    "LF HAROON" replace with "LF"

    any Word start with "LF " should replace with "LF"

    Thanks
    Attached Files Attached Files
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,595

    Re: Search first two letter and replace with particular word in table

    Try
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Search first two letter and replace with particular word in table

    Quote Originally Posted by jindon View Post
    Try
    Please Login or Register  to view this content.

    Thank you sir

  4. #4
    Forum Contributor
    Join Date
    08-12-2020
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office 16
    Posts
    241

    Re: Search first two letter and replace with particular word in table

    If you do not want to use VBA you can place this in another column starting on row 10 =IF(LEFT(C10,2)="LF","LF",C10) and drag down. Then copy/paste values back to the C column.

+ 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. Excel VBA - Word to search for part of a word and replace full word
    By charlie543 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-24-2016, 02:56 AM
  2. Using Replace() to search for a two-word phrase
    By jpcsolutions in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-09-2015, 02:25 PM
  3. [SOLVED] Match letter to table in another tab to equal word
    By unclejemima in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-24-2013, 06:17 PM
  4. [SOLVED] Modify left-search formula to replace letter with number
    By Mikey7346 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-27-2012, 05:30 AM
  5. Search and Replace... from Excel to Word
    By Xx7 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-27-2011, 03:05 PM
  6. Replace a letter with a word
    By jaywizz in forum Excel General
    Replies: 2
    Last Post: 08-10-2009, 06:43 AM
  7. Replies: 5
    Last Post: 09-13-2005, 07: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