Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 505
Default Excel 2002: Can Vlookup search for identical references ?

Dear Sir,

I know that VLOOKUP can look for only the first or the last data for
identical references by way of choosing the fourth argument as TRUE or FALSE.

May I know if there is a way to search for all the data in a string with the
same references as illustrated below ?

What formula must be I key in at B13 and copy downwards to get the answer ?

A B
Table A
1 BTH100 85
2 BTH100 68
3 BTH100 27
4 BTH100 45
5 BTH103 320
6 BTH103 141
7 BTH108 278
8 BTH120 220
9 BTH120 145
10
11
12 Table B
13 BTH100 85
14 BTH100 68
15 BTH100 27
16 BTH103 320
17 BTH103 141
18 BTH103 N/A
19 BTH108 278
20 BTH120 220
21 BTH120 145


Thanks

Low

--
A36B58K641
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Excel 2002: Can Vlookup search for identical references ?

Hi,

Put this in B13 and the value you are looking for in D1

=INDEX($A$2:$B100,SMALL(IF($A$2:$B100=$D$1,ROW($A$ 2:$B100)-ROW($A$2)+1,ROW($B100)+1),ROW(A1)),2)

If you drag down it will find the first, second etc instance of your data
and relutn the value next to it in column B. Its an array so Ctrl+Shift+enter

it will start producing #Ref! errors when it fails to find a match so stop
dragging.

Mike


"Mr. Low" wrote:

Dear Sir,

I know that VLOOKUP can look for only the first or the last data for
identical references by way of choosing the fourth argument as TRUE or FALSE.

May I know if there is a way to search for all the data in a string with the
same references as illustrated below ?

What formula must be I key in at B13 and copy downwards to get the answer ?

A B
Table A
1 BTH100 85
2 BTH100 68
3 BTH100 27
4 BTH100 45
5 BTH103 320
6 BTH103 141
7 BTH108 278
8 BTH120 220
9 BTH120 145
10
11
12 Table B
13 BTH100 85
14 BTH100 68
15 BTH100 27
16 BTH103 320
17 BTH103 141
18 BTH103 N/A
19 BTH108 278
20 BTH120 220
21 BTH120 145


Thanks

Low

--
A36B58K641

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
Excel 2002: Can Vlookup search at left hand side of the table? Mr. Low Excel Discussion (Misc queries) 3 May 1st 07 03:09 PM
Excel 2002: Can Vlookup formula search for data with two reference Mr. Low Excel Discussion (Misc queries) 6 March 15th 07 02:48 PM
Excel 2002 : How to extract references from a list ? Mr. Low Excel Discussion (Misc queries) 6 December 2nd 06 10:48 PM
Office 2002 excel search ambernmatt Excel Discussion (Misc queries) 0 February 7th 06 12:55 AM
External data references in EXCEL 2002 JSPAIN Excel Discussion (Misc queries) 0 April 8th 05 03:25 PM


All times are GMT +1. The time now is 04:08 PM.

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"