PC Review


Reply
Thread Tools Rate Thread

alternative formula for VLOOKUP since it stops with the 1st value itself

 
 
Kalaiarasan
Guest
Posts: n/a
 
      31st Aug 2010
Hi,

Am a research student. basically i have to sort some range in col. A
in descending order (as col. C) and then in col. D, i would like to
have the corresponding row value present in Col. B

I tried to use VLOOKUP. but it gives the first matching value only.

A B C D
5000 10 7000.0 70
2000 20 5000.0 10
4000 30 4000.0 30
3000 40 3900.0 90
1500 50 3000.0 40
2000 60 2000.0 20
7000 70 2000.0 20
1000 80 2000.0 20
3900 90 1500.0 50
2000 100 1000.0 80

I want in cells D7 and D8 the value of 60 and 100 respectively instead
of 20 and 20.
Please help me with suitable formula in column D

It is urgently required for me. advance thanks for the help

- kalaiarasan
 
Reply With Quote
 
 
 
 
Roger Govier
Guest
Posts: n/a
 
      31st Aug 2010
Hi

Copy columns A and B and Paste to columns D and E
Now, Select Columns D and E only>Data>Sort>Column D>Descending
Your values in E will move with the values in column D

--

Regards
Roger Govier

"Kalaiarasan" <(E-Mail Removed)> wrote in message
news:b6568167-f25d-4346-8474-(E-Mail Removed)...
> Hi,
>
> Am a research student. basically i have to sort some range in col. A
> in descending order (as col. C) and then in col. D, i would like to
> have the corresponding row value present in Col. B
>
> I tried to use VLOOKUP. but it gives the first matching value only.
>
> A B C D
> 5000 10 7000.0 70
> 2000 20 5000.0 10
> 4000 30 4000.0 30
> 3000 40 3900.0 90
> 1500 50 3000.0 40
> 2000 60 2000.0 20
> 7000 70 2000.0 20
> 1000 80 2000.0 20
> 3900 90 1500.0 50
> 2000 100 1000.0 80
>
> I want in cells D7 and D8 the value of 60 and 100 respectively instead
> of 20 and 20.
> Please help me with suitable formula in column D
>
> It is urgently required for me. advance thanks for the help
>
> - kalaiarasan
>
> __________ Information from ESET Smart Security, version of virus
> signature database 5410 (20100830) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>


__________ Information from ESET Smart Security, version of virus signature database 5410 (20100830) __________

The message was checked by ESET Smart Security.

http://www.eset.com



 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      31st Aug 2010
I used a spare column (actually column G) and put this formula in G1:

=A1+COUNTIF(A$1:A1,A1)/10

Copy this down as far as required (it assumes you will not have more
than 9 duplicate numbers in column A, but if you have just change the
10 to 100).

Then you can use this formula in D1:

=INDEX(B:B,MATCH(C1+COUNTIF(C$1:C1,C1)/10,G:G,0))

(again, change the 10 to 100 if necessary in your real data). Then
copy the formula down as far as you need.

Hope this helps.

Pete

On Aug 31, 8:08*am, Kalaiarasan <kalaikala...@gmail.com> wrote:
> Hi,
>
> Am a research student. basically i have to sort some range in col. A
> in descending order (as col. C) and then in col. D, i would like to
> have the corresponding row value present in Col. B
>
> I tried to use VLOOKUP. but it gives the first matching value only.
>
> A * * * * * * *B * * * * * * * * *C * * * * D
> 5000 * *10 * * *7000.0 *70
> 2000 * *20 * * *5000.0 *10
> 4000 * *30 * * *4000.0 *30
> 3000 * *40 * * *3900.0 *90
> 1500 * *50 * * *3000.0 *40
> 2000 * *60 * * *2000.0 *20
> 7000 * *70 * * *2000.0 *20
> 1000 * *80 * * *2000.0 *20
> 3900 * *90 * * *1500.0 *50
> 2000 * *100 * * 1000.0 *80
>
> I want in cells D7 and D8 the value of 60 and 100 respectively instead
> of 20 and 20.
> Please help me with suitable formula in column D
>
> It is urgently required for me. advance thanks for the help
>
> - kalaiarasan


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup alternative Kim Microsoft Excel Misc 2 15th Oct 2009 05:29 PM
Alternative formula to the vlookup formula? Victor Microsoft Excel Worksheet Functions 2 12th May 2008 04:38 PM
VLookup Alternative rufus05@gmail.com Microsoft Access Queries 3 9th May 2007 01:48 AM
alternative to VLOOKUP Thierry Microsoft Excel Worksheet Functions 2 3rd Jun 2006 09:48 AM
VBA Alternative to Vlookup =?Utf-8?B?U3Rhbg==?= Microsoft Excel Programming 1 7th Jul 2004 11:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:11 AM.