+ Reply to Thread
Results 1 to 8 of 8

need an excel macro for split from last space

  1. #1
    Forum Contributor
    Join Date
    04-06-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    193

    Angry need an excel macro for split from last space

    if my F range has
    1935 E Bijou St 80909-5816
    3030 N Hancock Ave 80907-5761
    5490 Powers Center Pt. #148 80908

    i need to split from last space

    F range a
    1935 E Bijou St
    3030 N Hancock Ave
    5490 Powers Center Pt. #148
    G range as
    80909-5816
    80907-5761
    80908

    need a macro not equation

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: need an excel macro for split from last space

    In A1 Cell
    1935 E Bijou St 80909-5816

    In B1 Cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag it down..


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    04-06-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    193

    Re: need an excel macro for split from last space

    sorry mr sixthsence
    i need a macro not formula that i specified in #1

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: need an excel macro for split from last space

    Try this code...

    Change the Range("A1:A5") to your desired range...

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-06-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    193

    Re: need an excel macro for split from last space

    while running this macro two problems comes
    1. all spaces are removed (F range)
    2. last word did not come in next cell (G range)

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

    Re: need an excel macro for split from last space

    Try this
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    04-06-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    193

    Re: need an excel macro for split from last space

    thank u mr jindon

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: need an excel macro for split from last space

    Try this revised code....

    Please Login or Register  to view this content.

+ 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