Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# Populating fields with data based on cell inputs

Posted on 2011-03-24
Medium Priority
314 Views
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
Question by:pwflexner
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 2

LVL 39

Accepted Solution

nutsch earned 2000 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

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

ID: 35211121
Brilliant, thanks!!
0

LVL 39

Expert Comment

ID: 35211360

Thomas
0

## Featured Post

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
###### Suggested Courses
Course of the Month8 days, 4 hours left to enroll