Transfer Data from 1 sheet to another given conditions.

blanx

New Member
Joined
Mar 10, 2018
Messages
11
Sheet 1 and 2 are a Timesheet setup in a table. Table1 Sheet1 and Table2 Sheet2. Sheet 1 is the 1st 2 weeks of the pay period, Sheet 2 is the second 2 weeks. Formulas in the Table autofill in case a new row needs to be added based on spit days.

What I need to do is copy data from 1 of the rows to a separate sheet that will be a form used to track exactly what task are done that day if its under a specific grant. out of the possible grants only 3 need this. The user will complete most things on the form which will be sheet3 4 5 etc... The data moved over is used for uniformity and currently because its on different documents and does not auto fill users screw up the hours they work and total hours for the grant. IE the need to copy it from the timesheet so pay roll prove the data if a grant audit occurs. You can image the headaches and legal troubles based on a screwup by the user. This will keep the data the same and no screwups.

So.....

The grant code DS, DA, and DOP are located in column K13 thru K26 (if no new rows are added). If K13 on Table1 has the DS code I need to fill in data from B C E K and L on a new sheet. Then if the next time one of the above codes is used I need a second sheet to fill in the data only from that row. Say K18 on Table 1. then the next time its K15 on Table2.

Any ideas how to do this?
I have considered using Sum&countif to tell me how many times the grant is used. Then i would need a formula to find the 1st time its used on Sheet3 and Sheet4 would look for the second time its used and so forth.

I dont want to use Macros because of security and VB might be to cumbersome. It would be great not to have 40 sheets and have to put formulas in each but have excel auto create a new sheet based on how many codes are used but I assume that has to be coded in VB.

my intention is to put 8 new sheets and use formulas on each one to look for the first grant code used the second, third, etc... and fill in the required data.

Any help would be great.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
You could use an array formula with 1 or more criteria to consolidate data into another sheet.

It would be easier to deal with a small sample of both tables, if you can post?
 
Upvote 0
yN7Q8zb
here are 2 pictures, one of part of the timesheet that matters. and the second is the grant sheet that only has the data required to copy over. the grant code says circle but it can just fill in the code used. https://ibb.co/yN7Q8zb
yN7Q8zbhttps
yN7Q8zb
4FKND1K
https://ibb.co/4FKND1K

I couldn't figure out how to attach the pictures so the links are for them
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,377
Members
448,955
Latest member
BatCoder

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top