+ Reply to Thread
Results 1 to 7 of 7

Change cells value if begins with spesific number

  1. #1
    Registered User
    Join Date
    07-26-2012
    Location
    Poland
    MS-Off Ver
    Excel 2010
    Posts
    45

    Change cells value if begins with spesific number

    Hi All,
    I have excell file which has some document numbers in B column. I would like to change with macro same specific numbers as text. For example if my numbers begins with 19, change as ''Invoice'' or if begins with 840, change as ''Payment'' or if begins with 180, change as ''Correction'' . Could you please help me regarding this case. Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Change cells value if begins with spesific number

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Change cells value if begins with spesific number

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-26-2012
    Location
    Poland
    MS-Off Ver
    Excel 2010
    Posts
    45

    SOLVED Re: Change cells value if begins with spesific number

    Please Login or Register  to view this content.
    Dear Bob Philips and Patel45,
    I tried both codes, They are working. Thank you so much again. My problem was solved by you.

  5. #5
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: SOLVED Re: Change cells value if begins with spesific number

    Quote Originally Posted by elevisse View Post
    Please Login or Register  to view this content.
    Dear Bob Philips and Patel45,
    I tried both codes, They are working. Thank you so much again. My problem was solved by you.
    Really? They do different things!

  6. #6
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Change cells value if begins with spesific number

    not so different for a smart user !

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Change cells value if begins with spesific number

    @ elevisse

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

+ 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