Looking up a value using a range

N

Nokose451

Hello all. I hope someone can help me figure this one out. So here w
go....

I have a spread sheet that you plug in a date and then enter anothe
date manually. The second date is the on I would like to automate.
need the first date to be complared in a range of dates and then retur
the effective date.

Example:
Entered date - 01/08/2006

Range Table: Effective:
01/01/2006 - 01/05/2006 01/05/2006
01/06/2006 - 01/10/2006 01/10/2006
01/11/2006 - 01/15/2006 01/15/2006

I would like it to return the 01/10/2006 effective date for that range
Any help is appreciated
 
D

Domenic

Assuming that A1:B3 contains your table, try...

=LOOKUP(D1,LEFT(A1:A3,10)+0,B1:B3)

....where D1 contains the date of interest. However, it would be more
efficient if you changed your table so that A1:A3 contains...

1/1/06
1/6/06
1/11/06

....and B1:B3 contains the corresponding values...

1/5/06
1/10/06
1/15/06

Then you can use the following formula instead...

=LOOKUP(D1,A1:A3,B1:B3)

Hope this helps!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top