Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default how to do this vlookup

hi all,
my first file
==========

(a) (b) (c) (d)
sno name pincode area

1 arun 123456 *
2 kumar 123457 *
3 raja 123458 *

note:
====
* how to get area from my second file (like vlook up)
conditions:
========
with out change fields order in both file.

my second file
===========

(a) (b)
area pincode

abc 123456
bcd 123458
cde 123457


my third file
==========

(a) (b) (c) (d)
sno name area pincode

1 arun * 123456
2 kumar * 123457
3 raja * 123458


note:
====
* how to get area from my second file (like vlook up)
conditions:
========
with out change fields order in both file.


pls anyone help this questions . i am awaiting for urs reply.


Regards,
vinci

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default how to do this vlookup

Obviously you can't use Vlookup since what you're searching for is in the
second column, and you want it to return whats in the first column?

I use =INDEX(MATCH())

so say =INDEX($A$2:$A$100,MATCH(C2,$B$2:$B$100,0))

This will find which row the contents of C2 are (First file, 123456) in the
array in column B (obviously change this reference to column B in your second
file) and from your example this will find the number (123456) in the first
cell (B2) and return the value 1.
The index then looks at the first column ("A2:A100") and return the first
value, which is abc.


"vinci" wrote:

hi all,
my first file
==========

(a) (b) (c) (d)
sno name pincode area

1 arun 123456 *
2 kumar 123457 *
3 raja 123458 *

note:
====
* how to get area from my second file (like vlook up)
conditions:
========
with out change fields order in both file.

my second file
===========

(a) (b)
area pincode

abc 123456
bcd 123458
cde 123457


my third file
==========

(a) (b) (c) (d)
sno name area pincode

1 arun * 123456
2 kumar * 123457
3 raja * 123458


note:
====
* how to get area from my second file (like vlook up)
conditions:
========
with out change fields order in both file.


pls anyone help this questions . i am awaiting for urs reply.


Regards,
vinci


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default how to do this vlookup

thank u sir,
my first file problem was solve. but do the third
one file.

regards,
vinci






On Mar 14, 7:55 pm, PaulW wrote:
Obviously you can't use Vlookup since what you're searching for is in the
second column, and you want it to return whats in the first column?

I use =INDEX(MATCH())

so say =INDEX($A$2:$A$100,MATCH(C2,$B$2:$B$100,0))

This will find which row the contents of C2 are (First file, 123456) in the
array in column B (obviously change this reference to column B in your second
file) and from your example this will find the number (123456) in the first
cell (B2) and return the value 1.
The index then looks at the first column ("A2:A100") and return the first
value, which is abc.

"vinci" wrote:
hi all,
my first file
==========


(a) (b) (c) (d)
sno name pincode area


1 arun 123456 *
2 kumar 123457 *
3 raja 123458 *


note:
====
* how to get area from my second file (like vlook up)
conditions:
========
with out change fields order in both file.


my second file
===========


(a) (b)
area pincode


abc 123456
bcd 123458
cde 123457


my third file
==========


(a) (b) (c) (d)
sno name area pincode


1 arun * 123456
2 kumar * 123457
3 raja * 123458


note:
====
* how to get area from my second file (like vlook up)
conditions:
========
with out change fields order in both file.


pls anyone help this questions . i am awaiting for urs reply.


Regards,
vinci



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
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Which is faster: VLOOKUP-worksheet or VB-array VLOOKUP? erikhs[_20_] Excel Programming 1 August 6th 06 06:18 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 04:21 AM.

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"