+ Reply to Thread
Results 1 to 8 of 8

Find data, delete row, copy in new data - multiple sheets

Hybrid View

gmn734 Find data, delete row, copy... 07-22-2013, 05:40 AM
AB33 Re: Find data, delete row,... 07-22-2013, 05:59 AM
gmn734 Re: Find data, delete row,... 07-22-2013, 06:24 AM
AB33 Re: Find data, delete row,... 07-22-2013, 07:15 AM
gmn734 Re: Find data, delete row,... 07-22-2013, 07:36 AM
oeldere Re: Find data, delete row,... 07-22-2013, 08:00 AM
AB33 Re: Find data, delete row,... 07-22-2013, 08:07 AM
gmn734 Re: Find data, delete row,... 07-22-2013, 08:49 AM
  1. #1
    Registered User
    Join Date
    06-18-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    8

    Find data, delete row, copy in new data - multiple sheets

    Hi,

    First post - very new to excel/vba and completely stuck here, any help is much appreciated. The basic outline is below, but having such limited knowledge of VBA im finding it v.difficult to fill in the code.

    I have two sheets, DATA and OVERVIEW.

    OVERVIEW sheet
    >Cell D4 is what i want to search for
    DATA sheet
    >Find D4 in Column A
    >>If found delete entire row
    >>If not found then go onto next stage anyway
    OVERVIEW sheet
    >Copy cells D4:AS4
    DATA sheet
    >Paste into the first empty row in colum A


    So i basically want to search for something in the data sheet, and if it is found replace it with cells D4:AS4 from the overview sheet.

    Is this the best way to do it?

    Thanks for any help
    Attached Files Attached Files
    Last edited by gmn734; 07-23-2013 at 11:02 AM.

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

    Re: Find data, delete row, copy in new data - multiple sheets

    gmn74,
    Welcome to the forum!
    You are likely to get a speed reply if you could attach a sample book. To attach a sample, go to advance then attachment.

  3. #3
    Registered User
    Join Date
    06-18-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Find data, delete row, copy in new data - multiple sheets

    Hi, i have attached, hopefully it works, thanks

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

    Re: Find data, delete row, copy in new data - multiple sheets

    gmn74,
    if they match you want to copy the data in overview sheet in to Data sheet.
    "If found delete entire row?"
    Which one do you want to delete? Is the row from sheet overview once it is copied in to sheet Data?

  5. #5
    Registered User
    Join Date
    06-18-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Find data, delete row, copy in new data - multiple sheets

    Hi AB33,
    Not quite - If D4(Overview sheet) is found in ColumnA:A (Data sheet) I want it to delete that row in columnA:A (data sheet). Thats because i then want it to copy D4:AS4(Overview sheet) into the next empty row in columnA:A(Data sheet).

    Im not sure this is the best way, but i essentially want to edit the numbers in E4:AS4(overview sheet) and then copy them back into the data sheet, removing the old data in the data sheet (if there is already old data there, if not i want it just copy the new stuff in). Cell D4(overview sheet) will be the unique identifier.

    Does that clarify? Or have i just confused you even more?

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find data, delete row, copy in new data - multiple sheets

    Seeing your file.

    Not exact understand what your trying to do.

    I think you should re-arange the file from columns into row (verticaly).

    Then you will be able to use pivot table to analize your data.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

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

    Re: Find data, delete row, copy in new data - multiple sheets

    No, it is not clear!
    A2 of sheet data UKBIOREPR_0 is the only row which match with D4 of sheet overview. You want to delete the entire Row 2 of Sheet data and then what?
    You want to copy D4-AS4 from sheet overview in to where in sheet data?

  8. #8
    Registered User
    Join Date
    06-18-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Find data, delete row, copy in new data - multiple sheets

    Quote Originally Posted by AB33 View Post
    No, it is not clear!
    A2 of sheet data UKBIOREPR_0 is the only row which match with D4 of sheet overview. You want to delete the entire Row 2 of Sheet data and then what? Copy D4-AS4 from OVERVIEW to the next empty row in DATA (row5 once row2 has been deleted). Effectively replacing the old UKBIOREPR_0 (in the DATA sheet) with the UKBIOREPR_0 from the OVERVIEW sheet
    You want to copy D4-AS4 from sheet overview in to where in sheet data?
    I have amended the spreadsheet slightly. This is how it will look at the first stage. D4:AS4(OVERVIEW sheet) is the same as row2 (DATA sheet), D6:AS6(OVERVIEW sheet) is the same as row3 (DATA sheet) and so on. There will be a number of graphs in the OVERVIEW sheet, i will analyse the data and manually make changes to the numbers (E4:AS4, E6:AS6 and so on) in the OVERVIEW sheet. Then i want to use a macro to copy the updated numbers from the OVERVIEW sheet to the DATA sheet, i can then export this sheet out. In terms of process I thought the best way to do it would be to delete the old UKBIOREPR_0 in the DATA sheet and then copy the updated UKBIOREPR_0 (D4:AS4) from the OVERVIEW sheet.

    Thanks for your patience
    Attached Files Attached Files
    Last edited by gmn734; 07-23-2013 at 11:03 AM.

+ 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. Enter data, copy formulas, copy values, paste data, delete data
    By alf40 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-15-2013, 07:23 PM
  2. Search Data from Multiple Sheets and copy found data to new workbook
    By xenith1988 in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 06-26-2012, 12:58 PM
  3. Selection of cells in multiple sheets and delete the data in them
    By kolovel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2011, 06:17 AM
  4. Find and copy data from multiple sheets
    By GaryMallin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2010, 01:08 PM
  5. how do i find data in multiple sheets in excel
    By Karline in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-13-2005, 01:06 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