+ Reply to Thread
Results 1 to 3 of 3

Replace a character in a data vector with the next character in another data vector

  1. #1
    Registered User
    Join Date
    07-21-2016
    Location
    New Orleans
    MS-Off Ver
    2016
    Posts
    1

    Replace a character in a data vector with the next character in another data vector

    I have a row of values, for example:

    14112

    and another row:

    abd.krtvg.ehrg..ewx.rewt

    For each '.' I need the next number in the first row to replace it.
    The final line should look like:

    abd1krtvg4ehrg11esx2rewt

    Any suggestions?

    Thanks

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Replace a character in a data vector with the next character in another data vector

    Welcome to the board.

    A
    B
    C
    D
    2
    abd.krtvg.ehrg..ewx.rewt
    14112
    abd1krtvg4ehrg11ewx2rewt C2: =t2o(A2, B2)


    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Replace a character in a data vector with the next character in another data vector

    Slightly different approach, both as a UDF:

    Please Login or Register  to view this content.
    And as a sub:

    Please Login or Register  to view this content.
    I'm interested in starting a career working with VBA, if anyone knows of any opportunities!

+ 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. Replies: 4
    Last Post: 12-21-2012, 02:56 PM
  2. Replies: 7
    Last Post: 09-22-2011, 11:06 AM
  3. Lookup vector - result vector
    By abousetta in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-23-2011, 02:59 AM
  4. Create shorter vector from a vector of unknown length
    By agentred in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2010, 12:53 PM
  5. Charting from data vector in VB
    By bost_a in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-29-2007, 08:43 AM
  6. Manipulating data in a vector
    By cremins in forum Excel General
    Replies: 1
    Last Post: 11-24-2006, 03:29 AM
  7. [SOLVED] How do I draw 3D vector arithmetic, showing vector subtraction?
    By Colin Kemp in forum Excel General
    Replies: 0
    Last Post: 04-05-2006, 02:35 AM
  8. [SOLVED] importing undelimited text file data, character-by-character
    By The Mos$ in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-26-2005, 07:10 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