Forum Discussion

Chanda1625's avatar
Chanda1625
Copper Contributor
Aug 17, 2023

Excel drop down lists

Hello-

How do I create a formula for sequential dates in a drop down list?

For example:  I would like to be able to click the drop-down to pick Thursday, August 17, Friday, August 18, Saturday, August 19, etc.

 

I thought it would look something like this but, I can't seem to make it work:

=TODAY()+1, =TODAY()+2, =TODAY()+3, and so on.

 

Also, is there a way to enter a job number from our service software in the spreadsheet and have it pull the specific service address into a certain cell in the same spreadsheet?

 

I am trying to use the spreadsheet as a template in an email for our technicians to fill out cohesively.  My goal is to have the spreadsheet set up with specific drop downs to choose from and then have it automatically be sent to a select group of recipients. 

 

Any help would be appreciated!

  • Patrick2788's avatar
    Patrick2788
    Silver Contributor

    Chanda1625 

    The data validation won't accept a dynamic array but you can refer to a spill in the sheet containing the dates.

     

    This formula produces an array of 30 dates starting from today:

     

     

    =SEQUENCE(30,,TODAY())

     

     

    Place it somewhere in the sheet. Then in data validation, refer to the spill:

     

    • Chanda1625's avatar
      Chanda1625
      Copper Contributor
      I actually need the sequence as a drop down that the user can choose one of the dates from to automatically fill in the cell. I would like it to drop down a list of 30 dates from today forward that can be chosen. If that isn't possible, is there a way to have a calendar pop-up to choose a date from?

    • Chanda1625's avatar
      Chanda1625
      Copper Contributor
      Thank you very much for your help! I am still a bit confused what goes in the parenthesis after SEQUENCE. Let's say I want today's date to auto-fill in cell A1. Then in C1 I want the drop down that lists 30 days sequentially from today's date. How does that formula look EXACTLY for putting in the data validation.

      I am getting stuck on what the last entry is supposed to be. I think it should look like : =SEQUENCE(30, right here should be column, then this should be the word TODAY for start, then here it is asking for step)

      What does it want for column? Location, quantity, or what? Also, what is step that it is asking for? Commas between everything? My brain feels like it is going to explode. lol
      • Patrick2788's avatar
        Patrick2788
        Silver Contributor

        Chanda1625 

        You can use function arguments to aid in construction of the formula.

         

        If you enter =SEQUENCE(   then press Shift+F3 (or click the Fx button) then you'll get this menu:

         

         

Resources