General Help

Shamrock0515

New Member
Joined
Mar 17, 2011
Messages
3
Hello Everyone,
I am new to excel and have only begun to use a small portion of its vast capabilities. I am creating a schedule sheet that list employees work days and shifts. We go by pay periods "PP-1 to PP-26". each PP goes in two week incriments. For example PP-1 is 1/1-1/14, i have put a drop down that has PP-1 to PP-26, i want each PP to represent a specific date in another cell, how can i accomplish this?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
There are several ways. You can have all the dates included in a table somewhere and use a VLOOKUP to search the list for it. You can also calculate the date based on your PP-1 cell.

Assuming your drop down is in cell A1, you can use this formula.

=RIGHT(A1,LEN(A1)-3)*14+40530

It will extract the numerical part of the drop down and skip the "PP-" part. 40530 is the serial date number for 12/18/2010. So for "PP-1" it extracts the 1, multiplies that by 14 and adds it to 12/18/2010, which will give you 1/1/11.

Next one will add 28 days which will give you 1/15/11 etc etc.

Hope that gets you started!
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,916
Members
452,949
Latest member
beartooth91

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