Вы находитесь на странице: 1из 4

[SOLVED] VLOOKUP using Ranges as opposed to finite data - Excel Help Forum

Welcome, amanojp. Private Messages: Unread 0, Total 0.


You last visited: Today at 11:34 AM

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

Search this Thread

Rate Thread

Display Modes
#1

Join Date: 21 Jun 2011


Location: Belize City, Belize
MS Office Version:Excel 2007
Posts: 17

ltsolis
Registered User

VLOOKUP using Ranges as opposed to finite data

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

Sample Worksheet - Rating.xlsx (9.6 KB, 7 views)

Last edited by ltsolis; 09-11-2011 at 11:28 PM.

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

Re: VLOOKUP using Ranges as opposed to finite data

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

Last edited by ConneXionLost; 09-10-2011 at 01:56 AM.

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

Re: VLOOKUP using Ranges as opposed to finite data

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

Re: VLOOKUP using Ranges as opposed to finite data

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

Re: VLOOKUP using Ranges as opposed to finite data

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

Re: VLOOKUP using Ranges as opposed to finite data

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

Google

Edit Tags

None

Quick Reply
Message:

Options
Quote message in reply?

Post Quick Reply

Go Advanced

Previous Thread | Next Thread

Currently Active Users Viewing This Thread: 1 (1 members and 0 guests)


amanojp
Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts
BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump
Forum Rules

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

Contact Us - ExcelTip.com - Archive - Top

Log Out

All times are GMT +5.5. The time now is 12:49 PM.

Back to top

Powered by vBulletin Version 3.8.1

-- Excel Forum

Copyright 2000 - 2011, Jelsoft Enterprises Ltd.


Search Engine Friendly URLs by vBSEO 3.2.0

http://www.excelforum.com/excel-general/791700-vlookup-using-ranges-as-opposed-to-finite-da... 11/24/2011

Вам также может понравиться