#1   Report Post  
atxcomputers
 
Posts: n/a
Default Search help


Hi,

Tried a few functions for this but i cant get it to do what im looking
for!

I have 8 worksheets and Im trying to get a specific reference from A1
on sheet1.

The other 7 pages has all the info in column A

I want B2 to tell me the reference it found out of the text in A1, if
its possible

Example:

sheet1
A1 = abc toy car pt no 789DIN1

on sheet2
A1= 785DIN1955
A2= 786DIN1966
A3= 789DIN1977

This is the closest reference on all of my worksheets so i want

Sheet1
B2 = 789DIN1977

If it cant be done then i would like the same if
Sheet1
A1= abc toy car pt no 789DIN1977

Ive tried using the Search and Match function but i dont think it can
be done using these (cus i dont know enough)

Any help?


--
atxcomputers
------------------------------------------------------------------------
atxcomputers's Profile: http://www.excelforum.com/member.php...o&userid=26852
View this thread: http://www.excelforum.com/showthread...hreadid=469364

  #2   Report Post  
Stefi
 
Posts: n/a
Default

First you have to separate the part No from A1 into a different cell, say A2:
=RIGHT(A1,7) (or use another appropriate function if not always 7 characters
are given or type in directly the partial part No to be found).

In Sheet2 sort by column A in descending order!
Then in Sheet1, B2:
=INDEX(Sheet2!A1:A3;MATCH(B1;Sheet2!A1:A3;-1);1)

Replace A3 to An as necessary if you have n rows in Sheet2!

Regards,
Stefi

€žatxcomputers€ť ezt Ă*rta:


Hi,

Tried a few functions for this but i cant get it to do what im looking
for!

I have 8 worksheets and Im trying to get a specific reference from A1
on sheet1.

The other 7 pages has all the info in column A

I want B2 to tell me the reference it found out of the text in A1, if
its possible

Example:

sheet1
A1 = abc toy car pt no 789DIN1

on sheet2
A1= 785DIN1955
A2= 786DIN1966
A3= 789DIN1977

This is the closest reference on all of my worksheets so i want

Sheet1
B2 = 789DIN1977

If it cant be done then i would like the same if
Sheet1
A1= abc toy car pt no 789DIN1977

Ive tried using the Search and Match function but i dont think it can
be done using these (cus i dont know enough)

Any help?


--
atxcomputers
------------------------------------------------------------------------
atxcomputers's Profile: http://www.excelforum.com/member.php...o&userid=26852
View this thread: http://www.excelforum.com/showthread...hreadid=469364


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
Wildcard search functions within Vlookup Benn Excel Worksheet Functions 2 July 26th 05 02:12 PM
FAQ Spreadsheet with search function murphyz Excel Discussion (Misc queries) 0 March 19th 05 10:24 PM
how to use the search dialog box ? cyrille New Users to Excel 2 February 17th 05 11:28 PM
how to search in excel with condition David Excel Discussion (Misc queries) 1 February 8th 05 10:23 PM
Search problems BigPig Excel Worksheet Functions 0 December 29th 04 09:11 PM


All times are GMT +1. The time now is 06:22 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"