Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Don Don is offline
external usenet poster
 
Posts: 487
Default Excel Workbook, Data Selection by Date

I am developing an excel workbook to track retirement funds. Each worksheet
represents a separate fund. The last worksheet contains a summary of the
various funds including latest unit price, number of units, etc. From each
worksheet (fund) I want the workbook to find the most recent entry (from the
date column) & corresponding unit price (from the price column on the same
row) & transfer this information to assigned cells in the summary sheet.
What function/programming is required to make this work?



  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Excel Workbook, Data Selection by Date

One thought which assumes that the most recent date & corresponding price in
the fund sheets will always be the data that's in the last filled row
(chronologically filled down)

For example, in the respective fund sheets (all sheets identically
structured), assume you have this kind of set up, dates in col A, prices in
col B, data in row2 down

In: Fund1
Date Price
1-Dec-08 10
1-Jan-09 20
etc

In: Fund2
Date Price
15-Dec-08 80
3-Jan-09 70
4-Jan-09 71
etc

Then in your Summary sheet, you could set it up like this
"Fund" sheetnames listed in B1 across, viz: Fund1, Fund2, ...
Labels placed in A2:A3: Most recent date, Price

Put in B1:
=LOOKUP(2,1/(INDIRECT("'"&B$1&"'!A2:A100")<""),INDIRECT("'"&B $1&"'!A2:A100"))

Put in B2:
=LOOKUP(2,1/(INDIRECT("'"&B$1&"'!A2:A100")<""),INDIRECT("'"&B $1&"'!B2:B100"))

Copy B1:B2 across as far as required
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
"Don" wrote:
I am developing an excel workbook to track retirement funds. Each worksheet
represents a separate fund. The last worksheet contains a summary of the
various funds including latest unit price, number of units, etc. From each
worksheet (fund) I want the workbook to find the most recent entry (from the
date column) & corresponding unit price (from the price column on the same
row) & transfer this information to assigned cells in the summary sheet.
What function/programming is required to make this work?



  #3   Report Post  
Posted to microsoft.public.excel.misc
Don Don is offline
external usenet poster
 
Posts: 487
Default Excel Workbook, Data Selection by Date

Thanks Max .... but still having trouble.

Perhaps a bit more discription will help. The fund sheets are similar to
your example (Column A is for dates), however, the unit prices are in Column
C. As for the summary sheet, Column A contains the names of all the funds
(worksheets) & Column C is reserved for the unit prices which correspond to
the most recent entries (dates). The dates are not shown on the summary
sheet.

"Max" wrote:

One thought which assumes that the most recent date & corresponding price in
the fund sheets will always be the data that's in the last filled row
(chronologically filled down)

For example, in the respective fund sheets (all sheets identically
structured), assume you have this kind of set up, dates in col A, prices in
col B, data in row2 down

In: Fund1
Date Price
1-Dec-08 10
1-Jan-09 20
etc

In: Fund2
Date Price
15-Dec-08 80
3-Jan-09 70
4-Jan-09 71
etc

Then in your Summary sheet, you could set it up like this
"Fund" sheetnames listed in B1 across, viz: Fund1, Fund2, ...
Labels placed in A2:A3: Most recent date, Price

Put in B1:
=LOOKUP(2,1/(INDIRECT("'"&B$1&"'!A2:A100")<""),INDIRECT("'"&B $1&"'!A2:A100"))

Put in B2:
=LOOKUP(2,1/(INDIRECT("'"&B$1&"'!A2:A100")<""),INDIRECT("'"&B $1&"'!B2:B100"))

Copy B1:B2 across as far as required
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
"Don" wrote:
I am developing an excel workbook to track retirement funds. Each worksheet
represents a separate fund. The last worksheet contains a summary of the
various funds including latest unit price, number of units, etc. From each
worksheet (fund) I want the workbook to find the most recent entry (from the
date column) & corresponding unit price (from the price column on the same
row) & transfer this information to assigned cells in the summary sheet.
What function/programming is required to make this work?



  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Excel Workbook, Data Selection by Date

In your Summary,
with the "fund" sheetnames* listed in A2 down
Try this in B2:
=LOOKUP(2,1/(INDIRECT("'"&$A2&"'!A2:A100")<""),INDIRECT("'"&$ A2&"'!C2:C100"))
Copy down to return the latest** prices from col C in each fund's sheet.
Adapt the ranges to suit the largest expected extent of data.

*Ensure that the sheetnames listed in A2 down match exactly (except for
case) with what's on the tabs. Watch for typos, extra spaces which might
throw matching off
**Latest prices are assumed the data in col C corresponding to the
"bottomest" date in col A
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
"Don" wrote:
Thanks Max .... but still having trouble.
Perhaps a bit more discription will help. The fund sheets are similar to
your example (Column A is for dates), however, the unit prices are in Column
C. As for the summary sheet, Column A contains the names of all the funds
(worksheets) & Column C is reserved for the unit prices which correspond to
the most recent entries (dates). The dates are not shown on the summary
sheet.

  #5   Report Post  
Posted to microsoft.public.excel.misc
Don Don is offline
external usenet poster
 
Posts: 487
Default Excel Workbook, Data Selection by Date

Thanks Max, I will try that.

Don

"Max" wrote:

In your Summary,
with the "fund" sheetnames* listed in A2 down
Try this in B2:
=LOOKUP(2,1/(INDIRECT("'"&$A2&"'!A2:A100")<""),INDIRECT("'"&$ A2&"'!C2:C100"))
Copy down to return the latest** prices from col C in each fund's sheet.
Adapt the ranges to suit the largest expected extent of data.

*Ensure that the sheetnames listed in A2 down match exactly (except for
case) with what's on the tabs. Watch for typos, extra spaces which might
throw matching off
**Latest prices are assumed the data in col C corresponding to the
"bottomest" date in col A
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
"Don" wrote:
Thanks Max .... but still having trouble.
Perhaps a bit more discription will help. The fund sheets are similar to
your example (Column A is for dates), however, the unit prices are in Column
C. As for the summary sheet, Column A contains the names of all the funds
(worksheets) & Column C is reserved for the unit prices which correspond to
the most recent entries (dates). The dates are not shown on the summary
sheet.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Excel Workbook, Data Selection by Date

Hi,

Try something like this

=LOOKUP(9^9,Sheet2!$A$1:$A$99,$B$1:$B$99)

This assumes the dates are in column A and in ascending order with the
values in column B.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Don" wrote:

I am developing an excel workbook to track retirement funds. Each worksheet
represents a separate fund. The last worksheet contains a summary of the
various funds including latest unit price, number of units, etc. From each
worksheet (fund) I want the workbook to find the most recent entry (from the
date column) & corresponding unit price (from the price column on the same
row) & transfer this information to assigned cells in the summary sheet.
What function/programming is required to make this work?



  #7   Report Post  
Posted to microsoft.public.excel.misc
Don Don is offline
external usenet poster
 
Posts: 487
Default Excel Workbook, Data Selection by Date

Thanks Shane, but I am getting a $0.00 value. Perhaps the following
additional description will help. The fund worksheets have the dates in
column A & the corresponding unit prices in column C. The summary sheet has
the names of the funds (worksheets) in column A & the most recent unit price
for each in column C.

"Shane Devenshire" wrote:

Hi,

Try something like this

=LOOKUP(9^9,Sheet2!$A$1:$A$99,$B$1:$B$99)

This assumes the dates are in column A and in ascending order with the
values in column B.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Don" wrote:

I am developing an excel workbook to track retirement funds. Each worksheet
represents a separate fund. The last worksheet contains a summary of the
various funds including latest unit price, number of units, etc. From each
worksheet (fund) I want the workbook to find the most recent entry (from the
date column) & corresponding unit price (from the price column on the same
row) & transfer this information to assigned cells in the summary sheet.
What function/programming is required to make this work?



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default Excel Workbook, Data Selection by Date

Excel 2007
Here is a general example of a PivotTable
consolidating several tabs
and filtering the date results by some criteria.
Since PivotTable has lots of flexibility,
I am sure you can fit it to your layout.
http://www.mediafire.com/file/anwntty43wt/01_25_09.xlsm
  #9   Report Post  
Posted to microsoft.public.excel.misc
Don Don is offline
external usenet poster
 
Posts: 487
Default Excel Workbook, Data Selection by Date

Thank you Herbert, however, I am using excel 2003.

"Herbert Seidenberg" wrote:

Excel 2007
Here is a general example of a PivotTable
consolidating several tabs
and filtering the date results by some criteria.
Since PivotTable has lots of flexibility,
I am sure you can fit it to your layout.
http://www.mediafire.com/file/anwntty43wt/01_25_09.xlsm

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 VBA Range selection based on system date [email protected] Excel Discussion (Misc queries) 0 December 3rd 08 10:33 PM
Code to send email to address within selection in Excel workbook vic1 Excel Discussion (Misc queries) 3 May 28th 08 09:51 PM
RETRIEVE DATA FROM ANOTHER WORKBOOK BY CHECKING ON WORKBOOK DATE Joe Excel Worksheet Functions 13 May 27th 08 01:52 AM
Set a cell to have a pop-up calendar for date selection in Excel? Michigander-77 Excel Worksheet Functions 2 July 14th 05 11:51 PM
How do you create a selection box for data entry within excel Ligia Magnus Excel Discussion (Misc queries) 1 May 25th 05 08:10 PM


All times are GMT +1. The time now is 01:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"