For payroll purposes I need to be able to calculate the amount of days between two dates, but within a given payroll period.
Any help is greatly apprechiated.
copied down and across, will give you the count of days between two dates as you asked.
You can have working days count if you want; this assuming Sat and Sun are weekends:
NETWORKDAYS.INTL can also include a list of holiday dates to exclude and can define any combination of days of the week that are to be counted as working days.