Forum Discussion

SCJohnson3's avatar
SCJohnson3
Copper Contributor
Dec 17, 2021
Solved

Order Guide

Is there a way for me to have the dates populate in accordance with the future dates I will need? So, if I am printing out this OG for my staff on a Friday I want the OG to display dates in the y...
  • mathetes's avatar
    Dec 17, 2021

    SCJohnson3 

     

    Yes, definitely it can be done. 

    A couple questions for you--

    1. What version of Excel are you working with. The formula I'm going to give you uses a very new function, LET, that requires the most recent version of Excel.
    2. How comfortable are you in developing your own formula? I will give you, below, a formula I've written that will find the third Friday in any month of any year. If you like figuring things out for yourself, you could use the logic in it to create your own solution. If not, come back and I or somebody else here will help you take it to the next level. Here's that formula.

    =LET(FstDa,DATE(D16,D17,1),FstDa+CHOOSE(WEEKDAY(FstDa),19,18,17,16,15,14,20))

     

    For reference, D16 contains something like 2022  -- i.e., the year

    D17 contains the number of a month --e.g., 1 for January

    Given those two variables, this formula results in the date 1/21/22, the third Friday in Jan 2022

     

     

Resources