Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Vlookup using dates in the lookup range

I am trying to use dates in a vlookup table and then looking up its value.
For example I have a date range from 01-01-07 to 01-28-07 and the value to be
looked up is 01, the next range is 01-29-07 to 02-25-07, and value 02, the
next range is 02-26-07 to 04-01-07, value is 3. However, when I have the
vlookup look at the date 03-26-07 it shows the value as 02. Anyone know what
I am doing wrong. The table is
01/01/07 AP017
01/28/07 AP017
02/25/07 AP027
04/01/07 AP037

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,091
Default Vlookup using dates in the lookup range

You need to show us the formula you are using. Important detail! :)

Tyro

"hmteacher" wrote in message
...
I am trying to use dates in a vlookup table and then looking up its value.
For example I have a date range from 01-01-07 to 01-28-07 and the value to
be
looked up is 01, the next range is 01-29-07 to 02-25-07, and value 02, the
next range is 02-26-07 to 04-01-07, value is 3. However, when I have the
vlookup look at the date 03-26-07 it shows the value as 02. Anyone know
what
I am doing wrong. The table is
01/01/07 AP017
01/28/07 AP017
02/25/07 AP027
04/01/07 AP037



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Vlookup using dates in the lookup range

Think you just need to re-define your ascending sort vlookup table like this

1-Jan-07 AP017
29-Jan-07 AP027
26-Feb-07 AP037
1-Apr-07 AP047
....

then your vlookup* on the date: 26-Mar-07
will return the correct: AP037

*example in E1: =VLOOKUP(D1,A:B,2,TRUE)
where D1 contains the lookup date
and the lookup table is in cols A and B
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"hmteacher" wrote:
I am trying to use dates in a vlookup table and then looking up its value.
For example I have a date range from 01-01-07 to 01-28-07 and the value to be
looked up is 01, the next range is 01-29-07 to 02-25-07, and value 02, the
next range is 02-26-07 to 04-01-07, value is 3. However, when I have the
vlookup look at the date 03-26-07 it shows the value as 02. Anyone know what
I am doing wrong. The table is
01/01/07 AP017
01/28/07 AP017
02/25/07 AP027
04/01/07 AP037

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Vlookup using dates in the lookup range

I found the problem. I needed to use the start date of the date range. I
was using the end date of the date range.

Thanks for the input.

"Max" wrote:

Think you just need to re-define your ascending sort vlookup table like this

1-Jan-07 AP017
29-Jan-07 AP027
26-Feb-07 AP037
1-Apr-07 AP047
...

then your vlookup* on the date: 26-Mar-07
will return the correct: AP037

*example in E1: =VLOOKUP(D1,A:B,2,TRUE)
where D1 contains the lookup date
and the lookup table is in cols A and B
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"hmteacher" wrote:
I am trying to use dates in a vlookup table and then looking up its value.
For example I have a date range from 01-01-07 to 01-28-07 and the value to be
looked up is 01, the next range is 01-29-07 to 02-25-07, and value 02, the
next range is 02-26-07 to 04-01-07, value is 3. However, when I have the
vlookup look at the date 03-26-07 it shows the value as 02. Anyone know what
I am doing wrong. The table is
01/01/07 AP017
01/28/07 AP017
02/25/07 AP027
04/01/07 AP037

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Vlookup using dates in the lookup range

I found the problem. I needed to use the start date of the date range. I
was using the end date of the date range.

Thanks for the input.

"Tyro" wrote:

You need to show us the formula you are using. Important detail! :)

Tyro

"hmteacher" wrote in message
...
I am trying to use dates in a vlookup table and then looking up its value.
For example I have a date range from 01-01-07 to 01-28-07 and the value to
be
looked up is 01, the next range is 01-29-07 to 02-25-07, and value 02, the
next range is 02-26-07 to 04-01-07, value is 3. However, when I have the
vlookup look at the date 03-26-07 it shows the value as 02. Anyone know
what
I am doing wrong. The table is
01/01/07 AP017
01/28/07 AP017
02/25/07 AP027
04/01/07 AP037






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Vlookup using dates in the lookup range

Glad you got it sorted out over there.
Thanks for feeding back.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"hmteacher" wrote in message
...
I found the problem. I needed to use the start date of the date range. I
was using the end date of the date range.

Thanks for the input.



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
Vlookup problem in lookup range viraj Excel Worksheet Functions 2 July 7th 07 10:00 AM
Lookup based on range of dates dls2193 Excel Worksheet Functions 1 March 30th 06 11:21 PM
lookup/vlookup for dates, please help! soozanne Excel Worksheet Functions 1 February 23rd 06 04:00 PM
VLOOKUP range lookup xtreme_fac Excel Worksheet Functions 1 December 18th 05 10:47 AM
Range Lookup in VLookup ?'s Bronco_Junkie Excel Worksheet Functions 1 November 2nd 05 08:53 AM


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