Return Bi-Weekly Period Based on Transaction Date

wannabewhiz

New Member
Joined
Jan 6, 2022
Messages
3
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
  2. MacOS
Hi everyone :) Long time lurker, first time poster

My goal is to use a formula to return a date from an established list on another sheet based on a different date. Let me explain..

"Sheet 1" has been populated with a long list of Bi-Weekly Period End dates, specific to my company. The first "Bi-Weekly Period End Date" is static & the list continues using a simple "A1+14" formula. Because they are specific to my company and not just every 2 weeks starting 1/1/xx, this can not change. I can add columns in, but reinventing how these dates are populated is unfortunately not a viable option.

"Sheet 2" is where all 'hard' data for the file is housed and I use formulas to extract what is needed for pivot tables to make sense of the large data sets. Within the data are transaction dates embedded in column E for each row and I use a formula to pull out just the date for each row into "M1", "M2", etc.

What formula could I use in say "AF1" on "Sheet 2" to return the correct "Bi-Weekly Period End Date" from "Sheet 1" that the transaction date in "M1" falls within?

The Vlookups I've tried don't return consistent results as the "M1" date doesn't 'match' many of the Bi-Weekly Period End dates. Some internet sleuthing gives me a lot of results for pay dates based on 'today', but nothing remotely applicable to this quandary. I'm hesitant to upload images or Mini-sheets as the data I'm working with is confidential, but can answer any questions as best I can to get some help with this. I'm stumped!!

Thank you ?
wannabewhiz
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
vlookup with 1 as last parameter ???
amoverton2 - 1 (1).xlsm
ABCDEFGHIJK
1in your sheet1in your sheet2
2Biweeklyperiodyour datebiweeklyperiod
3zo 02/jan/22period1zo 02/jan/22zo 02/jan/22period1
4zo 16/jan/22period2ma 03/jan/22zo 02/jan/22period1
5zo 30/jan/22period3di 04/jan/22zo 02/jan/22period1
6zo 13/feb/22period4wo 05/jan/22zo 02/jan/22period1
7zo 27/feb/22period5do 06/jan/22zo 02/jan/22period1
8zo 13/mrt/22period6vr 07/jan/22zo 02/jan/22period1
9zo 27/mrt/22period7za 08/jan/22zo 02/jan/22period1
10zo 10/apr/22period8zo 09/jan/22zo 02/jan/22period1
11zo 24/apr/22period9ma 10/jan/22zo 02/jan/22period1
12zo 08/mei/22period10di 11/jan/22zo 02/jan/22period1
13zo 22/mei/22period11wo 12/jan/22zo 02/jan/22period1
14zo 05/jun/22period12do 13/jan/22zo 02/jan/22period1
15zo 19/jun/22period13vr 14/jan/22zo 02/jan/22period1
16zo 03/jul/22period14za 15/jan/22zo 02/jan/22period1
17zo 17/jul/22period15zo 16/jan/22zo 16/jan/22period2
18zo 31/jul/22period16ma 17/jan/22zo 16/jan/22period2
19zo 14/aug/22period17di 18/jan/22zo 16/jan/22period2
20zo 28/aug/22period18wo 19/jan/22zo 16/jan/22period2
21zo 11/sep/22period19do 20/jan/22zo 16/jan/22period2
22zo 25/sep/22period20vr 21/jan/22zo 16/jan/22period2
23zo 09/okt/22period21za 22/jan/22zo 16/jan/22period2
24zo 23/okt/22period22zo 23/jan/22zo 16/jan/22period2
25zo 06/nov/22period23ma 24/jan/22zo 16/jan/22period2
26zo 20/nov/22period24di 25/jan/22zo 16/jan/22period2
27zo 04/dec/22period25wo 26/jan/22zo 16/jan/22period2
28zo 18/dec/22period26do 27/jan/22zo 16/jan/22period2
29zo 01/jan/23period27vr 28/jan/22zo 16/jan/22period2
30zo 15/jan/23period28za 29/jan/22zo 16/jan/22period2
31zo 29/jan/23period29zo 30/jan/22zo 30/jan/22period3
32zo 12/feb/23period30ma 31/jan/22zo 30/jan/22period3
33zo 26/feb/23period31di 01/feb/22zo 30/jan/22period3
34zo 12/mrt/23period32wo 02/feb/22zo 30/jan/22period3
35zo 26/mrt/23period33do 03/feb/22zo 30/jan/22period3
36zo 09/apr/23period34vr 04/feb/22zo 30/jan/22period3
37zo 23/apr/23period35za 05/feb/22zo 30/jan/22period3
38zo 06/feb/22zo 30/jan/22period3
39ma 07/feb/22zo 30/jan/22period3
40
Blad1
Cell Formulas
RangeFormula
I3:I39I3=VLOOKUP(H3,$A$3:$B$37,1,1)
J3:J39J3=VLOOKUP(I3,$A$3:$B$37,2,1)
H4:H39H4=+H3+1
A4:A37A4=+A3+14
 
Upvote 0
vlookup with 1 as last parameter ???
I'm not sure I follow this.

When using this formula: "=VLOOKUP(H25,$A$3:$B$37,1,1)", ensuring the table array is referencing the bi-weekly periods in my workbook, "N/A" results are returned.

In review of the J3 formula, it doesn't appear the I3 formulas are dependent on adding the "period1, period2, etc.", so I didn't add it (unnecessary data only inflates an already memory intensive workbook). Was this important?
 
Upvote 0
vlookup with 1 as last parameter ???
Additionally, the returned data is incorrect.

For example: Jan 04, 2022 wouldn't be Bi-Weekly Period End Date Jan 02, 2022 because it falls after that period end date. It would be Period End Date Jan 16, 2022. Even if I was able to return similar results, unfortunately, it's not accurate.
 
Upvote 0
A3 is your first end of period date, i used sunday 2/1/22 there, but you have to change into a date that "is specific to your company". Once that is done, the other cells in that column are always +14.

if you want the enddate, add simply 13 (or 14 depends what you want)
Excel Formula:
=VLOOKUP(H3+13,$A$3:$B$37,1,1)
 
Upvote 0

Forum statistics

Threads
1,215,529
Messages
6,125,345
Members
449,220
Latest member
Edwin_SVRZ

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