Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Return cell reference instead of text from within lookup() functio

Hi,

I'm trying to use the following formula to find data for a particular day of
the month and then sum() a 7 day range of data for that week.

=SUM(OFFSET(LOOKUP('Dashboard (2)'!D16,'Seat Cap Daily'!$B6:$CP6,'Seat Cap
Daily'!$B32:$CP32),0,-6,1,7))

I think the problem is that offset() is expecting a cell reference, but
lookup() is returning cell content. How can I search and locate my expected
content and pass that content's cell reference to lookup().

Thanks,
Earl



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Return cell reference instead of text from within lookup() functio

Last line should read:

How can I search and locate my expected
content and pass that content's cell reference to offset().

"earls" wrote:

Hi,

I'm trying to use the following formula to find data for a particular day of
the month and then sum() a 7 day range of data for that week.

=SUM(OFFSET(LOOKUP('Dashboard (2)'!D16,'Seat Cap Daily'!$B6:$CP6,'Seat Cap
Daily'!$B32:$CP32),0,-6,1,7))

I think the problem is that offset() is expecting a cell reference, but
lookup() is returning cell content. How can I search and locate my expected
content and pass that content's cell reference to lookup().

Thanks,
Earl



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 174
Default Return cell reference instead of text from within lookup() functio

Try

=SUM(OFFSET(INDEX('Seat Cap
Daily'!$B32:$CP32,MATCH('Dashboard (2)'!D16,'Seat Cap
Daily'!$B6:$CP6,0)),0,-6,1,7))

This gives an exact MATCH only, if you're looking for the nearest match in a
sorted range then change the first zero (the third argument of MATCH) to a 1

"earls" wrote:

Hi,

I'm trying to use the following formula to find data for a particular day of
the month and then sum() a 7 day range of data for that week.

=SUM(OFFSET(LOOKUP('Dashboard (2)'!D16,'Seat Cap Daily'!$B6:$CP6,'Seat Cap
Daily'!$B32:$CP32),0,-6,1,7))

I think the problem is that offset() is expecting a cell reference, but
lookup() is returning cell content. How can I search and locate my expected
content and pass that content's cell reference to lookup().

Thanks,
Earl



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Return cell reference instead of text from within lookup() fun

Works as you describe. Thanks a bunch for your help...

"daddylonglegs" wrote:

Try

=SUM(OFFSET(INDEX('Seat Cap
Daily'!$B32:$CP32,MATCH('Dashboard (2)'!D16,'Seat Cap
Daily'!$B6:$CP6,0)),0,-6,1,7))

This gives an exact MATCH only, if you're looking for the nearest match in a
sorted range then change the first zero (the third argument of MATCH) to a 1

"earls" wrote:

Hi,

I'm trying to use the following formula to find data for a particular day of
the month and then sum() a 7 day range of data for that week.

=SUM(OFFSET(LOOKUP('Dashboard (2)'!D16,'Seat Cap Daily'!$B6:$CP6,'Seat Cap
Daily'!$B32:$CP32),0,-6,1,7))

I think the problem is that offset() is expecting a cell reference, but
lookup() is returning cell content. How can I search and locate my expected
content and pass that content's cell reference to lookup().

Thanks,
Earl



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
Find a value in a table and return the cell reference Rasoul Khoshravan Excel Worksheet Functions 10 October 26th 06 11:23 PM
formula to lookup value and return value from cell at left of target Tony Strazzeri Excel Worksheet Functions 14 October 3rd 06 08:30 AM
Making cell reference absolute makes cell format text Excel Worksheet Functions 2 September 22nd 06 04:47 PM
Lookup a value and return its cell reference instead of the value LBenslay Excel Discussion (Misc queries) 1 July 19th 06 06:20 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM


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