+ Reply to Thread
Results 1 to 5 of 5

If data entered in cell, on same row, copy and paste data from other cells to front sheet

  1. #1
    Registered User
    Join Date
    10-16-2013
    Location
    Queensland, Australia
    MS-Off Ver
    MS365, Version 2202
    Posts
    73

    If data entered in cell, on same row, copy and paste data from other cells to front sheet

    Hi Guys, I'm back once more, hoping you can continue my salvation.

    I've got raw data from a rostering program. I want to create a summary page of all employee's overtime hours and the shift date, commence time and end time.

    Overtime hours are in column O. If cell empty, skip to next cell. If cell has data (any data, doesn't matter what), then move to column D on same row and paste data to dashboard!D5, then move to column G, paste data to dashboard!E5, then loop onwards to the next cell in column O with data.

    It would probably be best if a 'insert row' was used just prior to the pasting of data on the dashbaord, as the spreadsheet will be run monthly, and the dashboard will accumulate new data each time, which, without an insert row feature, will eventually overun previous rows.

    sample workbook attached

    Sample workbook.xlsm

    you guys are unbelievably awesome

    Thanks in advance!

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

    Re: If data entered in cell, on same row, copy and paste data from other cells to front sh

    It is not clear if you want to copy in to next row or column.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-16-2013
    Location
    Queensland, Australia
    MS-Off Ver
    MS365, Version 2202
    Posts
    73

    Re: If data entered in cell, on same row, copy and paste data from other cells to front sh

    Hi AB33,

    I apologise, I realise that by providing only one page in my sample workbook I've made it confusing about what I'm attempting to do.

    I have attached a new sample workbook with three pages and the summary page.

    Your formula presented the data exactly how I wanted, thank you very, very much , but I'm not sure it will work for the repeated sheets/employees.

    When I was talking about inserting rows, as you can now see in the new sample workbook, I need to insert new rows for the data to prevent it from over running employee's further down the sheet.

    Thank you again for your amazing help ^_^


    Sample workbook.xlsm

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

    Re: If data entered in cell, on same row, copy and paste data from other cells to front sh

    Christ,
    Try the attached.

    It works on the sample. It will definitely work if you run it once. it also work, if you re-run it and if the layout of the dashboard remains unchange.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-16-2013
    Location
    Queensland, Australia
    MS-Off Ver
    MS365, Version 2202
    Posts
    73

    Re: If data entered in cell, on same row, copy and paste data from other cells to front sh

    You're an absolute wizard! I tried for days to make this work and just couldn't figure it out. I think I'm a little to new at VBA to be trying advanced stuff, but I'll keep trying! thanks again for your amazing help!

    You're a champion!

+ 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. Copy and paste the most recent entered data from other worksheets to summary sheet
    By cvsrini in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-18-2013, 04:51 AM
  2. Compare one cells from sheet 2 and paste the value in front of the cell
    By jeevan123 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-15-2012, 05:26 AM
  3. VBA copy sheet 1 to a new sheet when data is entered in a certain cell
    By dustinshepard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-27-2012, 11:50 PM
  4. Replies: 5
    Last Post: 07-03-2012, 03:54 PM
  5. Copy row from Sheet 1 to Sheet 2 when data entered in cell F
    By tony0710 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-12-2011, 02:39 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