Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
George
 
Posts: n/a
Default VLOOKUP date search

I am using nested IF commands to do searches on multiple currencies and the
VLOOKUP command to pick out the appropriate currency spot rate for a
specified date. Using dates as the lookup value it is not picking up the
correct values. Am I missing something?
Example below -
IF(G4="USD",VLOOKUP('Trading Positions'!Q4,'NZD FX Rates'!C2:E434,2)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arvi Laanemets
 
Posts: n/a
Default VLOOKUP date search

Hi

When you omit 4th parameter, it's taken by default as TRUE and VLOOK returns
nearest match. When you have the lookup range unsorted, or sorted not by key
field, then results will be unpredictable.

To get exact match returned, set 4th parameter to FALSE (or 0), i.e.
=IF(G4="USD",VLOOKUP('Trading Positions'!Q4,'NZD FX Rates'!C2:E434,2,0)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"George" wrote in message
...
I am using nested IF commands to do searches on multiple currencies and the
VLOOKUP command to pick out the appropriate currency spot rate for a
specified date. Using dates as the lookup value it is not picking up the
correct values. Am I missing something?
Example below -
IF(G4="USD",VLOOKUP('Trading Positions'!Q4,'NZD FX Rates'!C2:E434,2)



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
Can a VLOOKUP use two items to search Natalie Excel Worksheet Functions 2 May 16th 06 05:19 PM
vlookup with search? maryj Excel Worksheet Functions 5 May 8th 06 07:10 PM
Vlookup problem with Date Time normajmarsh Excel Worksheet Functions 0 February 3rd 06 08:33 PM
VLookup function to search an entire workbook liseladele Excel Worksheet Functions 0 November 10th 05 01:35 AM
search by date in windows explorer boyd Excel Discussion (Misc queries) 3 May 25th 05 05:14 AM


All times are GMT +1. The time now is 08:03 AM.

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

About Us

"It's about Microsoft Excel"