Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default LookUp If Greater Than and LessThan

Trying to find a formula that will compare a number between 2 columns are
return the 3rd column

Something onlong the lines of
=If(And(NumberCol_A,Number<=Col_A),Col_c,"NotFoun d")

Col_A Col_B Col_C
20100101 20100129 JAN
20100129 20100226 FEB
20100226 20100402 MAR

so if Number='2010304' the result is 'MAR'
--
Thanks & Best Regards
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default LookUp If Greater Than and LessThan

Hi,

The example llokup value you gave doesn't match any of the criteria so I'll
guess that's a typo. Try this ARRAY formula with the lookup value in D1

=INDEX(C1:C10,MATCH(1,(A1:A10<=D1)*(B1:B10D1),0))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"LeeL" wrote:

Trying to find a formula that will compare a number between 2 columns are
return the 3rd column

Something onlong the lines of
=If(And(NumberCol_A,Number<=Col_A),Col_c,"NotFoun d")

Col_A Col_B Col_C
20100101 20100129 JAN
20100129 20100226 FEB
20100226 20100402 MAR

so if Number='2010304' the result is 'MAR'
--
Thanks & Best Regards

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 value greater than in LOOKUP Brian Excel Discussion (Misc queries) 4 May 13th 23 07:45 PM
lookup number greater than Ade Taiwo Excel Worksheet Functions 1 June 17th 09 06:43 PM
lookup number greater than Ade Taiwo[_2_] Excel Worksheet Functions 3 June 17th 09 05:52 PM
lookup finding the next value that is GREATER Tim Excel Worksheet Functions 2 September 4th 05 05:27 PM
value lessthan x and greaterthan y justzach[_3_] Excel Programming 3 July 27th 04 11:59 PM


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