What formula or function can transfer a date from one cell to another?
Hi everybody
I'm looking for a formula to automatically transfer a value (i.e. date) from lower-level cells to a higher-level cell (please see exemplification below).
What formula (or function) can be used for the cells D2 and F2, or D3/F3 and C7/F7 respectively?
Many thanks in advance for any help.
Best Answer
-
Question, does Row 1 and Row 2 have the formula in them? Because Row 3 appears to be a child of Row 2, which in turn is a child of Row 1. So Row 2 would look at Row 3 to get its dates, then Row 1 would look at row 2. You can see from your format column that Row 3 is a child row. There can never be a 3rd level, without a 2nd level.
Michelle Choate
michelle.choate@outlook.com
Always happy to walk through any project you need help with!
Answers
-
For the earliest date, you want to put =MIN(CHILDREN()) in the Start date column of the parent rows, and for the latest date you want =MAX(CHILDREN()) in the End Date column of the parent rows.
Putting =MIN(CHILDREN()) in D3 will look at D4:D6 child rows and return 10/01/24. In D7 it will look at D8:D10 and return 09/01/24. Putting it in D2 will only look at D3 and D7 and return 09/01/24. Likewise with F column, but using =MAX(CHILDREN()).
-
Dear SharpC
Thanks a lot for your rapid answer. The formulas you mentioned are really helpful.
However, in some cases there is no second level (just first and third level). Unfortunately, in these cases the formulas don't work (see red frame).Is there anything I can do about it?
-
Question, does Row 1 and Row 2 have the formula in them? Because Row 3 appears to be a child of Row 2, which in turn is a child of Row 1. So Row 2 would look at Row 3 to get its dates, then Row 1 would look at row 2. You can see from your format column that Row 3 is a child row. There can never be a 3rd level, without a 2nd level.
Michelle Choate
michelle.choate@outlook.com
Always happy to walk through any project you need help with!
-
Thank you very much, Michelle. I could solve the problem!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!