PC Review


Reply
 
 
Ranjit kurian
Guest
Posts: n/a
 
      2nd Jul 2008
i need a macro code to identify the words which are mentioned inside the
bracket.
The macro should create a variable for the words inside the bracket then
compare the variable which are in bracket and pull out the items related to
that particular.

example:

Question:
sheet one contain the below details
(TNT)Titan co
(ANPS)Assocation
(SSTS)Socity

Sheet two contain the below details
coln1. coln2.
(TNT) TT
(ANPS) AA
(SSTS) SS


Answer: my macro should do a kind of vlookup b/w sheetone and sheettwo and
it should through the answer as shown below


TT
AA
SS
 
Reply With Quote
 
 
 
 
Charlie
Guest
Posts: n/a
 
      2nd Jul 2008
You can use a "Helper" column on sheet one. Enter the formula

=LEFT(A1,FIND(")",A1))

and drag down the column. Use the helper column in your VLookup.

Regards,
Charlie

"Ranjit kurian" wrote:

> i need a macro code to identify the words which are mentioned inside the
> bracket.
> The macro should create a variable for the words inside the bracket then
> compare the variable which are in bracket and pull out the items related to
> that particular.
>
> example:
>
> Question:
> sheet one contain the below details
> (TNT)Titan co
> (ANPS)Assocation
> (SSTS)Socity
>
> Sheet two contain the below details
> coln1. coln2.
> (TNT) TT
> (ANPS) AA
> (SSTS) SS
>
>
> Answer: my macro should do a kind of vlookup b/w sheetone and sheettwo and
> it should through the answer as shown below
>
>
> TT
> AA
> SS

 
Reply With Quote
 
Ranjit kurian
Guest
Posts: n/a
 
      2nd Jul 2008
hi Charlie

Thanks for the code it really helped me.

is there any way to remove the brackets example:

Question : (TNT)
Answer : TNT (remove the bracket, then give only the text)


"Charlie" wrote:

> You can use a "Helper" column on sheet one. Enter the formula
>
> =LEFT(A1,FIND(")",A1))
>
> and drag down the column. Use the helper column in your VLookup.
>
> Regards,
> Charlie
>
> "Ranjit kurian" wrote:
>
> > i need a macro code to identify the words which are mentioned inside the
> > bracket.
> > The macro should create a variable for the words inside the bracket then
> > compare the variable which are in bracket and pull out the items related to
> > that particular.
> >
> > example:
> >
> > Question:
> > sheet one contain the below details
> > (TNT)Titan co
> > (ANPS)Assocation
> > (SSTS)Socity
> >
> > Sheet two contain the below details
> > coln1. coln2.
> > (TNT) TT
> > (ANPS) AA
> > (SSTS) SS
> >
> >
> > Answer: my macro should do a kind of vlookup b/w sheetone and sheettwo and
> > it should through the answer as shown below
> >
> >
> > TT
> > AA
> > SS

 
Reply With Quote
 
Charlie
Guest
Posts: n/a
 
      2nd Jul 2008
=MID(A1,2,FIND(")",A1)-2)

"Ranjit kurian" wrote:

> hi Charlie
>
> Thanks for the code it really helped me.
>
> is there any way to remove the brackets example:
>
> Question : (TNT)
> Answer : TNT (remove the bracket, then give only the text)
>
>
> "Charlie" wrote:
>
> > You can use a "Helper" column on sheet one. Enter the formula
> >
> > =LEFT(A1,FIND(")",A1))
> >
> > and drag down the column. Use the helper column in your VLookup.
> >
> > Regards,
> > Charlie
> >
> > "Ranjit kurian" wrote:
> >
> > > i need a macro code to identify the words which are mentioned inside the
> > > bracket.
> > > The macro should create a variable for the words inside the bracket then
> > > compare the variable which are in bracket and pull out the items related to
> > > that particular.
> > >
> > > example:
> > >
> > > Question:
> > > sheet one contain the below details
> > > (TNT)Titan co
> > > (ANPS)Assocation
> > > (SSTS)Socity
> > >
> > > Sheet two contain the below details
> > > coln1. coln2.
> > > (TNT) TT
> > > (ANPS) AA
> > > (SSTS) SS
> > >
> > >
> > > Answer: my macro should do a kind of vlookup b/w sheetone and sheettwo and
> > > it should through the answer as shown below
> > >
> > >
> > > TT
> > > AA
> > > SS

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB bracket Andre Asus Motherboards 1 23rd Sep 2005 09:25 PM
Bracket No WaY!! =?Utf-8?B?a2VubnlrZWU=?= Microsoft Access Reports 2 3rd May 2005 05:51 PM
Bracket () =?Utf-8?B?V2lsbGlhbSBKdWFyYmU=?= Microsoft Outlook 1 24th Jan 2005 08:33 PM
Bracket use Chapsta Microsoft Excel Misc 4 19th Jul 2004 05:45 AM
Re: msi S-bracket Kt4 Luke Computer Hardware 0 7th Aug 2003 11:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:46 AM.