Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default LOOKUP FORMULA - USING THRESHOLDS - HELP

Trying to create a lookup using thresholds. Col B represents the upper
limit, Col C represents the return value. Using the table below:

If I had a cell in Col A with the value of 8, I would expect a return value
of 1 from Col C.

If I had a cell in Col A with the value of 78, I would expect a return value
of 3 from Col C.

Col B Col C
18 1
54 2
90 3
126 4
162 5
198 6
234 7
270 8
306 9
342 10
378 11
414 12
450 13
486 14
522 15
558 16
594 17

Is there a lookup formula for this? Is there a better way of doing this?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default LOOKUP FORMULA - USING THRESHOLDS - HELP


Try:

=INDEX($C$2:$C$18,MATCH(TRUE,INDEX($B$2:$B$18=A2, 0),0))

adjust ranges to suit.


--
NBVC

Where there is a will there are many ways.
'The Code Cage' (http;//www.thecodecage.com)
------------------------------------------------------------------------
NBVC's Profile: http://www.thecodecage.com/forumz/member.php?userid=74
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=116195

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default LOOKUP FORMULA - USING THRESHOLDS - HELP

Perfect! Thank you!

"NBVC" wrote:


Try:

=INDEX($C$2:$C$18,MATCH(TRUE,INDEX($B$2:$B$18=A2, 0),0))

adjust ranges to suit.


--
NBVC

Where there is a will there are many ways.
'The Code Cage' (http;//www.thecodecage.com)
------------------------------------------------------------------------
NBVC's Profile: http://www.thecodecage.com/forumz/member.php?userid=74
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=116195


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default LOOKUP FORMULA - USING THRESHOLDS - HELP

Note that with a slight change in your data layout you could have used a
much simpler formula:

0 1
18 2
54 3
90 4
etc.

Your formula in that case:

=VLOOKUP(A1,B1:C100,2)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"txm49" wrote in message
...
Perfect! Thank you!

"NBVC" wrote:


Try:

=INDEX($C$2:$C$18,MATCH(TRUE,INDEX($B$2:$B$18=A2, 0),0))

adjust ranges to suit.


--
NBVC

Where there is a will there are many ways.
'The Code Cage' (http;//www.thecodecage.com)
------------------------------------------------------------------------
NBVC's Profile: http://www.thecodecage.com/forumz/member.php?userid=74
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=116195



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default LOOKUP FORMULA - USING THRESHOLDS - HELP


or even more simple:

=LOOKUP(A1,B1:C100)


Niek Otten;417753 Wrote:
Note that with a slight change in your data layout you could have used
a
much simpler formula:

0 1
18 2
54 3
90 4
etc.

Your formula in that case:

=VLOOKUP(A1,B1:C100,2)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"txm49" wrote in message
...
Perfect! Thank you!

"NBVC" wrote:


Try:

=INDEX($C$2:$C$18,MATCH(TRUE,INDEX($B$2:$B$18=A2, 0),0))

adjust ranges to suit.


--
NBVC

Where there is a will there are many ways.
'The Code Cage' (http;//www.thecodecage.com)

------------------------------------------------------------------------
NBVC's Profile: 'The Code Cage Forums - View Profile: NBVC'

(http://www.thecodecage.com/forumz/members/nbvc.html)
View this thread:
'LOOKUP FORMULA - USING THRESHOLDS - HELP - The Code Cage Forums'

(http://www.thecodecage.com/forumz/sh...d.php?t=116195)




--
NBVC

Where there is a will there are many ways.
'The Code Cage' (http;//www.thecodecage.com)
------------------------------------------------------------------------
NBVC's Profile: http://www.thecodecage.com/forumz/member.php?userid=74
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=116195

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
Thresholds linksgeek Charts and Charting in Excel 1 October 31st 08 08:49 PM
Lookup formula - please help! orquidea Excel Discussion (Misc queries) 5 November 28th 07 09:31 AM
Create a Bullseye chart with value thresholds [email protected] Excel Discussion (Misc queries) 2 February 15th 07 04:28 PM
Lookup Formula - but have a formula if it can't find/match a value Stephen Excel Worksheet Functions 11 June 14th 05 05:32 AM
Negative Thresholds in SumProduct Everyday Joe Excel Discussion (Misc queries) 0 May 4th 05 05:14 PM


All times are GMT +1. The time now is 12:10 AM.

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"