Band based on age

Jimbola

Board Regular
Joined
Jun 23, 2010
Messages
60
I have a list of date of birth in col A and in Col B I need to allocate to them a band based on the table below (bands in bold);


01/09/1997 31/08/1998 N
01/09/199831/08/1999 M
01/09/199931/08/2000 L
01/09/200031/08/2001 K
01/09/200131/08/2002 J
01/09/200231/08/2003 I
01/09/2003 31/08/2004 H
01/09/2004 31/08/2005 G
01/09/200531/08/2006 F
01/09/200631/08/2007 E
01/09/200731/08/2008 D
01/09/200831/08/2009 C
01/09/200931/08/2010 B
01/09/201031/08/2011 A

<tbody>
</tbody><colgroup><col span="2"><col></colgroup>

To many bands to do an IF or IFS statement, is there another way?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
question about 2012, how would you deal with extensibility. Maybe low tek but thinking a vlookup with that data on a hidden sheet for ease of update
 
Upvote 0
question about 2012, how would you deal with extensibility. Maybe low tek but thinking a vlookup with that data on a hidden sheet for ease of update


There will be no 2012 these are all the bands there will ever be. How would you do it with vlookup?
 
Upvote 0
You use the "Approximate Match" argument in VLOOKUP (set 4th argument to TRUE).

So set up your lookup table, just as it appears in your first post. Let's say that range is in cells A1:C14 on Sheet2, and the date you are looking up is in cell D1.
Then your formula would look like:
Code:
=VLOOKUP(D1,Sheet2!$A$1:$C$14,3,TRUE)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,247
Messages
6,123,853
Members
449,129
Latest member
krishnamadison

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top