Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Integrate OFFSET, INDIRECT and VLOOKUP?

I have a workbook setup with tabs for each month named "Jan 07", "Feb 07" etc.
In each tab, vertically the days of that month form the top-left of a range
going some 20 columns right and about 8 rows down. Then an empty row and the
next day is up. Picture it?

Ok, now what I can't get done is to get the data of a specified date to
another worksheet (in the same workbook). Simply to represent what's been
entered on a date and to do some more calculations.

What I got so far is: =OFFSET(INDIRECT("'"&-SheetName-&"'!-reference-");;2)
-SheetName- is a cell with the name of the tab to look at.
-reference- is the issue.
I need Excel to lookup the cell where the requested daterange starts in
order to get OFFSET get the data. I can't find a way to do that with a
VLOOKUP...

Please help! It's highly appreciated!
Marc
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,091
Default Integrate OFFSET, INDIRECT and VLOOKUP?

Workbooks have worksheets. Worksheets have tabs. A tab is not a worksheet.

Tyro

"MarcD" wrote in message
...
I have a workbook setup with tabs for each month named "Jan 07", "Feb 07"
etc.
In each tab, vertically the days of that month form the top-left of a
range
going some 20 columns right and about 8 rows down. Then an empty row and
the
next day is up. Picture it?

Ok, now what I can't get done is to get the data of a specified date to
another worksheet (in the same workbook). Simply to represent what's been
entered on a date and to do some more calculations.

What I got so far is:
=OFFSET(INDIRECT("'"&-SheetName-&"'!-reference-");;2)
-SheetName- is a cell with the name of the tab to look at.
-reference- is the issue.
I need Excel to lookup the cell where the requested daterange starts in
order to get OFFSET get the data. I can't find a way to do that with a
VLOOKUP...

Please help! It's highly appreciated!
Marc



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Integrate OFFSET, INDIRECT and VLOOKUP?

Perhaps this sample will illustrate one way to achieve it:
http://www.flypicture.com/download/NDE0NTI=
Extract date range from month-yr tabs.xls

Source data is assumed in identically structured sheets named as: Jan 07,
Feb 07, etc, where the "top left" dates for each "daterange" are assumed
running in A1 down. Each "daterange" covers an 8R x 20C area

In a "summary" sheet,
With a DV created in B1 to select the desired date,

Place in B3:
=IF($B$1="","",OFFSET(INDIRECT("'"&TEXT($B$1,"mmm
yy")&"'!A"&MATCH($B$1,INDIRECT("'"&TEXT($B$1,"mm m
yy")&"'!A:A"),0)),ROWS($1:1)-1,COLUMNS($A:A)-1))
Copy B3 across to U3, fill down to U9 to populate the range. B3:U9 will
return the required range from the correct sheet dependent on the DV
selection in B1. You could then stream on further calcs from the extracted
range.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"MarcD" wrote:
I have a workbook setup with tabs for each month named "Jan 07", "Feb 07" etc.
In each tab, vertically the days of that month form the top-left of a range
going some 20 columns right and about 8 rows down. Then an empty row and the
next day is up. Picture it?

Ok, now what I can't get done is to get the data of a specified date to
another worksheet (in the same workbook). Simply to represent what's been
entered on a date and to do some more calculations.

What I got so far is: =OFFSET(INDIRECT("'"&-SheetName-&"'!-reference-");;2)
-SheetName- is a cell with the name of the tab to look at.
-reference- is the issue.
I need Excel to lookup the cell where the requested daterange starts in
order to get OFFSET get the data. I can't find a way to do that with a
VLOOKUP...

Please help! It's highly appreciated!
Marc

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Integrate OFFSET, INDIRECT and VLOOKUP?

Thought the OP's description was okay, viz his lines:
I have a workbook setup with tabs for each month

named "Jan 07", "Feb 07" etc. In each tab, ...


where "tab/s" is understood to mean worksheet/s (or sheet/s)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Tyro" wrote in message
...
Workbooks have worksheets. Worksheets have tabs. A tab is not a worksheet.

Tyro



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Integrate OFFSET, INDIRECT and VLOOKUP?

Perhaps this sample will illustrate one way to achieve it:
http://www.flypicture.com/download/NDE0NTI=
Extract date range from month-yr tabs.xls


If you're reading the above in MS' webpage, don't click directly on the
link. It'll bring you to the wrong page. Just copy the entire link, inclusive
of the trailing "=", and paste into the browser's address bar, press ENTER.

(Note that you might need to change the "comma" separators to "semicolons"
to suit your regional settings)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Integrate OFFSET, INDIRECT and VLOOKUP?

Errata, I missed filling down the formulas by 1 row earlier:
.. Copy B3 across to U3, fill down to U9 to populate the range.
B3:U9 will return the required range from the correct sheet
dependent on the DV selection in B1.


U9 above should have read as U10
(so that all the 8 rows are extracted)

Here's the revised sample:
http://www.flypicture.com/download/NDE0NzY=
Extract date range from month-yr tabs.xls
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Integrate OFFSET, INDIRECT and VLOOKUP?

Max,

Thanks a lot for your time and effort.

I found another file via your signatu Extracting_from_multiple_shts.xls
Basically explained me the same trick, and it works now!

I could not get the file downloaded, as the address changed in
http://www.flypicture.com/download/N...-yr%20tabs.xls ...

Got the solution anyway, so thanks again and all the best!

Marc
The Netherlands

"Max" wrote:

Errata, I missed filling down the formulas by 1 row earlier:
.. Copy B3 across to U3, fill down to U9 to populate the range.
B3:U9 will return the required range from the correct sheet
dependent on the DV selection in B1.


U9 above should have read as U10
(so that all the 8 rows are extracted)

Here's the revised sample:
http://www.flypicture.com/download/NDE0NzY=
Extract date range from month-yr tabs.xls
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Integrate OFFSET, INDIRECT and VLOOKUP?

welcome, glad it works for you
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"MarcD" wrote in message
...
Max,

Thanks a lot for your time and effort.

I found another file via your signatu Extracting_from_multiple_shts.xls
Basically explained me the same trick, and it works now!

I could not get the file downloaded, as the address changed in
http://www.flypicture.com/download/N...-yr%20tabs.xls
...

Got the solution anyway, so thanks again and all the best!

Marc
The Netherlands



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
Integrate a Vlookup function in to a macro Arain Excel Discussion (Misc queries) 3 April 13th 07 12:52 PM
Offset,Indirect Please help [email protected] Excel Discussion (Misc queries) 1 August 21st 06 10:54 PM
INDIRECT, OFFSET et. al. Wazooli Excel Worksheet Functions 2 March 24th 05 12:23 AM
offset and indirect function RICHARD ANNOR Excel Worksheet Functions 1 March 11th 05 03:09 AM
Offset and Indirect functions Thrava Excel Discussion (Misc queries) 4 December 23rd 04 05:07 PM


All times are GMT +1. The time now is 05:40 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"