|
|
Question : MS Excel Date formulas/functions, need help setting something up.
|
|
I have a spreadsheet for the factory I work at, which has a part of it that says "Do Not Ship Goods Before:" and then it has a drop down menu with like 10 inputs. My boss told me how he wants it set up and I am confused on how to do it. Here is the story. The date it says at Do Not Ship Goods Before, must be only mondays and it must be updated. So pretty much this is what he wants it to do. Lets say today is June 15th sunday. The spreadsheet knows that todays date is the 15th and so the 10 inputs / values it will have in the drop down menu must be after the 15th. Since only mondays are allowed, the spreadsheet needs to figure out which days are mondays and list their dates. For instance the first value of the drop down menu would be June 16th since thats the next monday, then the value below that would be June 23rd, then June 30th, etc... for about 10 mondays to come. And if todays date was the 17th, then the first value listed should be June 23rd since thats the first upcoming monday. This should be something that updates itself, no matter what date it is, the drop down menu should have the dates of the 10 upcoming mondays. Also there is a second drop down menu listed "goods not receieved by this date are cancelled". These dates should be 2 weeks more than the corresponding dates in the other input box, respectively (first value of this drop down is 2 weeks later than the value of the other drop down box, etc..). Anyone who can figure out what formulas / functions would get this job done would help me greatly, thank you.
I hope this is not too hard to understand.
|
Answer : MS Excel Date formulas/functions, need help setting something up.
|
|
EE truncated my previous response. Here it is once again:
Sci33,
The following formula in cell A1 will return the date of the first Monday after today. Copy it down to return 12 subsequent Mondays: =INT(TODAY()/7)*7+2+(ROW()-ROW(A$1))*7\\
To set up your Do Not Ship Goods Before drop-down, use Data...Validation...Allow List, with the A1:A10 specified as the Source.
To set up your Goods not received by this date are cancelled drop-down, do the same thing, only with A3:A12 specified as the source.
To get the drop-downs to appear like proper dates, Format...Cells...Date and choose the desired format.
|
|
|
|
|