SOLVED
Home

How to automatically fill rows with dates based on cell value?

%3CLINGO-SUB%20id%3D%22lingo-sub-289251%22%20slang%3D%22en-US%22%3EHow%20to%20automatically%20fill%20rows%20with%20dates%20based%20on%20cell%20value%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289251%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Everyone.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20spreadsheet%20that%20looks%20like%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20387px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F60323iE6C56185737C2D36%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22ExcelSpreadsheet.PNG%22%20title%3D%22ExcelSpreadsheet.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20I%20make%20it%20for%20whatever%20number%20I%20put%20in%20%3CSTRONG%3EB2%26nbsp%3B%3C%2FSTRONG%3Eit%20takes%20the%20date%20in%26nbsp%3B%3CSTRONG%3EA4%26nbsp%3B%3C%2FSTRONG%3Eand%20extends%20it%20by%20the%20number%20of%20months%20from%20B2%20and%20adds%20them%20as%20new%20rows%3F%3CBR%20%2F%3E%3CBR%20%2F%3ESo%2C%20for%20example%2C%20if%20I%20put%20number%20of%20months%20to%203%2C%20it%20should%20automatically%20look%20like%20this%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20513px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F60327i9B47F88DE7A34295%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22ExcelSpreadsheet2.PNG%22%20title%3D%22ExcelSpreadsheet2.PNG%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EHow%20is%20this%20possible%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks.%3CBR%20%2F%3E%3CBR%20%2F%3EIan%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-289251%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-290745%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20fill%20rows%20with%20dates%20based%20on%20cell%20value%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-290745%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20so%20much%20for%20all%20the%20help!%26nbsp%3B%20I%20got%20it%20working.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-290427%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20fill%20rows%20with%20dates%20based%20on%20cell%20value%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-290427%22%20slang%3D%22en-US%22%3E%3CP%3ESorry%20for%20the%20late%20reply!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20can%20be%20done%20using%20the%20same%20solution%20in%20my%20last%20reply!%3C%2FP%3E%3CP%3EPlease%20check%20out%20the%20attached%20workbook%20in%20that%20reply%20again.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20917px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F60553i666E714660B25C7A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Automatically%20fill%20rows%20with%20dates%20based%20on%20cell%20value%20%232.png%22%20title%3D%22Automatically%20fill%20rows%20with%20dates%20based%20on%20cell%20value%20%232.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-290168%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20fill%20rows%20with%20dates%20based%20on%20cell%20value%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-290168%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F35679%22%20target%3D%22_blank%22%3E%40Haytham%20Amairah%3C%2FA%3E%2C%20sorry%2C%20I%20have%20another%20question%20please.%3CBR%20%2F%3E%3CBR%20%2F%3EFor%20the%20formula%20below%2C%20how%20can%20we%20edit%20it%20so%20that%20if%20the%20date%20we%20put%20in%20cell%26nbsp%3B%3CSTRONG%3EB2%3C%2FSTRONG%3Eis%20the%2029th%2C%2030th%20or%2031st%20(i.e.%2031st%20December%2C%202018)%20the%20next%20date%20should%20be%20last%20day%20of%20the%20month%2C%20for%20the%20next%20date%20in%20the%20list%20if%20it%20doesn't%20exist%20(there%20is%20no%2031st%20in%20the%20following%20month).%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3E%3DIF(ROW(A1)%26gt%3B%3D%24B%241%2C%22%22%2CEDATE(%24A%244%2CROW(A1)))%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3Ei.e.%20in%20cell%20%3CSTRONG%3EB2%3C%2FSTRONG%3EI%20put%2031st%20December%202018%20it%20should%20display%20this%20in%20cells%20A4%2C%20A5%2C%20A6%20etc.%3A%3CBR%20%2F%3E%3CBR%20%2F%3ECell%20A4%20-%2031st%20December%202018%3CBR%20%2F%3ECell%20A5%20-%2031st%20January%202019%3C%2FP%3E%3CP%3ECell%20A6%20-%2028th%20February%202019%20(%3CSTRONG%3Enot%2031st%20February)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBasically%2C%20it%20should%20take%20in%20to%20account%20that%20not%20all%20months%20may%20have%2029%2C%2030%20or%2031%20in%20them%2C%20i.e.%20leap%20years.%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20that%20possible%3F%3CBR%20%2F%3E%3CBR%20%2F%3EMany%20thanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289959%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20fill%20rows%20with%20dates%20based%20on%20cell%20value%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289959%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20regards%20to%20the%20blank%20cells%2C%20I%20think%20that's%20because%20you%20change%20the%20values%20locations!%3C%2FP%3E%3CP%3ESo%20please%20change%20the%20formula%20as%20well%20as%20follows%3A%3C%2FP%3E%3CPRE%3E%3DIF(C13%26lt%3B%26gt%3B%22%22%2CROWS(%24A%241%3AA1)%2C%22%22)%3C%2FPRE%3E%3CP%3EPut%20this%20formula%20in%20cell%20B13%20and%20then%20drag%20it%20down.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20with%20regards%20to%20the%20rest%2C%20for%20better%20accessibility%2C%20I%20would%20suggest%20you%20create%20another%20post%20for%20it%20because%20it's%20a%20new%20question%2C%20and%20it's%20not%20related%20to%20the%20main%20thing%20you%20asked%20here.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EHaytham%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289615%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20fill%20rows%20with%20dates%20based%20on%20cell%20value%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289615%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Haytham.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20for%20all%20your%20help%20so%20far.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20what%20I%20now%20have.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20know%20why%20cells%20B14%20and%20B15%20are%20blank%2C%20from%20your%20formula%20in%20the%20last%20reply%3F%3CBR%20%2F%3E%3CBR%20%2F%3EAlso%2C%20in%20cell%20%3CSTRONG%3EC20%3C%2FSTRONG%3EI%20am%20trying%20to%20calculate%20the%20final%20balance.%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20needs%20to%20be%20something%20like%20this%3A%3CBR%20%2F%3E%3CBR%20%2F%3EIF%26nbsp%3B%3CSTRONG%3EB18%20%3D%20B4%26nbsp%3B%3C%2FSTRONG%3E(because%20that%20would%20be%20the%20last%20monthly%20payment%20based%20on%20the%20number%20entered)%2C%20%3CSTRONG%3E%3CIF%20true%3D%22%22%3E%3C%2FIF%3E%3C%2FSTRONG%3EF18%20%2B%20D18%20(outstanding%20principal%20%2B%20interest)%2C%20%3CSTRONG%3E%3CIF%20false%3D%22%22%3E%3C%2FIF%3E%3C%2FSTRONG%3EB9%20(monthly%20payment%20amount).%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20that%20correct%20syntax%3F%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20seems%20to%20work%20if%20cell%20B4%20is%206%2C%20but%20if%20I%20change%20that%20to%20any%20other%20number%2C%20then%20it%20all%20breaks%20-%20how%20can%20it%20be%20made%20to%20dynamically%20perform%20all%20calculations%20in%20the%20sheet%20based%20on%20the%20number%20in%20cell%20B4%3F%3CBR%20%2F%3E%3CBR%20%2F%3EAlso%2C%20in%20cell%26nbsp%3B%3CSTRONG%3EH18%3C%2FSTRONG%3E%2C%20because%20I%20use%206%20months%2C%20how%20can%20I%20get%20the%20correct%20number%20of%20days%20in%20the%20month%20if%20I%20don't%20have%20the%20next%20month%20to%20compare%20it%20to%2C%20like%20my%20formula%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20so%20much!%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F60400iDDE2FFE577A7502B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289607%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20fill%20rows%20with%20dates%20based%20on%20cell%20value%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289607%22%20slang%3D%22en-US%22%3E%3CP%3EYes%2C%20this%20is%20possible!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPut%20this%20formula%20in%20cell%20B5%20and%20then%20fill%20it%20down%3A%3C%2FP%3E%3CPRE%3E%3DIF(A5%26lt%3B%26gt%3B%22%22%2CROWS(%24A%241%3AA1)%2C%22%22)%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt's%20also%20in%20the%20attached%20file.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289581%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20fill%20rows%20with%20dates%20based%20on%20cell%20value%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289581%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20it%20also%20possible%20to%20use%20your%20formula%20and%20modify%20it%20so%20that%20depending%20on%20the%20number%20I%20put%20in%26nbsp%3B%3CSTRONG%3EB1%3C%2FSTRONG%3Eit%20then%2C%20in%20cell%20%3CSTRONG%3EB%3C%2FSTRONG%3E%3CSTRONG%3E4%2C%26nbsp%3B%3C%2FSTRONG%3Ecounts%20up%20to%20that%20number%3F%26nbsp%3B%20I%20want%20to%20use%20it%20as%20repayment%20numbers.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20it%20would%20look%20like%20this%20if%20I%20put%206%20in%26nbsp%3B%3CSTRONG%3EB5%3C%2FSTRONG%3E%26nbsp%3B%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F60398iEF0E7529617B6485%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20all%20the%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289315%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20fill%20rows%20with%20dates%20based%20on%20cell%20value%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289315%22%20slang%3D%22en-US%22%3E%3CP%3EHi.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20mistake%2C%20I%20meant%26nbsp%3B%3CSTRONG%3EB2%3C%2FSTRONG%3E%2C%20not%20B1.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20the%20attached%20file%20too.%26nbsp%3B%20I%20will%20check%20it%20out.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289312%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20fill%20rows%20with%20dates%20based%20on%20cell%20value%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289312%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20the%20screenshot%20you%20attached%2C%20the%20number%20of%20months%20is%20in%20the%20cell%20%3CSTRONG%3EB1%3C%2FSTRONG%3Enot%20in%20cell%20%3CSTRONG%3EB2%3C%2FSTRONG%3E!%3C%2FP%3E%3CP%3EWhat%20is%20in%20cell%20%3CSTRONG%3EB2%3C%2FSTRONG%3Eis%20the%20start%20date!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20the%20dates%20should%20automatically%20be%20filled%20in%20cells%20when%20you%20change%20the%20number%20in%20cell%20%3CSTRONG%3EB1.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EPlease%20see%20the%20attached%20file%20in%20my%20previous%20reply%20to%20test%20that!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289305%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20fill%20rows%20with%20dates%20based%20on%20cell%20value%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289305%22%20slang%3D%22en-US%22%3EThanks%20for%20replying.%20Is%20there%20any%20way%20for%20the%20new%20date%20cells%20to%20be%20added%20automatically%20when%20I%20put%20a%20number%20in%20to%20cell%20B2%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289274%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20automatically%20fill%20rows%20with%20dates%20based%20on%20cell%20value%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289274%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20the%20most%20robust%20way%20to%20do%20this%20is%20as%20follows%3A%3C%2FP%3E%3CUL%3E%3CLI%3ELink%20cell%20A4%20to%20the%20cell%20B2%20by%20just%20using%20this%20formula%20in%20cell%20A4%20%3CSTRONG%3E%3DB2%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3EThen%20use%20this%20formula%20in%20the%20cell%20A5%20%3CSTRONG%3E%3DIF(ROW(A1)%26gt%3B%3D%24B%241%2C%22%22%2CEDATE(%24A%244%2CROW(A1)))%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3EAnd%20then%20drag%20it%20down%20to%20whatever%20limit%20you%20want%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F60337i428203F29D51DC06%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Automatically%20fill%20rows%20with%20dates%20based%20on%20cell%20value.png%22%20title%3D%22Automatically%20fill%20rows%20with%20dates%20based%20on%20cell%20value.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20find%20this%20in%20the%20attached%20file.%3C%2FP%3E%3CP%3EHope%20that%20helps%3C%2FP%3E%3C%2FLINGO-BODY%3E
ianwuk
Contributor

Hi Everyone.

 

I have a spreadsheet that looks like this:

 

ExcelSpreadsheet.PNG

 

How can I make it for whatever number I put in B2 it takes the date in A4 and extends it by the number of months from B2 and adds them as new rows?

So, for example, if I put number of months to 3, it should automatically look like this:

ExcelSpreadsheet2.PNG

How is this possible?

Thanks.

Ian

 

11 Replies
Solution

Hi,

 

I think the most robust way to do this is as follows:

  • Link cell A4 to the cell B2 by just using this formula in cell A4 =B2
  • Then use this formula in the cell A5 =IF(ROW(A1)>=$B$1,"",EDATE($A$4,ROW(A1)))
  • And then drag it down to whatever limit you want

 

Automatically fill rows with dates based on cell value.png

 

Please find this in the attached file.

Hope that helps

Thanks for replying. Is there any way for the new date cells to be added automatically when I put a number in to cell B2?

Thanks.

Hi,

 

As the screenshot you attached, the number of months is in the cell B1 not in cell B2!

What is in cell B2 is the start date!

 

So the dates should automatically be filled in cells when you change the number in cell B1.

Please see the attached file in my previous reply to test that!

 

Regards

Hi.

 

My mistake, I meant B2, not B1.

 

Thank you for the attached file too.  I will check it out.

Is it also possible to use your formula and modify it so that depending on the number I put in B1 it then, in cell B4, counts up to that number?  I want to use it as repayment numbers.

 

So, it would look like this if I put 6 in B5 :

 

Capture.PNG

 

Thanks for all the help.

Yes, this is possible!

 

Put this formula in cell B5 and then fill it down:

=IF(A5<>"",ROWS($A$1:A1),"")

 

It's also in the attached file.

Hi Haytham.

Thanks for all your help so far.

 

Here is what I now have.

 

Do you know why cells B14 and B15 are blank, from your formula in the last reply?

Also, in cell C20 I am trying to calculate the final balance.

It needs to be something like this:

IF B18 = B4 (because that would be the last monthly payment based on the number entered), <IF TRUE> F18 + D18 (outstanding principal + interest), <IF FALSE> B9 (monthly payment amount).

Is that correct syntax?

It seems to work if cell B4 is 6, but if I change that to any other number, then it all breaks - how can it be made to dynamically perform all calculations in the sheet based on the number in cell B4?

Also, in cell H18, because I use 6 months, how can I get the correct number of days in the month if I don't have the next month to compare it to, like my formula?

Thanks so much!

Capture.PNG

Hi,

 

With regards to the blank cells, I think that's because you change the values locations!

So please change the formula as well as follows:

=IF(C13<>"",ROWS($A$1:A1),"")

Put this formula in cell B13 and then drag it down.

 

But with regards to the rest, for better accessibility, I would suggest you create another post for it because it's a new question, and it's not related to the main thing you asked here.

 

Regards,

Haytham

Hi @Haytham Amairah, sorry, I have another question please.

For the formula below, how can we edit it so that if the date we put in cell B2 is the 29th, 30th or 31st (i.e. 31st December, 2018) the next date should be last day of the month, for the next date in the list if it doesn't exist (there is no 31st in the following month).

=IF(ROW(A1)>=$B$1,"",EDATE($A$4,ROW(A1)))

i.e. in cell B2 I put 31st December 2018 it should display this in cells A4, A5, A6 etc.:

Cell A4 - 31st December 2018
Cell A5 - 31st January 2019

Cell A6 - 28th February 2019 (not 31st February)

 

Basically, it should take in to account that not all months may have 29, 30 or 31 in them, i.e. leap years.

Is that possible?

Many thanks.

Sorry for the late reply!

 

This is can be done using the same solution in my last reply!

Please check out the attached workbook in that reply again.

 

Automatically fill rows with dates based on cell value #2.png

Thank you so much for all the help!  I got it working.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
38 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies