Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tom tom is offline
external usenet poster
 
Posts: 570
Default return a value from a range

Hi all,
I have a column of numbers in D3:D25 and corresponding values in E3:E25.
When I enter a value into A3, I would like B3 to return the value that
corresponds to column D where it's value is NOT higher than A3. For example:
If A3=22.3...and column D numbers are 21.5,22.5,23.5, I would like to return
the value next to the cell with the 22.5. Things sure are difficult to
explain in text sometimes!!!

Thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default return a value from a range

=INDEX(E3:E25,MATCH(A3,D3:D25,1))

your explanation conflicts with the example. The value Not higher than 22.3
is 21 not 22.5

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Tom" wrote in message
...
Hi all,
I have a column of numbers in D3:D25 and corresponding values in E3:E25.
When I enter a value into A3, I would like B3 to return the value that
corresponds to column D where it's value is NOT higher than A3. For

example:
If A3=22.3...and column D numbers are 21.5,22.5,23.5, I would like to

return
the value next to the cell with the 22.5. Things sure are difficult to
explain in text sometimes!!!

Thanks in advance!



  #3   Report Post  
Posted to microsoft.public.excel.programming
tom tom is offline
external usenet poster
 
Posts: 570
Default return a value from a range

Hi Bob, I may have goofed on the explanation...but you got exactly what I was
looking for.

Thanks!!!

"Bob Phillips" wrote:

=INDEX(E3:E25,MATCH(A3,D3:D25,1))

your explanation conflicts with the example. The value Not higher than 22.3
is 21 not 22.5

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Tom" wrote in message
...
Hi all,
I have a column of numbers in D3:D25 and corresponding values in E3:E25.
When I enter a value into A3, I would like B3 to return the value that
corresponds to column D where it's value is NOT higher than A3. For

example:
If A3=22.3...and column D numbers are 21.5,22.5,23.5, I would like to

return
the value next to the cell with the 22.5. Things sure are difficult to
explain in text sometimes!!!

Thanks in advance!




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
Return date if in range, else return blank LisaL Excel Worksheet Functions 1 July 22nd 09 03:23 PM
Return Range Address from Active Range ExcelMonkey Excel Programming 1 February 10th 06 12:00 PM
return min. of range except 0 Melissa Excel Discussion (Misc queries) 2 January 11th 06 12:14 PM
Return the name of a range Frederick Chow Excel Programming 4 December 25th 05 10:09 PM
How do I return the name of a Range? **Archie** Excel Programming 1 November 13th 03 11:31 PM


All times are GMT +1. The time now is 06:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"