LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Vlookup and date format problem


Hi,

I have yesterdays date in a spreadsheet which is obtained by the
function =NOW()-1. It’s shown on the spreadsheet with a Date and a time
and I didn’t want the time so I formatted the cell to only show the
date.

I then want to refer to this Cell with yesterdays date, which is in B2
in my main spreadsheet with a VLOOKUP as follows:
=VLOOKUP(B2,'Historical Funds'!B4:C3000,2)

The info in the Historical Funds sheet looks like this:
A B C
1
2
3
4 05/08/2005 59.11
5 04/08/2005 58.9
6 03/08/2005 58.91

The dates in Column B are UK formatted dates, without the time.

Does anyone know what I have to do to first format my VLOOKUP search
criteria correctly to handle dates? (maybe strip the time?) I know my
Vlookup works, because when I search on simple strings instead of dates
there is no problem getting my values from column C

Any help would be appreciated!


--
dazman
------------------------------------------------------------------------
dazman's Profile: http://www.excelforum.com/member.php...o&userid=25903
View this thread: http://www.excelforum.com/showthread...hreadid=393542

 
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
Excel Format Problem - Date Overrides Format Mary Excel Discussion (Misc queries) 5 February 10th 10 05:49 AM
VLookup Problem with Number format Derek Upson - Pioneer Excel Worksheet Functions 3 December 27th 07 06:16 PM
vlookup format problem Patio Excel Worksheet Functions 1 June 19th 07 07:01 PM
VLOOKUP using date problem manse Excel Worksheet Functions 3 January 20th 06 09:56 AM
Date format when using a vlookup Rob Laman Excel Worksheet Functions 2 August 31st 05 03:29 PM


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