+ Reply to Thread
Results 1 to 4 of 4

Substitute first character with number in S1

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2016
    Posts
    888

    Substitute first character with number in S1

    I have numbers in Col A and would like to substitute the first character for eg 862490 with number in S1. for e.g if S1 is 2 then after using substitute it should be 262490


    I have tried to use , but get an incorrect answer

    Please Login or Register  to view this content.
    I have attached sample data


    Your assistance is most appreciated
    Attached Files Attached Files
    Last edited by Howardc1001; 05-23-2020 at 10:34 PM.

  2. #2
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2016
    Posts
    888

    Re: Substitute first character with number in S1

    I have managed to sort it out

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,055

    Re: Substitute first character with number in S1

    As long as the cell (A1) is not blank, you could also use the REPLACE function for this...

    =REPLACE(A1,1,1,$S$1)
    Last edited by Rick Rothstein; 05-23-2020 at 11:06 PM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Office 365 (Win 10 - Work) & Office 365 Subscription Insider (Win 10 - Home)
    Posts
    37,523

    Re: Substitute first character with number in S1

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

+ 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