Excel - repeat entries until a fixed number is reached.

Hi all,

I have a fixed number in cell B1.

How do i repeat values (starting at A5) until the fixed value in cell B1 is reached?

Thanks in advance.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Missus Miss_SellaneusCommented:
Type the first date into A5.

Put this formula into A6.

 Copy the formula down as far as you may need to go (the maximum number):
Missus Miss_SellaneusCommented:
Format the cells as Date.
Go-BruinsAuthor Commented:
Thank you, but there is one thing i forgot the mention:

The value in B1 ("Number of times to repeat") could be zero. In this case, there would be nothing in cell A5.

Sorry for the confusion.
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

Missus Miss_SellaneusCommented:
What determines the first date? Is it always 1/1/16? The first date of the current year?
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Try this....

In A5

Open in new window

Change the date as per your requirement.

In A6

Open in new window

and copy down.
And of course format the column A as Date.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Go-BruinsAuthor Commented:

Assuming B1 is not Zero, the first date in A5 would be today's date + 30 days.
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
In that case, change the formula in A5 with the following one.....


Open in new window

Go-BruinsAuthor Commented:
Worked great! Thank you.
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome. Glad to help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.