PC Review


Reply
Thread Tools Rate Thread

How can i use lookup for data in reverse column ?

 
 
Ramesh Jaiswal (9867936636)
Guest
Posts: n/a
 
      5th Jul 2008
How can Vlook work to provide the data in revers for example:
in one excel sheet my data is,
A B
12 Raj
55 Abhay
96 Vinod
75 Ganesh

in another Excel sheet my data is,
A B
Abhay
Vinod
Raj
Ganesh

I want the A column to be lookup and the value of the first sheet column A
should appear. Is it possible. I know it is possible if i cust the B
column & past it in the A column and its work. But i do not want to cut the
same.
I have tried by no use. Please help me.

Ramesh Jaiswal
9867936636
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      5th Jul 2008
Hi,

Try this

=INDEX(Sheet2!$A$1:$A$4,MATCH(A1,Sheet2!$B$1:$B$4,0))

This assumes your data are on sheet 2 and the value you are looking up is in
A1 of another sheet.

Mike

"Ramesh Jaiswal (9867936636)" wrote:

> How can Vlook work to provide the data in revers for example:
> in one excel sheet my data is,
> A B
> 12 Raj
> 55 Abhay
> 96 Vinod
> 75 Ganesh
>
> in another Excel sheet my data is,
> A B
> Abhay
> Vinod
> Raj
> Ganesh
>
> I want the A column to be lookup and the value of the first sheet column A
> should appear. Is it possible. I know it is possible if i cust the B
> column & past it in the A column and its work. But i do not want to cut the
> same.
> I have tried by no use. Please help me.
>
> Ramesh Jaiswal
> 9867936636

 
Reply With Quote
 
Sandy Mann
Guest
Posts: n/a
 
      5th Jul 2008
Does it have to be VLOOKUP()? INDEX() with the data in Sheet1 in A2:A5 will
do it thus:

=INDEX(Sheet1!$B$2:$B$5,COUNTA(Sheet1!$B$2:$B$5)-(ROW()-ROW($A$2)))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(E-Mail Removed)
Replace @mailinator.com with @tiscali.co.uk


"Ramesh Jaiswal (9867936636)" <Ramesh Jaiswal
(9867936636)@discussions.microsoft.com> wrote in message
news:5574D832-10DD-4162-B9CB-(E-Mail Removed)...
> How can Vlook work to provide the data in revers for example:
> in one excel sheet my data is,
> A B
> 12 Raj
> 55 Abhay
> 96 Vinod
> 75 Ganesh
>
> in another Excel sheet my data is,
> A B
> Abhay
> Vinod
> Raj
> Ganesh
>
> I want the A column to be lookup and the value of the first sheet column A
> should appear. Is it possible. I know it is possible if i cust the B
> column & past it in the A column and its work. But i do not want to cut
> the
> same.
> I have tried by no use. Please help me.
>
> Ramesh Jaiswal
> 9867936636
>



 
Reply With Quote
 
Ramesh Jaiswal (9867936636)
Guest
Posts: n/a
 
      5th Jul 2008
Dear Sandy,

The Formula provided by you is of Index. I required the Vlookup formula.
As describe i require the lookup in revers i.e. if any data form sheet 2 is
present in second coloum in sheet 1, then i required the 1st data of the
respective field form sheet 1 to be appear in the column 2 of sheet 2.


=Vlookup(sheet1!$A$1:$B$8,-1,0)

Ramesh Jaiswal
9867936636


"Sandy Mann" wrote:

> Does it have to be VLOOKUP()? INDEX() with the data in Sheet1 in A2:A5 will
> do it thus:
>
> =INDEX(Sheet1!$B$2:$B$5,COUNTA(Sheet1!$B$2:$B$5)-(ROW()-ROW($A$2)))
>
> --
> HTH
>
> Sandy
> In Perth, the ancient capital of Scotland
> and the crowning place of kings
>
> (E-Mail Removed)
> Replace @mailinator.com with @tiscali.co.uk
>
>
> "Ramesh Jaiswal (9867936636)" <Ramesh Jaiswal
> (9867936636)@discussions.microsoft.com> wrote in message
> news:5574D832-10DD-4162-B9CB-(E-Mail Removed)...
> > How can Vlook work to provide the data in revers for example:
> > in one excel sheet my data is,
> > A B
> > 12 Raj
> > 55 Abhay
> > 96 Vinod
> > 75 Ganesh
> >
> > in another Excel sheet my data is,
> > A B
> > Abhay
> > Vinod
> > Raj
> > Ganesh
> >
> > I want the A column to be lookup and the value of the first sheet column A
> > should appear. Is it possible. I know it is possible if i cust the B
> > column & past it in the A column and its work. But i do not want to cut
> > the
> > same.
> > I have tried by no use. Please help me.
> >
> > Ramesh Jaiswal
> > 9867936636
> >

>
>
>

 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      5th Jul 2008
It doesn't work, you cannot Vlookup and return a column to the left

"Ramesh Jaiswal (9867936636)" wrote:

> Dear Sandy,
>
> The Formula provided by you is of Index. I required the Vlookup formula.
> As describe i require the lookup in revers i.e. if any data form sheet 2 is
> present in second coloum in sheet 1, then i required the 1st data of the
> respective field form sheet 1 to be appear in the column 2 of sheet 2.
>
>
> =Vlookup(sheet1!$A$1:$B$8,-1,0)
>
> Ramesh Jaiswal
> 9867936636
>
>
> "Sandy Mann" wrote:
>
> > Does it have to be VLOOKUP()? INDEX() with the data in Sheet1 in A2:A5 will
> > do it thus:
> >
> > =INDEX(Sheet1!$B$2:$B$5,COUNTA(Sheet1!$B$2:$B$5)-(ROW()-ROW($A$2)))
> >
> > --
> > HTH
> >
> > Sandy
> > In Perth, the ancient capital of Scotland
> > and the crowning place of kings
> >
> > (E-Mail Removed)
> > Replace @mailinator.com with @tiscali.co.uk
> >
> >
> > "Ramesh Jaiswal (9867936636)" <Ramesh Jaiswal
> > (9867936636)@discussions.microsoft.com> wrote in message
> > news:5574D832-10DD-4162-B9CB-(E-Mail Removed)...
> > > How can Vlook work to provide the data in revers for example:
> > > in one excel sheet my data is,
> > > A B
> > > 12 Raj
> > > 55 Abhay
> > > 96 Vinod
> > > 75 Ganesh
> > >
> > > in another Excel sheet my data is,
> > > A B
> > > Abhay
> > > Vinod
> > > Raj
> > > Ganesh
> > >
> > > I want the A column to be lookup and the value of the first sheet column A
> > > should appear. Is it possible. I know it is possible if i cust the B
> > > column & past it in the A column and its work. But i do not want to cut
> > > the
> > > same.
> > > I have tried by no use. Please help me.
> > >
> > > Ramesh Jaiswal
> > > 9867936636
> > >

> >
> >
> >

 
Reply With Quote
 
Ramesh Jaiswal (9867936636)
Guest
Posts: n/a
 
      5th Jul 2008

Dear Mike,

Any other solution. Please confirm..... If possible plesae provde the
alternet solution with example in formula..... It will help me a lot.

Ramesh Jaiswal
9867936636

"Mike H" wrote:

> It doesn't work, you cannot Vlookup and return a column to the left
>
> "Ramesh Jaiswal (9867936636)" wrote:
>
> > Dear Sandy,
> >
> > The Formula provided by you is of Index. I required the Vlookup formula.
> > As describe i require the lookup in revers i.e. if any data form sheet 2 is
> > present in second coloum in sheet 1, then i required the 1st data of the
> > respective field form sheet 1 to be appear in the column 2 of sheet 2.
> >
> >
> > =Vlookup(sheet1!$A$1:$B$8,-1,0)
> >
> > Ramesh Jaiswal
> > 9867936636
> >
> >
> > "Sandy Mann" wrote:
> >
> > > Does it have to be VLOOKUP()? INDEX() with the data in Sheet1 in A2:A5 will
> > > do it thus:
> > >
> > > =INDEX(Sheet1!$B$2:$B$5,COUNTA(Sheet1!$B$2:$B$5)-(ROW()-ROW($A$2)))
> > >
> > > --
> > > HTH
> > >
> > > Sandy
> > > In Perth, the ancient capital of Scotland
> > > and the crowning place of kings
> > >
> > > (E-Mail Removed)
> > > Replace @mailinator.com with @tiscali.co.uk
> > >
> > >
> > > "Ramesh Jaiswal (9867936636)" <Ramesh Jaiswal
> > > (9867936636)@discussions.microsoft.com> wrote in message
> > > news:5574D832-10DD-4162-B9CB-(E-Mail Removed)...
> > > > How can Vlook work to provide the data in revers for example:
> > > > in one excel sheet my data is,
> > > > A B
> > > > 12 Raj
> > > > 55 Abhay
> > > > 96 Vinod
> > > > 75 Ganesh
> > > >
> > > > in another Excel sheet my data is,
> > > > A B
> > > > Abhay
> > > > Vinod
> > > > Raj
> > > > Ganesh
> > > >
> > > > I want the A column to be lookup and the value of the first sheet column A
> > > > should appear. Is it possible. I know it is possible if i cust the B
> > > > column & past it in the A column and its work. But i do not want to cut
> > > > the
> > > > same.
> > > > I have tried by no use. Please help me.
> > > >
> > > > Ramesh Jaiswal
> > > > 9867936636
> > > >
> > >
> > >
> > >

 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      5th Jul 2008
Hi,

The solution I gave you in my first post does exactly what you require. All
you will have to do is change the ranges to suit your needs.

Mike

"Ramesh Jaiswal (9867936636)" wrote:

>
> Dear Mike,
>
> Any other solution. Please confirm..... If possible plesae provde the
> alternet solution with example in formula..... It will help me a lot.
>
> Ramesh Jaiswal
> 9867936636
>
> "Mike H" wrote:
>
> > It doesn't work, you cannot Vlookup and return a column to the left
> >
> > "Ramesh Jaiswal (9867936636)" wrote:
> >
> > > Dear Sandy,
> > >
> > > The Formula provided by you is of Index. I required the Vlookup formula.
> > > As describe i require the lookup in revers i.e. if any data form sheet 2 is
> > > present in second coloum in sheet 1, then i required the 1st data of the
> > > respective field form sheet 1 to be appear in the column 2 of sheet 2.
> > >
> > >
> > > =Vlookup(sheet1!$A$1:$B$8,-1,0)
> > >
> > > Ramesh Jaiswal
> > > 9867936636
> > >
> > >
> > > "Sandy Mann" wrote:
> > >
> > > > Does it have to be VLOOKUP()? INDEX() with the data in Sheet1 in A2:A5 will
> > > > do it thus:
> > > >
> > > > =INDEX(Sheet1!$B$2:$B$5,COUNTA(Sheet1!$B$2:$B$5)-(ROW()-ROW($A$2)))
> > > >
> > > > --
> > > > HTH
> > > >
> > > > Sandy
> > > > In Perth, the ancient capital of Scotland
> > > > and the crowning place of kings
> > > >
> > > > (E-Mail Removed)
> > > > Replace @mailinator.com with @tiscali.co.uk
> > > >
> > > >
> > > > "Ramesh Jaiswal (9867936636)" <Ramesh Jaiswal
> > > > (9867936636)@discussions.microsoft.com> wrote in message
> > > > news:5574D832-10DD-4162-B9CB-(E-Mail Removed)...
> > > > > How can Vlook work to provide the data in revers for example:
> > > > > in one excel sheet my data is,
> > > > > A B
> > > > > 12 Raj
> > > > > 55 Abhay
> > > > > 96 Vinod
> > > > > 75 Ganesh
> > > > >
> > > > > in another Excel sheet my data is,
> > > > > A B
> > > > > Abhay
> > > > > Vinod
> > > > > Raj
> > > > > Ganesh
> > > > >
> > > > > I want the A column to be lookup and the value of the first sheet column A
> > > > > should appear. Is it possible. I know it is possible if i cust the B
> > > > > column & past it in the A column and its work. But i do not want to cut
> > > > > the
> > > > > same.
> > > > > I have tried by no use. Please help me.
> > > > >
> > > > > Ramesh Jaiswal
> > > > > 9867936636
> > > > >
> > > >
> > > >
> > > >

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      5th Jul 2008
Can't remember where I got this UDF but give it a try.

Function VLookupLeft(lookupValue, ByVal lookupArray As Range, _
returnValueColumnOffset As Integer, _
Optional lookupValueColumn As Integer = -257)

'This function performs a simple lookup for values
'to the left (as well as to the right) of the
'lefthand column of the lookup array. And with a 4th
'argument added, it allows any column of the
'lookupArray to be used rather than the lefthand
'column. The third argument is the number of columns
'that the return value column is offset from the left-
'hand column of the lookup array. E.g., if the sought
'value is in the second column of the lookup array,the
'the third argument is 1. Columns left of reference column do not
'belong to the lookup array. If value of J1 is to be found in column
'B and to be returned is the value of the corresponding cell in column
'A, the function should be

'VlookupLeft(J1;B:B;-1)

'Check to confirm that the lookup array is a single
'area range
If lookupArray.Areas.Count > 1 Then
MsgBox "this function accepts only single-area ranges"
Exit Function
End If

With Application

'If no other column for the lookup value was input,
'return the value matching the lookup value in the
'lefthand column of the lookup array
If lookupValueColumn = -257 Then
VLookupLeft = _
.Index(lookupArray.Offset(0, returnValueColumnOffset), _
.Match(lookupValue, lookupArray.Columns(1), 0), 1)

'Otherwise return the value matching the lookup value
'in the input column of the lookup array
Else
VLookupLeft = _
.Index(lookupArray.Offset(0, returnValueColumnOffset), _
.Match(lookupValue, lookupArray.Columns(lookupValueColumn), 0), 1)
End If

End With

End Function


Gord Dibben MS Excel MVP

On Sat, 5 Jul 2008 05:07:00 -0700, Ramesh Jaiswal (9867936636)
<(E-Mail Removed)> wrote:

>
>Dear Mike,
>
>Any other solution. Please confirm..... If possible plesae provde the
>alternet solution with example in formula..... It will help me a lot.
>
>Ramesh Jaiswal
>9867936636
>
>"Mike H" wrote:
>
>> It doesn't work, you cannot Vlookup and return a column to the left
>>
>> "Ramesh Jaiswal (9867936636)" wrote:
>>
>> > Dear Sandy,
>> >
>> > The Formula provided by you is of Index. I required the Vlookup formula.
>> > As describe i require the lookup in revers i.e. if any data form sheet 2 is
>> > present in second coloum in sheet 1, then i required the 1st data of the
>> > respective field form sheet 1 to be appear in the column 2 of sheet 2.
>> >
>> >
>> > =Vlookup(sheet1!$A$1:$B$8,-1,0)
>> >
>> > Ramesh Jaiswal
>> > 9867936636
>> >
>> >
>> > "Sandy Mann" wrote:
>> >
>> > > Does it have to be VLOOKUP()? INDEX() with the data in Sheet1 in A2:A5 will
>> > > do it thus:
>> > >
>> > > =INDEX(Sheet1!$B$2:$B$5,COUNTA(Sheet1!$B$2:$B$5)-(ROW()-ROW($A$2)))
>> > >
>> > > --
>> > > HTH
>> > >
>> > > Sandy
>> > > In Perth, the ancient capital of Scotland
>> > > and the crowning place of kings
>> > >
>> > > (E-Mail Removed)
>> > > Replace @mailinator.com with @tiscali.co.uk
>> > >
>> > >
>> > > "Ramesh Jaiswal (9867936636)" <Ramesh Jaiswal
>> > > (9867936636)@discussions.microsoft.com> wrote in message
>> > > news:5574D832-10DD-4162-B9CB-(E-Mail Removed)...
>> > > > How can Vlook work to provide the data in revers for example:
>> > > > in one excel sheet my data is,
>> > > > A B
>> > > > 12 Raj
>> > > > 55 Abhay
>> > > > 96 Vinod
>> > > > 75 Ganesh
>> > > >
>> > > > in another Excel sheet my data is,
>> > > > A B
>> > > > Abhay
>> > > > Vinod
>> > > > Raj
>> > > > Ganesh
>> > > >
>> > > > I want the A column to be lookup and the value of the first sheet column A
>> > > > should appear. Is it possible. I know it is possible if i cust the B
>> > > > column & past it in the A column and its work. But i do not want to cut
>> > > > the
>> > > > same.
>> > > > I have tried by no use. Please help me.
>> > > >
>> > > > Ramesh Jaiswal
>> > > > 9867936636
>> > > >
>> > >
>> > >
>> > >


 
Reply With Quote
 
sajay
Guest
Posts: n/a
 
      7th Jul 2008
put the formula in sheet 2 b2

=LOOKUP(A1,Sheet1!B1:B4,Sheet1!A1:A4)


fill down
sheet1
12 Raj
55 Abhay
96 Vinod
75 Ganesh

sheet2
Abhay
Vinod
Raj
Ganesh




"Ramesh Jaiswal (9867936636)" <Ramesh Jaiswal
(9867936636)@discussions.microsoft.com> wrote in message
news:5574D832-10DD-4162-B9CB-(E-Mail Removed)...
> How can Vlook work to provide the data in revers for example:
> in one excel sheet my data is,
> A B
> 12 Raj
> 55 Abhay
> 96 Vinod
> 75 Ganesh
>
> in another Excel sheet my data is,
> A B
> Abhay
> Vinod
> Raj
> Ganesh
>
> I want the A column to be lookup and the value of the first sheet column A
> should appear. Is it possible. I know it is possible if i cust the B
> column & past it in the A column and its work. But i do not want to cut
> the
> same.
> I have tried by no use. Please help me.
>
> Ramesh Jaiswal
> 9867936636


 
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
How to reverse data of a single column? Denish D Microsoft Excel Worksheet Functions 5 27th Aug 2009 07:47 PM
how to create a reverse lookup after you do a vlookup in a data Stacey Microsoft Excel Worksheet Functions 0 26th Mar 2009 01:25 AM
reverse the order of data in a column.(1,2,5 goes to 5,2,1) howard holtz Microsoft Excel Misc 2 21st Dec 2008 12:58 AM
Reverse Lookup column only =?Utf-8?B?TGlzYQ==?= Microsoft Excel Misc 7 19th Oct 2007 07:28 PM
reverse or invert column data =?Utf-8?B?RWdnbGU=?= Microsoft Excel Worksheet Functions 1 4th Oct 2006 01:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:43 PM.