Is there a way I can put a value in a cell (say 88) and then have excel automatically add that many lines after the first.
For example
If cell A10 has 1/1/21 and I enter 88 in cell E5
can I get excel to add dates in column A for 88 days?
Is there a way I can put a value in a cell (say 88) and then have excel automatically add that many lines after the first.
For example
If cell A10 has 1/1/21 and I enter 88 in cell E5
can I get excel to add dates in column A for 88 days?
Yes.
In A11:
=IF((A10+1)>E$5,"",A10+1)
Drag down as far as you want.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
Thank you again AliG. You make it sound simple lol
Been at it for years!
As an alternative, see if this VBA solution works for you
How to install your new code![]()
Please Login or Register to view this content.
- Copy the Excel VBA code
- Select the workbook in which you want to store the Excel VBA code
- Press Alt+F11 to open the Visual Basic Editor
- Choose Insert > Module
- Edit > Paste the macro into the module that appeared
- Close the VBEditor
- Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)
To run the Excel VBA code:
- Press Alt-F8 to open the macro list
- Select a macro in the list
- Click the Run button
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
Thanks Alan but I get myself in a huge mess when I start trying to use VBA
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks