Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Data lookup function in Excel

I am trying to create a function similar to VLOOKUP, but different. I have a
range of numbers, and I need the function to look at the starting number and
see if it is between, for example, 0 and 50 dollars, and if it is, return one
value. If it is between 50 and 100, another, etc. VLOOKUP doesn't do between,
just exact. What I am looking for is like what you do on your income tax
form, where you look for your wages between certain numbers. Does anyone
have a suggestion?
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,202
Default Data lookup function in Excel

I am trying to create a function similar to VLOOKUP, but different. I have
a
range of numbers, and I need the function to look at the starting number
and
see if it is between, for example, 0 and 50 dollars, and if it is, return
one
value. If it is between 50 and 100, another, etc. VLOOKUP doesn't do
between,
just exact. What I am looking for is like what you do on your income tax
form, where you look for your wages between certain numbers. Does anyone
have a suggestion?


If your intervals are all the same, you can divide by the interval amount,
add one to it, and use it as the index value in a CHOOSE function call.
Using your 50 unit interval example from your posting...

=CHOOSE(1+A1/50,Value1,Value2,Value3,Value4,Value5,<<etc.)

Rick

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
Excel Data Validation/Lookup function does function correcty Kirkey Excel Worksheet Functions 2 May 25th 09 09:22 PM
Lookup Function for Data Validation NH Excel Worksheet Functions 2 October 16th 08 06:33 PM
Data lookup function JL Taylor Excel Worksheet Functions 2 July 16th 08 07:29 PM
Lookup and Move Data Function Help naiku Excel Worksheet Functions 3 May 26th 06 12:29 AM
AGAIN... I need another Lookup Function to extract some data BillReese Excel Worksheet Functions 2 May 9th 06 12:26 AM


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