Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can a VLOOKUP use two items to search | Excel Worksheet Functions | |||
vlookup with search? | Excel Worksheet Functions | |||
Vlookup problem with Date Time | Excel Worksheet Functions | |||
VLookup function to search an entire workbook | Excel Worksheet Functions | |||
search by date in windows explorer | Excel Discussion (Misc queries) |