Solved

Populate cells with formulas

Posted on 2014-07-18
5
136 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
ID: 40205804
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
ID: 40205812
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
ID: 40205831
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
ID: 40205834
That's exactly what I'm working on now.
0
 

Author Closing Comment

by:Frank Freese
ID: 40205842
thank you
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

776 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