#1   Report Post  
BSLAUTOMATION
 
Posts: n/a
Default Formula / Macro Help


Hi,

Can anyone help me?

I have some text in cell A1 and i wish it to search in column A on 5
other worksheets for that reference. If it then finds a match on one of
the sheets i want it to tell me on sheet1 in B1 that its in worksheet 4
for example

ie

sheet1 A1 = Toy Car

sheet4 A335 = Toy Car

sheet1 B1 = Sheet4

Can this be done??

Any help appreciated

Regards

Craig


--
BSLAUTOMATION
------------------------------------------------------------------------
BSLAUTOMATION's Profile: http://www.excelforum.com/member.php...fo&userid=7611
View this thread: http://www.excelforum.com/showthread...hreadid=400755

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

One way is to just look, and look again and look again...

Here's an example that just looks through 2 sheets:

=IF(ISNUMBER(MATCH(A1,Sheet1!A:A,0)),"sheet1",
IF(ISNUMBER(MATCH(A1,Sheet2!A:A,0)),"Sheet2",
"neither"))

(all one cell)

You get 7 levels of looking until you have to use a different formula.

BSLAUTOMATION wrote:

Hi,

Can anyone help me?

I have some text in cell A1 and i wish it to search in column A on 5
other worksheets for that reference. If it then finds a match on one of
the sheets i want it to tell me on sheet1 in B1 that its in worksheet 4
for example

ie

sheet1 A1 = Toy Car

sheet4 A335 = Toy Car

sheet1 B1 = Sheet4

Can this be done??

Any help appreciated

Regards

Craig

--
BSLAUTOMATION
------------------------------------------------------------------------
BSLAUTOMATION's Profile: http://www.excelforum.com/member.php...fo&userid=7611
View this thread: http://www.excelforum.com/showthread...hreadid=400755


--

Dave Peterson
  #3   Report Post  
BSLAUTOMATION
 
Posts: n/a
Default


Cheers Dave,

Great help!

Is there another function other than MATCH - i was using the SEARCH
function but
i have to change A1 to the actual text ie "Toy Car"
=IF(ISNUMBER(MATCH(A1,Sheet2!A:A,0)),"sheet2",
to
=IF(ISNUMBER(SEARCH("Toy Car",Sheet2!A:A,0)),"sheet2",

Reason im doing this is so that if someone put "Dinky Toy Car" into A1
it would still find "Toy Car" on sheet2

Any help??

Cheers

Craig





Dave Peterson Wrote:
One way is to just look, and look again and look again...

Here's an example that just looks through 2 sheets:

=IF(ISNUMBER(MATCH(A1,Sheet1!A:A,0)),"sheet1",
IF(ISNUMBER(MATCH(A1,Sheet2!A:A,0)),"Sheet2",
"neither"))

(all one cell)

You get 7 levels of looking until you have to use a different formula.



--
BSLAUTOMATION
------------------------------------------------------------------------
BSLAUTOMATION's Profile: http://www.excelforum.com/member.php...fo&userid=7611
View this thread: http://www.excelforum.com/showthread...hreadid=400755

  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

Can you strip the unnecessary text out of the cell (remove "dinky " in this
case)?

And do you have rules that can be applied in general--always take the last two
words????



BSLAUTOMATION wrote:

Cheers Dave,

Great help!

Is there another function other than MATCH - i was using the SEARCH
function but
i have to change A1 to the actual text ie "Toy Car"
=IF(ISNUMBER(MATCH(A1,Sheet2!A:A,0)),"sheet2",
to
=IF(ISNUMBER(SEARCH("Toy Car",Sheet2!A:A,0)),"sheet2",

Reason im doing this is so that if someone put "Dinky Toy Car" into A1
it would still find "Toy Car" on sheet2

Any help??

Cheers

Craig

Dave Peterson Wrote:
One way is to just look, and look again and look again...

Here's an example that just looks through 2 sheets:

=IF(ISNUMBER(MATCH(A1,Sheet1!A:A,0)),"sheet1",
IF(ISNUMBER(MATCH(A1,Sheet2!A:A,0)),"Sheet2",
"neither"))

(all one cell)

You get 7 levels of looking until you have to use a different formula.


--
BSLAUTOMATION
------------------------------------------------------------------------
BSLAUTOMATION's Profile: http://www.excelforum.com/member.php...fo&userid=7611
View this thread: http://www.excelforum.com/showthread...hreadid=400755


--

Dave Peterson
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
moving the formula "average" over one column in a macro drumstu Excel Worksheet Functions 1 August 23rd 05 08:01 PM
macro with F9 Kenny Excel Discussion (Misc queries) 1 August 3rd 05 02:41 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Insert macro into formula Paul Excel Worksheet Functions 1 May 12th 05 08:25 PM
Fill Formula - Macro Cathy U Excel Discussion (Misc queries) 2 February 22nd 05 04:48 PM


All times are GMT +1. The time now is 08:23 AM.

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"