+ Reply to Thread
Results 1 to 27 of 27

automatically coping entire rows to new sheets when date is entered

  1. #1
    Registered User
    Join Date
    01-07-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    automatically coping entire rows to new sheets when date is entered

    I have a sheet that the log is for a month. Each day has several orders and detail on each row. These days are broken into 4 column's that show what department(I,J,K and L) the order was from. I have four sheets in the same book that I use to break the month up into departments. I need to know if it is possible to automatically copy row information to different sheets when the value in the column each department is populated. I am inserting a picture of the sheet. It shows the different columns and you can see the four other tabs on the bottom. Thanks Untitled1.png

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: automatically coping entire rows to new sheets when date is entered

    Hi Cisquester, and welcome to the forum

    not every1 can open .png files, myself included. It would be far better if you could upload a sample of your file, showing what you have, and an example of your expected outcome. Thanks
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-07-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: automatically coping entire rows to new sheets when date is entered

    Book1.xlsx

    Thank you for the reply. Sorry about that. Here is a copy of the file. I need to know if I can populate each sheet with the totals from the column it coincides with. The total month is on page one and then is broken down into departments. Example: "Ch, Di, Ni, Po" have to be totaled on a different page. Seems like it can be done but its way too deep for me.
    Thanks

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: automatically coping entire rows to new sheets when date is entered

    some additional information would help, Do you just want the total(bottom line) or the individual items, then total them on the department page?
    where on the department page would you like this to go?, you have several columns there, not sure which you want it under..billed maybe?
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: automatically coping entire rows to new sheets when date is entered

    Most of the headings you have on sheet1 do not match the headings on the summary sheets, So its hard to see what you want extracted. I have created a Pivot Table on sheet CH, this could be copied to the other sheets and adjusted, if it's something you can work with?
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-07-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: automatically coping entire rows to new sheets when date is entered

    Thank you to everyone that has replied. What I'm looking for is to take each column "Ch, Di, Ni and Po" and put on the coinciding sheet as follows. Customer, Invoice, hours and Billed. All the other columns were just what was being done previously. All fields on the new sheets (Ch, Di, Ni and Po) are changable. Its a work in progress at the monent. So far I have condensed the job to what we see in the sample sheet I posted. Believe it or not they were still doing all this by hand. If I can just get this last bit to transfer when a departmen is filled(Ch, Di, Ni or Po) and automatically fill each sheet i can reduce the labor. The only thing I need on each coinciding sheet is a department total. The departments fll under columns I, J, K and L. All other totals only need to be on the month end sheet which is the 1st sheet.

  7. #7
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: automatically coping entire rows to new sheets when date is entered

    The Department Total transfer is relatively easy, the problem is WHERE would you like it to be placed? not trying to be rude, but there is no column or row indicated for a total, that's why I am asking..

  8. #8
    Registered User
    Join Date
    01-07-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: automatically coping entire rows to new sheets when date is entered

    Thank you dredwolf for your reply. I am not looking so much for a total. What I need is for all information on each line to show in the sheet that coincides with the column. Example: The first dollar amounnt to show is for column K "Ni" for $175.00. So I need all informtion from row "4" to transfer to sheet "Ni". If I can get this information to transfer automatically I can finish each sheet setup.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: automatically coping entire rows to new sheets when date is entered

    Did you look at the PT i suggested?

  10. #10
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: automatically coping entire rows to new sheets when date is entered

    Okay, so the idea is that if there is a value in the department column, ALL the info on that row gets transfered ?....that is do-able, however, as FDibbins explained earlier, few, if any, of the column headers match up, so it makes it more difficult to do an "Easy" transfer...if you don't mind me meddling with your Workbook a bit, I think we can make this fairly painless

    This may take a bit, but I'll get you a solution

  11. #11
    Registered User
    Join Date
    01-07-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: automatically coping entire rows to new sheets when date is entered

    Yes FDiddins and thank you very much. I'm having trouble looking at what you sent from my home computer. I only have a preview window from here. I can check it again tomorrow from work. At a glance it looks like it might help. The information I really need is the "Invoice number, Customer, Hours and "Column" total. The column total being the dollar amount for each department. (Ch, Di, Ni, and Po). But I will settle for the whole row transfering to a sheet.

  12. #12
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: automatically coping entire rows to new sheets when date is entered

    Or, go with FDibbins PT solution..leaves out a lot of pain( for you AND me )

  13. #13
    Registered User
    Join Date
    01-07-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: automatically coping entire rows to new sheets when date is entered

    That would be wonderful dredwolf! the information on the sheets (Ch, Di, Ni and Po) were just what someone else was doing with this project. I am trying to combine all in one. This might look like a mess but the beginning was a nightmare. My only concern was having the rows copy over to a second sheet as the information was put into the first.

  14. #14
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: automatically coping entire rows to new sheets when date is entered

    Also...there is NO customer (Name/Number or otherwise) listed in the workbook,unless "Trav." is it?, so that field would remain blank, either way

  15. #15
    Registered User
    Join Date
    01-07-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: automatically coping entire rows to new sheets when date is entered

    Sorry dredwolf my bad on that one. It would be Invoice, Journal Transaction, Hours then Columns "I, J, K or L" (Ch, Di, Ni or Po") That would be the relevant information but I will settle for the whole row if I have too. You guys are the best

  16. #16
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: automatically coping entire rows to new sheets when date is entered

    Ok, I'll work on it, but, I really do recommend taking a closer look at FDibbins' solution when you get the chance, there's a lot you can accomplish with his solution that you'd have to figure out differently with this route

  17. #17
    Registered User
    Join Date
    01-07-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: automatically coping entire rows to new sheets when date is entered

    Thank you dredworf and FDiddins I will look at it in the morning. You guys ahve been a lot of help. Any thing is better than the stone and chisel method these guys were using before. Its been a long three month. I will update you on the progress in the morning.

  18. #18
    Registered User
    Join Date
    01-07-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: automatically coping entire rows to new sheets when data is entered

    Book1.xlsx

    I looked at the Pivot Table file this morning. I could use this but it pulles in all the information and I'm only looking to fiter out. I have attached a new copy of the test file. It shows Ch and Di filled in from the information on sheet1. If sheet1 were really this small it wouldnt be a problem but sheet1 can grow to over 1000 rows each month. I was looking to see if when a column like "Ch" was populated can I get the sheet to automatically copy that row to sheet2? no other rows just the rows that have something in Column "Ch". Likewise on the other sheets for the corresponding rows. Thanks for the replies

  19. #19
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: automatically coping entire rows to new sheets when date is entered

    Okay Try this then, Under Tab Ni the results are shown (I have allowed for 600 transactions /month,if you need more, just extend the formulas further down), to get rid of the blank rows, hit the filter button in A1 and unselect (blanks): Cisquester .sol2.xlsx

    To move to the other sheets, Select A3-F3,Copy,then select A3 in the other sheets,paste.
    Drag them down as far as needed, apply the filter

    Hope this helps

  20. #20
    Registered User
    Join Date
    01-07-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: automatically coping entire rows to new sheets when date is entered

    Wow dredwolf! This is brilliant! I will test it tomorrow and get you feedback. Looks good so far but I will have to check the full file.
    Thank you so much.....update to follow

  21. #21
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: automatically coping entire rows to new sheets when date is entered

    Actually, found an issue, the D column formula needs to be changed a bit...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The the BOLD RED letter (at the end of the formula) needs to be changed to the following on each sheet
    For Ch sheet, Change it to I
    For Di sheet, Change it to J
    For Ni sheet, Change it to K
    For Po sheet, Change it to M

    Discovered that some of the Debits are split between 2 or more departments, which I would not have thought about, except that iI was playing around with FDibbins PT solution, and noticed the irregularities

  22. #22
    Registered User
    Join Date
    01-07-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: automatically coping entire rows to new sheets when date is entered

    Hello dredwolf. It's been a busy morning. I took a better look at the formula you posted. One again it is brilliant. I was playing with it when I noticed it copies the total of each order. That is what sheet one does amoung other things. What I was looking for was to split the total between the departments. For instance: Invoice 126341 has a total of $389.20. I have to find a way to split it between Ni ($179.20) and Po ($210.00) without having to copy/past or retype a month of information. This split will get me department gains or losses once I have compiled the numbers on separate sheets. I am still playing with your formula to see if I can figure it out. Thanks so much for the help

  23. #23
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: automatically coping entire rows to new sheets when date is entered

    Yes,I had noticed that as well, Take a look at post 21, It explains how to adjust the formula in Column D to ONLY get the department Values, not the total

    Hope this helps

  24. #24
    Registered User
    Join Date
    01-07-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: automatically coping entire rows to new sheets when date is entered

    Thank you so much for everyone for the help. This worked beautifully!

  25. #25
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: automatically coping entire rows to new sheets when date is entered

    You are welcome

  26. #26
    Registered User
    Join Date
    01-07-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: automatically coping entire rows to new sheets when date is entered

    Hello! Its me again. I know this thread was solved but I have an add on to this original problem. I have been asked to break down the numbers further but can't seem to get the formula correct. I have Book1.xlsxbeen double checking for three days. Running different tests but still don't know what I am doing wrong. Can anyone help

  27. #27
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: automatically coping entire rows to new sheets when date is entered

    Not sure what the problem is?
    The only thing I did notice is that the "Totals" was missing in the bottom row of Sheet1, column A(the yellow highlighted row) , replace this and the Ni page formulas seem to work fine(as this is the only page with formulas).reapply the filter on a column to remove blanks and it should be fine..

    If this is not what you were asking about, please add more information on what you need

    Hope this helps

+ 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