Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default LOOKUP BETWEEN 2 DATES

I have a sports roster to keep up to date. I need to always have the kids
current age bracket updated. How can I return an age group based on their
dob? The problem is there are 9 age groups and excel won't let me do that
many nested if statements. It would be something like this
the first age group range would be: if dob8/1/98 & dob < 7/31/99 then age
group = u8
name dob age group
john smith 7/1/00 ??
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default LOOKUP BETWEEN 2 DATES

Create a table of values like so

Age Group
01/08/1998 1
31/07/1999 2

etc.

in say H1:I10

and then use

=VLOOKUP(B2,H1:I10,2,TRUE)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

" Pivot Table/Query" wrote
in message ...
I have a sports roster to keep up to date. I need to always have the kids
current age bracket updated. How can I return an age group based on their
dob? The problem is there are 9 age groups and excel won't let me do that
many nested if statements. It would be something like this
the first age group range would be: if dob8/1/98 & dob < 7/31/99 then age
group = u8
name dob age group
john smith 7/1/00 ??



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default LOOKUP BETWEEN 2 DATES

How exactly would that work since their dob has to be in between those 2
dates in order to be in the next age group?

"Bob Phillips" wrote:

Create a table of values like so

Age Group
01/08/1998 1
31/07/1999 2

etc.

in say H1:I10

and then use

=VLOOKUP(B2,H1:I10,2,TRUE)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

" Pivot Table/Query" wrote
in message ...
I have a sports roster to keep up to date. I need to always have the kids
current age bracket updated. How can I return an age group based on their
dob? The problem is there are 9 age groups and excel won't let me do that
many nested if statements. It would be something like this
the first age group range would be: if dob8/1/98 & dob < 7/31/99 then age
group = u8
name dob age group
john smith 7/1/00 ??




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default LOOKUP BETWEEN 2 DATES

Try it and see.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

" Pivot Table/Query" wrote
in message ...
How exactly would that work since their dob has to be in between those 2
dates in order to be in the next age group?

"Bob Phillips" wrote:

Create a table of values like so

Age Group
01/08/1998 1
31/07/1999 2

etc.

in say H1:I10

and then use

=VLOOKUP(B2,H1:I10,2,TRUE)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

" Pivot Table/Query"

wrote
in message ...
I have a sports roster to keep up to date. I need to always have the

kids
current age bracket updated. How can I return an age group based on

their
dob? The problem is there are 9 age groups and excel won't let me do

that
many nested if statements. It would be something like this
the first age group range would be: if dob8/1/98 & dob < 7/31/99 then

age
group = u8
name dob age group
john smith 7/1/00 ??






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default LOOKUP BETWEEN 2 DATES

Have you looked at the help on Vlookup to understand its behavior with
reference to the 4th argument? Recommend you do.

--
Regards,
Tom Ogilvy


" Pivot Table/Query" wrote
in message ...
How exactly would that work since their dob has to be in between those 2
dates in order to be in the next age group?

"Bob Phillips" wrote:

Create a table of values like so

Age Group
01/08/1998 1
31/07/1999 2

etc.

in say H1:I10

and then use

=VLOOKUP(B2,H1:I10,2,TRUE)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

" Pivot Table/Query"
wrote
in message ...
I have a sports roster to keep up to date. I need to always have the
kids
current age bracket updated. How can I return an age group based on
their
dob? The problem is there are 9 age groups and excel won't let me do
that
many nested if statements. It would be something like this
the first age group range would be: if dob8/1/98 & dob < 7/31/99 then
age
group = u8
name dob age group
john smith 7/1/00 ??






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
using dates for lookup Mal[_2_] Excel Worksheet Functions 2 July 20th 09 04:05 AM
Lookup between two dates Nikkiv505 Excel Worksheet Functions 3 March 19th 09 02:29 AM
Lookup and dates Danie Excel Discussion (Misc queries) 5 October 24th 08 03:21 PM
Lookup between dates Amanda Excel Discussion (Misc queries) 1 September 22nd 08 01:38 PM
Lookup a date between other dates spalmarez Excel Worksheet Functions 1 November 4th 04 09:48 PM


All times are GMT +1. The time now is 09:43 PM.

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"