Looking up dates and splitting a travel cost evenly

Zippoah

New Member
Joined
Apr 10, 2018
Messages
2
Hi,

I want a formula that will look up dates and split a travel cost evenly for contractors.

For example:

If they work on two jobs on one day, I want to split the daily travel costs evenly.

1/1/2018 Job A 8 hours
2/1/2018 Job A 4 hours
2/1/2018 Job B 4 hours
3/2/2018 Job C 8 hours
4/2/2018 Job C 2 hours
4/2/2018 Job D 6 hours

Daily travel: $20.50

So what formula do I use to lookup the dates and split the travel so it will give me the following:

1/1/2018 Job A 8 hours $20.50
2/1/2018 Job A 4 hours $10.25
2/1/2018 Job B 4 hours $20.00
3/2/2018 Job C 8 hours $20.00
4/2/2018 Job C 2 hours $5.125
4/2/2018 Job D 6 hours $15.375

Thank-you for any help!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
I tried a VLOOKUP function and listed the split amount for each hour, but I want it to be able to check if there are duplicates for the date and then split. Otherwise, I want to give it the full amount for the daily travel costs:

For example:
1/1/2018 Job A 8 hours $20.50
2/1/2018 Job A 4 hours $10.25
2/1/2018 Job B 4 hours $20.00
3/2/2018 Job C 8 hours $20.00
4/2/2018 Job C 2 hours $5.125
4/2/2018 Job D 6 hours $15.375
5/2/2018 Job D 6 hours $20.50 (as there are no other jobs for that day)

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,316
Members
452,634
Latest member
cpostell

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