+ 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 2021
    Posts
    2,709

    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 2021
    Posts
    2,709

    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
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,401

    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
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,348

    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!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] Substitute or replace number segment on multiple number range
    By AMOON12 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-05-2020, 03:54 PM
  2. Substitute function problem- Numeric as Text-Need to have those as Number
    By punno2015 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-29-2019, 11:54 AM
  3. Substitute letter for number
    By mal_god in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-11-2015, 03:47 PM
  4. [SOLVED] Remove duplicates of substitute part number
    By costi_linho12 in forum Excel General
    Replies: 11
    Last Post: 02-07-2015, 01:09 PM
  5. Replies: 4
    Last Post: 10-28-2014, 11:04 PM
  6. [SOLVED] Substitute employee number with name from another spreadsheet.
    By MilesVB in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-18-2012, 12:09 PM
  7. Replies: 4
    Last Post: 11-17-2011, 10:45 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