Traditional Culture Encyclopedia - Almanac inquiry - The formula problem of making perpetual calendar with excel
The formula problem of making perpetual calendar with excel
“m _ day-(WEEKDAY(m _ day)- 1)+(ROW()-5)* 7“——
M Day ... User-defined range name, which can directly refer to the cell range, and can be in number or date format.
(workday (m days)-1) ... is a borrowed day function, which returns a day of the week (Sunday = 1, Monday =2, ...), but the formula can be simplified as: WEEKDAY(m _ day, 2).
(Row()-5)* 7 ... This step is the key. By using the line number *7 and matching with the column () in the formula, each cell is increased by 1 (day) to the right, and filled down on the 7th day (the 6th day after the increase), so that the difference between the up and down rows is "7", that is, the interval between the up and down rows is one week.
Look at his drawings, the formula should be entered in the fifth line, so the date of the first line =(5-5)* 7 = 0, and the date does not increase or decrease. As the formula fills down, each row increases by 7 days.
For this formula, you should subtract 1~7 from the m_day cell that references the original data, and then add 0 ~ 7 ~ 14 ~ 2 1 ... to make the data display successive dates one by one at a given value (or date).
- Previous article:When was the ephemeris first produced?
- Next article:Cancer's fortune today
- Related articles
- 1 How is the bloody full moon at the end formed? Is this a fierce month?
- 202 1 November of the lunar calendar is the most suitable day to move this month.
- How to set the desktop time and weather of Huawei mate40pro?
- Boys born on the third day of the first month of the Year of the Pig in 2020 scored high in moral names.
- Should I move on May 7, 2022? Is May 7th, 2022 an auspicious day for Geely to move to a new home?
- I dream of getting a tattoo.
- Health knowledge of 24 solar terms and long summer
- Female 1968 Gregorian calendar 1.5 18: 00 What was her life like?
- Lao Huang Li cha Jia
- 202 1 what are the taboos on the eighth day of the fourth lunar month? Is today a good day to get married and get a license?