Excel copy and pasting depending on date range / input of date

Stonefield

New Member
Joined
Feb 10, 2018
Messages
2
Hi,

I really hope someone is able to help me out. I have been looking for ways to resolve this excel challenge :)

I have an excel file with 3 worksheets (Overview, Input Data and Current Candidates on Project)
Overview is simple. It shows dates for the year, and start date on the left side. End date on the right side. Overviews should be depending on Input Data.

In the sheet Overview running totals is calculated by the sum of running totals by the previous day added by sale value added on the current day deducted with sale value of the candidates with an end date.

Overview
StartdateRunning totalsClientCandidate nameSale ValueEnddateClientRunning totalsSale Value
1-1-2018
2-1-2018
3-1-2018
4-1-2018

<tbody>
</tbody>


Input Data
Start dateEnd dateClientCandidate NameSale Value
5-1-201815-2-2018Test1John400
10-1-201828-2-2018Test2John2500
5-1-201815-2-2018Test3John3750

<tbody>
</tbody>

Current Candidates on Project
Start dateEnd dateClientCandidate NameSale Value

<tbody>
</tbody>

Question
Would it be possible to create a VBA script or any other solutions that would copy and paste data from Input Data to Sheet Overview and paste it to the corresponding data in the field depending on the data I fill in the sheet Input Date?

So if a candidate would start on 5-1-2018 and end on 15-2-2018 the corresponding data should go on Input Data on the 5th of jan as a stating candidate and at the same time added on the right on the 15th of feb as a ending candidate.

Next to the pasting there is one other challenge. What if there is already data on that date? Ideally I would line to insert a new row and add the data underneath it.

The last challenge is to also paste the candidates that are working TODAY should be displaced on the sheet Current Candidates on Project

Is something like this possible at all?

Your help is very much appreciated. I am stuck with finding a solutions.

Regards,

Rutger
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
What appears on the Sheet InputData is 100% Input - No changes are made to it from the proposed Macro; Right?

The Overview Sheet AND the Current Candidates on Project ARE BOTH updated from the Proposed Macro; Right?

Show us by filling in to the two updatable sheets Overview & CConP the Info as it shoud appear AFTER Running the Macro!!

Regards,

Jim
 
Upvote 0
What appears on the Sheet InputData is 100% Input - No changes are made to it from the proposed Macro; Right?

The Overview Sheet AND the Current Candidates on Project ARE BOTH updated from the Proposed Macro; Right?

Show us by filling in to the two updatable sheets Overview & CConP the Info as it shoud appear AFTER Running the Macro!!

Regards,

Jim

Hi Jim,

Thank you for replying so quickly. Great that you are willing to have a look.
The Input Data is indeed 100% input. No changes to be made.
Overview and Current Candidates are both updated from the proposed macro.

Below is the ideal situation with first the Input Data field, then the Overview and Current Candidates.
I added Employee name and input data to calculate sale value.

Overview
(sale value = ((margin*hours per week)-(Shrinkage*margin*hours per week)

StartdateEnddateEmployee nameClientCandidate nameBillPayMarginHours per weekShrinkage (%)Sale value
3-1-20184-1-2018abcTest1John1009554015,00%170
5-1-20187-1-2018defTest2John28575104015,00%340
6-1-20189-1-2018defTest3John38067,512,54015,00%425
5-1-20187-1-2018ghjTest4John46052,57,54015,00%255

<colgroup><col span="2"><col><col><col span="4"><col><col><col></colgroup><tbody>
</tbody>

Overview
StartdateRunning totalsEmployee nameClientCandidate nameSale ValueEnddateEmployee nameClientCandidate nameSale Value
1-1-2018€ 0,001-1-2018
2-1-2018€ 0,002-1-2018
3-1-2018€ 170,00abcTest1John1703-1-2018
4-1-2018€ 170,004-1-2018abcTest1John170
5-1-2018€ 595,00defTest2John23405-1-2018
ghjTest4John4255
6-1-2018€ 1.020,00defTest3John34256-1-2018
7-1-2018€ 1.020,007-1-2018defTest2John2340
ghjTest4John4255
8-1-2018€ 680,008-1-2018
9-1-2018€ 680,009-1-2018defTest3John3425
10-1-2018€ 255,0010-1-2018
11-1-2018€ 255,0011-1-2018
12-1-2018€ 255,0012-1-2018

<colgroup><col><col span="2"><col span="2"><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

Current candidates on project
Date TodayStartdateEnddateEmployee nameClientCandidate nameSale Value
6-1-20185-1-20187-1-2018defTest2John2340
6-1-20189-1-2018defTest3John3425
5-1-20187-1-2018ghjTest4John4255
1020Total

<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>


If I can help in any way please let me know!

Rutger
 
Upvote 0
@Stonefield

Please do not post the same question multiple times. Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).
Note that sometimes posts from new users require Moderator approval before you can see them on the public forums. When this happens, you should see a message to that effect when you try to post it.
Please be patient and do not attempt to post the question again.

I have deleted your other 2 replies to this thread
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,863
Messages
6,127,391
Members
449,382
Latest member
DonnaRisso

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