#1   Report Post  
Posted to microsoft.public.excel.programming
Joe Joe is offline
external usenet poster
 
Posts: 476
Default Formula ?

I got 3 columns in excel. First two is ID & Name, third column is a subset of
the 2nd Column. Now, I want the corresponding ID's for my 3rd column (which
should be looked up in first 2 columns) in my 4th column.

ID,Name,Subset-name,Subset-ID?

--
Failing to plan is planning to fail
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Formula ?

On Sun, 25 Apr 2010 01:24:04 -0700, Joe
wrote:

I got 3 columns in excel. First two is ID & Name, third column is a subset of
the 2nd Column. Now, I want the corresponding ID's for my 3rd column (which
should be looked up in first 2 columns) in my 4th column.

ID,Name,Subset-name,Subset-ID?


Assuming your data are in columns A to C from row 2 to row 100.

In cell D2, try the following formula:
=INDEX(A$2:A$100,MATCH(C2,B$2:B$100,0)

Change the 100's to fit the size of your data in columns A (and B).
Copy the formula down column D as far as you have data in column C.

Hope this helps / Lars-Åke

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Formula ?

Try the INDEX() MATCH() combination instead of VLOOKUP() when the lookup
value is not the 1st column in the array...

=INDEX(A:A,MATCH(C2,B:B,0))

--
Jacob (MVP - Excel)


"Joe" wrote:

I got 3 columns in excel. First two is ID & Name, third column is a subset of
the 2nd Column. Now, I want the corresponding ID's for my 3rd column (which
should be looked up in first 2 columns) in my 4th column.

ID,Name,Subset-name,Subset-ID?

--
Failing to plan is planning to fail

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
Regression Leverage Formula (Jerry W. Lewis or Mike Middleton)already have DFITS formula PJ[_3_] Excel Worksheet Functions 2 June 2nd 10 03:45 PM
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue[_2_] Excel Discussion (Misc queries) 2 July 11th 07 06:08 PM
copy formula down a column and have cell references change within formula brad New Users to Excel 5 May 13th 07 04:38 PM
Formula expected end of statement error, typing formula into cell as part of VBA macro [email protected] Excel Programming 1 July 20th 06 07:58 PM
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


All times are GMT +1. The time now is 01:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"