#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 683
Default Find Nearest Date

On the 2nd tab of my spreadsheet, I have several dates in column A with
associated rates in Column B.

I entered a vlookup formula on Tab A that will find the corresponding rate
with the corresponding date, but how can I change the formula to pull the
rate closest to the date I'm looking for without going beyond it?

For example:
On tab A cell B1- I have 05/21/09

On tab B I have the following information:
5/10/09 5.25%
5/13/09 5.30%
5/18/09 5.32%
5/23/09 5.45%

Ideally, I'd like to have the fomula give me 5.32% as the answer.
How can I alter my vlookup formula, or is some other formula better?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Find Nearest Date

Try in sheet1
=LOOKUP(B1,Sheet2!$A$1:$A$4,Sheet2!$B$1:$B$4)

If this post helps click Yes
---------------
Jacob Skaria


"Brian" wrote:

On the 2nd tab of my spreadsheet, I have several dates in column A with
associated rates in Column B.

I entered a vlookup formula on Tab A that will find the corresponding rate
with the corresponding date, but how can I change the formula to pull the
rate closest to the date I'm looking for without going beyond it?

For example:
On tab A cell B1- I have 05/21/09

On tab B I have the following information:
5/10/09 5.25%
5/13/09 5.30%
5/18/09 5.32%
5/23/09 5.45%

Ideally, I'd like to have the fomula give me 5.32% as the answer.
How can I alter my vlookup formula, or is some other formula better?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Find Nearest Date

On Wed, 7 Oct 2009 05:51:01 -0700, Brian
wrote:

On the 2nd tab of my spreadsheet, I have several dates in column A with
associated rates in Column B.

I entered a vlookup formula on Tab A that will find the corresponding rate
with the corresponding date, but how can I change the formula to pull the
rate closest to the date I'm looking for without going beyond it?

For example:
On tab A cell B1- I have 05/21/09

On tab B I have the following information:
5/10/09 5.25%
5/13/09 5.30%
5/18/09 5.32%
5/23/09 5.45%

Ideally, I'd like to have the fomula give me 5.32% as the answer.
How can I alter my vlookup formula, or is some other formula better?



What do you mean by "rate closest to the date ... without going beyond it?"

What should 5/22/09 return?

If 5/22/09 should also return 5.32%, then VLOOKUP should do that.

e.g.: =VLOOKUP(B1,Tbl,2)

What kind of VLOOKUP formula are you using? What kind of problem are you
having with it?
--ron
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
Find the three nearest dates magdiego Excel Worksheet Functions 8 June 19th 08 03:24 AM
Find the nearest Christmas to a date lbbeurmann Excel Worksheet Functions 1 March 16th 07 03:48 PM
Find nearest value Two-Canucks Excel Discussion (Misc queries) 7 May 19th 06 07:49 PM
find nearest help nobbyknownowt Excel Worksheet Functions 5 April 21st 06 07:54 AM
use vlookup or other to find the nearest values (<) or interpola Rodney Excel Worksheet Functions 4 April 5th 06 09:21 PM


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