A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Q on how to search for text in a column



 
 
Thread Tools Display Modes
  #1  
Old May 15th, 2009, 04:37 AM posted to microsoft.public.excel.misc
TheMilkGuy
external usenet poster
 
Posts: 46
Default Q on how to search for text in a column

Hi folks,

I'm not sure if this matters or not, but I'm using Excel 2007 to
create files used in 2007 and 2003.

I have a list of codes in a column with pertinent data in following
columns. Example of column 1:
CYAB
CYAM
CYYJ
CYYR
CYYT
OTHER

I would like to be able to enter a code on one worksheet and have that
input searched through the column for an exact match so that I can
refer to data along its row. If the code entered does not match any
in the list, I would like to be referred to the "OTHER" line.

I am stymied. Can anyone lend a hand?

Many thanks!
Craig
  #2  
Old May 15th, 2009, 04:54 AM posted to microsoft.public.excel.misc
T. Valko
external usenet poster
 
Posts: 15,759
Default Q on how to search for text in a column

Try this:

...........A..........B
1...CYAB....Blue
2...CYAM...Green
3...CYYJ....White
4...CYYR...Brown
5...CYYT...Red
6...OTHER...None

A10 = lookup value

=VLOOKUP(IF(COUNTIF(A1:A6,A10),A10,"Other"),A1:B6, 2,0)


--
Biff
Microsoft Excel MVP


"TheMilkGuy" wrote in message
...
Hi folks,

I'm not sure if this matters or not, but I'm using Excel 2007 to
create files used in 2007 and 2003.

I have a list of codes in a column with pertinent data in following
columns. Example of column 1:
CYAB
CYAM
CYYJ
CYYR
CYYT
OTHER

I would like to be able to enter a code on one worksheet and have that
input searched through the column for an exact match so that I can
refer to data along its row. If the code entered does not match any
in the list, I would like to be referred to the "OTHER" line.

I am stymied. Can anyone lend a hand?

Many thanks!
Craig



  #3  
Old May 15th, 2009, 02:36 PM posted to microsoft.public.excel.misc
TheMilkGuy
external usenet poster
 
Posts: 46
Default Q on how to search for text in a column

Hey, that looks great! Thanks Biff, can't wait to try it out.

Cheers!
Craig

On May 15, 12:54*am, "T. Valko" wrote:
Try this:

..........A..........B
1...CYAB....Blue
2...CYAM...Green
3...CYYJ....White
4...CYYR...Brown
5...CYYT...Red
6...OTHER...None

A10 = lookup value

=VLOOKUP(IF(COUNTIF(A1:A6,A10),A10,"Other"),A1:B6, 2,0)

--
Biff
Microsoft Excel MVP

"TheMilkGuy" wrote in message

...

Hi folks,


I'm not sure if this matters or not, but I'm using Excel 2007 to
create files used in 2007 and 2003.


I have a list of codes in a column with pertinent data in following
columns. *Example of column 1:
CYAB
CYAM
CYYJ
CYYR
CYYT
OTHER


I would like to be able to enter a code on one worksheet and have that
input searched through the column for an exact match so that I can
refer to data along its row. *If the code entered does not match any
in the list, I would like to be referred to the "OTHER" line.


I am stymied. *Can anyone lend a hand?


Many thanks!
Craig


  #4  
Old May 15th, 2009, 02:44 PM posted to microsoft.public.excel.misc
TheMilkGuy
external usenet poster
 
Posts: 46
Default Q on how to search for text in a column

Hey, that looks great! Thanks Biff, can't wait to try it out.

Cheers!
Craig

On May 15, 12:54*am, "T. Valko" wrote:
Try this:

..........A..........B
1...CYAB....Blue
2...CYAM...Green
3...CYYJ....White
4...CYYR...Brown
5...CYYT...Red
6...OTHER...None

A10 = lookup value

=VLOOKUP(IF(COUNTIF(A1:A6,A10),A10,"Other"),A1:B6, 2,0)

--
Biff
Microsoft Excel MVP

"TheMilkGuy" wrote in message

...

Hi folks,


I'm not sure if this matters or not, but I'm using Excel 2007 to
create files used in 2007 and 2003.


I have a list of codes in a column with pertinent data in following
columns. *Example of column 1:
CYAB
CYAM
CYYJ
CYYR
CYYT
OTHER


I would like to be able to enter a code on one worksheet and have that
input searched through the column for an exact match so that I can
refer to data along its row. *If the code entered does not match any
in the list, I would like to be referred to the "OTHER" line.


I am stymied. *Can anyone lend a hand?


Many thanks!
Craig


  #5  
Old May 15th, 2009, 03:15 PM posted to microsoft.public.excel.misc
TheMilkGuy
external usenet poster
 
Posts: 46
Default Q on how to search for text in a column

Hey, that looks great! Thanks Biff, can't wait to try it out.

Cheers!
Craig

On May 15, 12:54*am, "T. Valko" wrote:
Try this:

..........A..........B
1...CYAB....Blue
2...CYAM...Green
3...CYYJ....White
4...CYYR...Brown
5...CYYT...Red
6...OTHER...None

A10 = lookup value

=VLOOKUP(IF(COUNTIF(A1:A6,A10),A10,"Other"),A1:B6, 2,0)

--
Biff
Microsoft Excel MVP

"TheMilkGuy" wrote in message

...

Hi folks,


I'm not sure if this matters or not, but I'm using Excel 2007 to
create files used in 2007 and 2003.


I have a list of codes in a column with pertinent data in following
columns. *Example of column 1:
CYAB
CYAM
CYYJ
CYYR
CYYT
OTHER


I would like to be able to enter a code on one worksheet and have that
input searched through the column for an exact match so that I can
refer to data along its row. *If the code entered does not match any
in the list, I would like to be referred to the "OTHER" line.


I am stymied. *Can anyone lend a hand?


Many thanks!
Craig


  #6  
Old May 15th, 2009, 04:48 PM posted to microsoft.public.excel.misc
T. Valko
external usenet poster
 
Posts: 15,759
Default Q on how to search for text in a column

You're welcome!

--
Biff
Microsoft Excel MVP


"TheMilkGuy" wrote in message
...
Hey, that looks great! Thanks Biff, can't wait to try it out.

Cheers!
Craig

On May 15, 12:54 am, "T. Valko" wrote:
Try this:

..........A..........B
1...CYAB....Blue
2...CYAM...Green
3...CYYJ....White
4...CYYR...Brown
5...CYYT...Red
6...OTHER...None

A10 = lookup value

=VLOOKUP(IF(COUNTIF(A1:A6,A10),A10,"Other"),A1:B6, 2,0)

--
Biff
Microsoft Excel MVP

"TheMilkGuy" wrote in message

...

Hi folks,


I'm not sure if this matters or not, but I'm using Excel 2007 to
create files used in 2007 and 2003.


I have a list of codes in a column with pertinent data in following
columns. Example of column 1:
CYAB
CYAM
CYYJ
CYYR
CYYT
OTHER


I would like to be able to enter a code on one worksheet and have that
input searched through the column for an exact match so that I can
refer to data along its row. If the code entered does not match any
in the list, I would like to be referred to the "OTHER" line.


I am stymied. Can anyone lend a hand?


Many thanks!
Craig



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:14 PM.


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