Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
XavierXXX
 
Posts: n/a
Default VLOOKUP/OFFSET Problem


Hi all
Have a huge worksheet and loads of dates and data. It is regarding
stockmarkets and trading for my thesis. I am looking up dates and
returning a value using a VLOOKUP formula
=VLOOKUP(S2;LAIS2!$A$3:$G$438;7;FALSE) and it is working like it
should.
I am trying to find out trading dates before and after the value the
VLOOKUP returns. I thought of using a OFFSET formula but that does not
seem to work with the VLOOKUP.

Does anyone understand what I am trying to do and able to help me?
Regards,
Vilhelm


--
XavierXXX
------------------------------------------------------------------------
XavierXXX's Profile: http://www.excelforum.com/member.php...o&userid=28875
View this thread: http://www.excelforum.com/showthread...hreadid=486221

  #2   Report Post  
Posted to microsoft.public.excel.misc
vezerid
 
Posts: n/a
Default VLOOKUP/OFFSET Problem

Vilhelm,
in your formula, is S2 a date? Or is the result of the formula a date
(in which case dates are in column G:G)?
OFFSET() will find reference a cell as an offset from its position, not
its value. VLOOKUP() finds a value, not a position. MATCH() will find a
relative position within an array. Thus,
MATCH(VLOOKUP(...)-1, ...) would find the location of the previous
value in the array.
INDEX() will find the nth element in an array. The combination
INDEX(..., MATCH(...)) is often used as a substitute of VLOOKUP when
there is more complexity in the required calculations than VLOOKUP()
can handle.

Write back if you need something more specific or get stuck.

HTH
Kostis Vezerides

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
have some problem with database baldamenti Excel Discussion (Misc queries) 1 October 13th 05 05:38 PM
Urgent Help Required on Excel Macro Problem Sachin Shah Excel Discussion (Misc queries) 1 August 17th 05 06:26 AM
Problem With Reference Update Egon Excel Worksheet Functions 17 July 16th 05 05:45 AM
Copy an Drag cell Formula Problem Nat Excel Discussion (Misc queries) 1 June 20th 05 03:24 PM
Freeze Pane problem in shared workbooks JM Excel Discussion (Misc queries) 1 February 1st 05 12:04 AM


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