Академический Документы
Профессиональный Документы
Культура Документы
Page 1 of 4
Search forum...
0
User CP
Home
Excel Tips
Training
FAQ
Community
Calendar
New Posts
Search
Quick Links
Forum Rules
Log
Out
Excel Help Forum Microsoft Office Application Help - Excel Help forum Excel General [SOLVED] VLOOKUP using Ranges as opposed to finite data
Latest Posts
Thread Tools
09-10-2011, 01:42 AM
Rate Thread
Display Modes
#1
ltsolis
Registered User
Hi
I have spreadsheet that is being used to provide a rating based on performance. The rating that is given is
based on percentage ranges, and the percentage that is used is the percentage difference between target and
actual. For example, if the percentage difference is >=10% a particular rating is given; if the percentage
difference is <10% and >5% and other rating, etc. etc.
Currently, there are only 5 ratings so I've created a formula to assign the rating using Nested IFs, but I find that
would be cumbersome to manage if the ranges/categories change or if more ratings are added.
Is there a way to use VLOOKUP to do the same thing?
I have attached a sample worksheet to show what I mean.
Any help would be greatly appreciated.
ltsolis
Attached Files
09-10-2011, 01:48 AM
ConneXionLost
Forum Moderator
#2
Join Date: 12 Mar 2009
Location: Victoria, Canada
MS Office Version:2003 & 2010
Posts: 1,690
How about:
Code:
=INDEX(C3:C8,MATCH(MIN(B3,I2),B3:B8,-1),1)
Cheers,
__________________
Docendo discimus.
Please consider:
Thanking those who helped you. Click the scales
icon in the upper right corner of the contributor's post and add Reputation.
Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.
Standard Disclaimer
http://www.excelforum.com/excel-general/791700-vlookup-using-ranges-as-opposed-to-finite-da... 11/24/2011
[SOLVED] VLOOKUP using Ranges as opposed to finite data - Excel Help Forum
Page 2 of 4
09-10-2011, 02:03 AM
#3
Join Date: 05 Aug 2004
Location: NJ
MS Office Version:MS 2007
Posts: 4,913
ChemistB
Forum Guru
Or, invert your table and in column B put the minimium for that range so B:C will look something like
-100% 0
-40% 1
-25% 2
-10% 3
2% 4
10% 5
then your VLOOKUP will be
=VLOOKUP(I2, $B$3:$C$8,2)
Does that work for you?
__________________
ChemistB
My 2
Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
If I helped, Don't forget to add to my reputation (click on the little scale)
09-10-2011, 04:48 AM
#4
Join Date: 21 Jun 2011
Location: Belize City, Belize
MS Office Version:Excel 2007
Posts: 17
ltsolis
Registered User
ConneXionLost
I tried your solution first since it seemed close to what I want to have in place. The only problem is that it
doesn't work with all the results. If you plug 105 in g2, you should get a rating of 4 and your solution gives a
rating of 5.
ChemistB
I will try your solution and see how it goes.
Thanks.
ltsolis
09-10-2011, 11:46 AM
ConneXionLost
Forum Moderator
#5
Join Date: 12 Mar 2009
Location: Victoria, Canada
MS Office Version:2003 & 2010
Posts: 1,690
Agreed. However, in either case (as ChemistB has suggested), the solution will require you to reconfigure your
lookup table.
__________________
Docendo discimus.
Please consider:
Thanking those who helped you. Click the scales
icon in the upper right corner of the contributor's post and add Reputation.
Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.
Standard Disclaimer
http://www.excelforum.com/excel-general/791700-vlookup-using-ranges-as-opposed-to-finite-da... 11/24/2011
[SOLVED] VLOOKUP using Ranges as opposed to finite data - Excel Help Forum
Page 3 of 4
09-11-2011, 11:28 PM
#6
Join Date: 21 Jun 2011
Location: Belize City, Belize
MS Office Version:Excel 2007
Posts: 17
ltsolis
Registered User
ConneXionLost, ChemistB
Thanks for your assistance. I tried the solution by ChemistB and it works very well. I just need to go over it and
understand why it works and the general idea behind the formula.
Thanks again.
ltsolis
Bookmarks
Digg
del.icio.us
StumbleUpon
Tags
Edit Tags
None
Quick Reply
Message:
Options
Quote message in reply?
Go Advanced
Excel General
Go
http://www.excelforum.com/excel-general/791700-vlookup-using-ranges-as-opposed-to-finite-da... 11/24/2011
[SOLVED] VLOOKUP using Ranges as opposed to finite data - Excel Help Forum
Page 4 of 4
Log Out
All times are GMT +5.5. The time now is 12:49 PM.
Back to top
-- Excel Forum
http://www.excelforum.com/excel-general/791700-vlookup-using-ranges-as-opposed-to-finite-da... 11/24/2011