+ Reply to Thread
Results 1 to 6 of 6

Select data based on Find text function

  1. #1
    Forum Contributor
    Join Date
    07-18-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    192

    Select data based on Find text function

    Hi friends

    I have attached the file in which I want to copy data from Column A (cell A6) until macro finds (TOTAL OPERATING EXPENDITURE which is cell A63). I also want to copy from cell O6 to O63 (where TOTAL OPERATING EXPENDITURE intercept). I want to copy this data into new worksheet.

    Once the data has been copied in the new tab, I want to delete rows between row 7 (next row from "Account Number & Description" to row where "Statutory Outgoings" starts).

    I tried doing it but couldn't work out. Can you please help?

    Appreciate your time and effort in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Select data based on Find text function

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Select data based on Find text function

    Try the attached.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    07-18-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Select data based on Find text function

    Hi

    The above macro doesn't achieve the result I want. I have attached the file and highlighted cells Which are to be copied into new tab.

    From Cell A6, the macro should find "TOTAL OPERATING EXPENDITURE" and select cells from A6 to A63, O6 to O63 and P6 to P63.

    Once the data is copied into new tab, the macro should look for "STATUTORY OUTGOINGS" and delete the data as highlighted in the attached.

    Can you please help?

    Thanks a lot for your time
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Select data based on Find text function

    Which of the above? There are two
    You did not mention column P in your original request.
    Try the attached.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    07-18-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Select data based on Find text function

    Hi AB33

    This works perfect. Thanks a lot for your time and effort.

+ 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: 2
    Last Post: 10-21-2015, 12:28 PM
  2. [SOLVED] How to find text then select RANGE form the text found to lastrow of Column J
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2014, 02:45 AM
  3. [SOLVED] Find cell based on its text value in row 1, then select the cell directly below that
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-06-2014, 09:40 AM
  4. [SOLVED] Find and select based on content
    By joevan1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-03-2013, 07:08 PM
  5. Replies: 3
    Last Post: 10-24-2012, 07:11 AM
  6. macro to find text heading then select underlying data?
    By excelRookie06 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-07-2011, 12:31 PM
  7. VBA to find and select text within text and highlight
    By Marrick13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-25-2011, 08:05 PM

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