Solved

Populate cells with formulas

Posted on 2014-07-18
5
134 Views
Last Modified: 2014-07-18
Expert,
In automating this workbook for the client, I've been ask to populate formulas from the attached worksheet to other cells in the same workbook labeled "Consolidated". The range to be populated in the "Consolidated" worksheet would be C6:U17. For example, in cell C6 the formula needs to be ''Jan 14'!B37, cell D6= 'Jan 14'!C37, cell E6 = 'Jan 14'!D37. This is the pattern for each month.
Currently, they have 15 Projects for 2014. Next year, they may want to add another year in the same work book and update the formulas in the Consolidated worksheet. Adding the next year worksheet with the correct tabs labeled has been solved. If I can get a macro that updates the months in the Consolidated for the first year as attached I know I can use that for upcoming year(s).
If I'm unclear, please advise. Thanks to all.
Consolidaed-with-Formulas.xlsm
0
Comment
Question by:Frank Freese
  • 3
  • 2
5 Comments
 
LVL 13

Expert Comment

by:duncanb7
Comment Utility
Could you do it in manually ? If so, using Excel "Record macro" function to record all
your action that you did previously and manually. The macro recording  function
will save all your action into one macro, and then you can copy the VBA code from
the macro for your reference to start your VBA macro program or writing.

It is video  for Excel recording macro tutorial at
http://www.youtube.com/watch?v=nvWpFdo7EO0

Duncan
0
 

Author Comment

by:Frank Freese
Comment Utility
I have thought of that but that would mean 228 times. However, maybe just doing three or four I could then adjust the code for the complete macro...
0
 
LVL 13

Accepted Solution

by:
duncanb7 earned 500 total points
Comment Utility
Just start small example first for 1 or 2 times Excell cell operation, and then get the recoded VBA code that will help to start your code writing easily  and that also help other experts to assist your to finish your 228 time target or complete issue if you can provide some preparation work vba code, that also help on communication easily and fast during question reply and answer on this thread.

If the 1 or 2 times operation is similar to 224, you just change those variables setting
on the recorded VBA macro, for example,I think next time you will ask how to
program the workbook name as variable on VBA, that will help to narrow down the
issue and  reduce your project time.



Duncan
0
 

Author Comment

by:Frank Freese
Comment Utility
That's exactly what I'm working on now.
0
 

Author Closing Comment

by:Frank Freese
Comment Utility
thank you
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now