+ Reply to Thread
Results 1 to 7 of 7

Need Specific Text in a Cell From a Cell which Have the Data

  1. #1
    Registered User
    Join Date
    10-09-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    8

    Need Specific Text in a Cell From a Cell which Have the Data

    Hi All

    Need your help with writing a Macro to get some data. I have the data in an excel cell like:

    ABC; PQR; XYZ; LMP - Reporting
    BCD; GHI; JKL; DEF - Reporting

    and so on. I want that complete text including that "- Reporting" after that ;. Final result should look like this:

    ABC; PQR; XYZ; LMP - Reporting LMP - Reporting
    BCD; GHI; JKL; DEF - Reporting DEF- Reporting


    Thanks in advance for the help.

    Abhishek

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Need Specific Text in a Cell From a Cell which Have the Data

    1.
    Quote Originally Posted by abhishek_singhal View Post
    ... I have the data in an excel cell like:
    ABC; PQR; XYZ; LMP - Reporting
    BCD; GHI; JKL; DEF - Reporting
    ???
    Does it mean that way - see image: "Input Variants" ?
    One line in one cell (Variant 1) or one line in many cells (Variant 2) ?

    2.
    Quote Originally Posted by abhishek_singhal View Post
    ... Final result should look like this:
    ABC; PQR; XYZ; LMP - Reporting LMP - Reporting
    BCD; GHI; JKL; DEF - Reporting DEF - Reporting
    ???
    And analogously to the variants above - see image: "Input Variants" ?
    Attached Images Attached Images

  3. #3
    Registered User
    Join Date
    10-09-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    8

    Re: Need Specific Text in a Cell From a Cell which Have the Data

    Hello

    Thanks for the prompt reply. I think I made it little bit confusing, here is the screenshot for what is needed:

    1.png

    One point I forgot to mention earlier, that "- Reporting" can be anywhere in the complete text means it can be in the starting, middle or end. If that remains in the end all the time it would be easier to use Text to Column and use the last column.

  4. #4
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Need Specific Text in a Cell From a Cell which Have the Data

    Does every line in column 'A' contain this text, i.e. '- Reporting' or can there be lines without this text ?

  5. #5
    Registered User
    Join Date
    10-09-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    8
    Quote Originally Posted by porucha vevrku View Post
    Does every line in column 'A' contain this text, i.e. '- Reporting' or can there be lines without this text ?
    Yes, all lines in column A will have that "- Reporting" text.

  6. #6
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Need Specific Text in a Cell From a Cell which Have the Data

    Try:
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-09-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    8

    Re: Need Specific Text in a Cell From a Cell which Have the Data

    Hey

    Thanks a lot, it worked perfectly. You are awesome...!

+ 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] Enter data into a userform text box to show in a specific cell in a specific worksheet
    By Stevecraig211 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-10-2016, 10:02 AM
  2. How to pull data from a cell ref specific text
    By Clanty in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-18-2016, 04:48 PM
  3. Replies: 5
    Last Post: 04-09-2014, 10:36 PM
  4. Replies: 7
    Last Post: 01-04-2014, 10:11 PM
  5. Replies: 3
    Last Post: 07-12-2013, 09:17 AM
  6. Replies: 0
    Last Post: 11-06-2012, 06:44 PM
  7. Replies: 1
    Last Post: 06-22-2012, 02:18 PM

Tags for this Thread

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