Hoping for a code that auto-populates a date based on other fields

%3CLINGO-SUB%20id%3D%22lingo-sub-2218909%22%20slang%3D%22en-US%22%3EHoping%20for%20a%20code%20that%20auto-populates%20a%20date%20based%20on%20other%20fields%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2218909%22%20slang%3D%22en-US%22%3E%3CP%3EHi!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20cell%20that%20I%20enter%20the%20week%20ending%20date%20into%2C%20as%20dd.%20Then%20further%20into%20the%20document%20are%20seven%20fields%2C%20one%20for%20each%20day%20(date)%20of%20the%20aforementioned%20week%2C%20also%20entered%20as%20dd.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20have%20the%20seven%20individual%20date%20fields%20auto-populate%2C%20working%20from%20the%20date%20entered%20in%20the%20%22week%20ending%20date%22%20field%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%3A%3C%2FP%3E%3CP%3E%22Sunday's%20date%22%20will%20auto-populate%20by%20subtracting%206%20from%20the%20date%20entered%20in%20the%20%22Week%20Ending%20Date%22%20field.%3C%2FP%3E%3CP%3E%22Monday's%20date%22%20will%20auto-populate%20by%20subtracting%205%20from%20the%20date%20entered%20in%20the%20%22Week%20Ending%20Date%22%20field.%3C%2FP%3E%3CP%3E%22Tuesday's%20date%22%20will%20auto-populate%20by%20subtracting%204%20from%20the%20date%20entered%20in%20the%20%22Week%20Ending%20Date%22%20field.%3C%2FP%3E%3CP%3Eand%20so%20on...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAt%20the%20same%20time%20though%2C%20it%20needs%20to%20work%20in%20as%20many%20earlier%20versions%20of%20Excel%20as%20possible%20(I've%20found%20that%20some%20of%20the%20more%20involved%20formulas%20don't%20work%20in%20earlier%20versions%20of%20Excel).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20that%20makes%20sense.%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20so%20much!!%3C%2FP%3E%3CP%3EDiane%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2218909%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2219069%22%20slang%3D%22en-US%22%3ERe%3A%20Hoping%20for%20a%20code%20that%20auto-populates%20a%20date%20based%20on%20other%20fields%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2219069%22%20slang%3D%22en-US%22%3Ecan%20you%20show%20a%20sample%20data%20of%20what%20you%20want%20as%20i%20didnt%20understand%20fully%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi!

 

I have a cell that I enter the week ending date into, as dd. Then further into the document are seven fields, one for each day (date) of the aforementioned week, also entered as dd. 

 

Is it possible to have the seven individual date fields auto-populate, working from the date entered in the "week ending date" field?

 

For example:

"Sunday's date" will auto-populate by subtracting 6 from the date entered in the "Week Ending Date" field.

"Monday's date" will auto-populate by subtracting 5 from the date entered in the "Week Ending Date" field.

"Tuesday's date" will auto-populate by subtracting 4 from the date entered in the "Week Ending Date" field.

and so on...

 

At the same time though, it needs to work in as many earlier versions of Excel as possible (I've found that some of the more involved formulas don't work in earlier versions of Excel).

 

I hope that makes sense.

 

Thank you so much!!

Diane

2 Replies
can you show a sample data of what you want as i didnt understand fully

@DianeDennis Irrespective of how the "last day of the week" is formatted, you can just point at it in a formula and deduct 1, 2, 3 etc. to return the earlier dates.

Dates in Excel are in fact sequential numbers that start counting from January 1, 1900. 

 

Let's say the "last day of the week" is in A1. In its simplest form, just enter =A1-1 to return the previous day's date, and format it to your liking. Repeat this for the other days, wherever you have them in your sheet.