Forum Discussion
Automatically repeating rows based on repeat factor cell (without VBA)
- May 04, 2024
matt0020190 There are a couple of things with this new layout/structure that I would do differently. Your dates are being entered as Text, which is wreaking havoc with the Duration formula, and the repeated use of VLOOKUP to pull data into the Ongoing Projects worksheet can be simplified with one FILTER formula.
In the attached spreadsheet, I've formatted your Lookup Data as a structured Excel table (Insert > Table), added data validation and conditional formatting to ensure data integrity, and used a different formula to calculate the duration (for more info, see: https://exceljet.net/formulas/get-months-between-dates ).
Hey, this is great thanks! The only issue that now comes out of both formula options is handling empty rows. Please see attached example.
Your method works well it seems and orders by month with the SORT function added, however the duration row highlighted seems to cause VALUE# errors further down.
Is there a way to remove these errors please?
Thanks again!
matt0020190 There are a couple of things with this new layout/structure that I would do differently. Your dates are being entered as Text, which is wreaking havoc with the Duration formula, and the repeated use of VLOOKUP to pull data into the Ongoing Projects worksheet can be simplified with one FILTER formula.
In the attached spreadsheet, I've formatted your Lookup Data as a structured Excel table (Insert > Table), added data validation and conditional formatting to ensure data integrity, and used a different formula to calculate the duration (for more info, see: https://exceljet.net/formulas/get-months-between-dates ).
- matt0020190May 13, 2024Brass ContributorSorry for the delay - perfect thanks so much!