Solved

Populating fields with data based on cell inputs

Posted on 2011-03-24
4
301 Views
Last Modified: 2012-05-11
Column A contains monthly dates beginning with Jan-93 and ending with Dec-94 (additional months will be added over time).  Column B contains values relating to each month of Column A.  In cell C1 I will enter a start date, and in cell C2 I will enter an end date.  What I need is for Column E to be populated with the months from C1 to C2, Column F to be populated with the values corresponding to the dates in Column E, Column G to be populated with the cumulative values of Column F, cell H1 to indicate the total number of months populating Column E, and cell H2 to indicate the last value in Column G.

It would be better if this could be done without the need of a macro, but I doubt it can.  I've uploaded a sample spreadsheet...     Example.xlsx
0
Comment
Question by:pwflexner
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
nutsch earned 500 total points
ID: 35210739
Here are the formulas in the file

=IF(OR(OFFSET($A$1,MATCH($C$1,A:A,0)+ROW()-2,,1,1)>$C$2,LEN(OFFSET($A$1,MATCH($C$1,A:A,0)+ROW()-2,,1,1))=0),"",OFFSET($A$1,MATCH($C$1,A:A,0)+ROW()-2,,1,1))

=IF(LEN(E1)>0,VLOOKUP(E1,$A$1:$B$24,2,0),"")

Thomas
26909956.xls
0
 
LVL 1

Expert Comment

by:jesusaflores
ID: 35210810
only with formulas is difficult to reach the solution, if you want I can make a macro or otherwise operate without use VBA macros but you serve?
0
 

Author Closing Comment

by:pwflexner
ID: 35211121
Brilliant, thanks!!
0
 
LVL 39

Expert Comment

by:nutsch
ID: 35211360
Glad to help. Thanks for the grade.

Thomas
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

708 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

11 Experts available now in Live!

Get 1:1 Help Now