#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Lookup

Hello, does anyone know how to use the LOOKUP formula to read a cell if it
contains something.

For example, I have a list showing cad engineer, then on the next row CAD,
the next row Cad technician and so on, all with different descriptions of CAD
In rowns A1:A100

I want my cell to equal CAD if call A1 contains CAD.

I also want it to read other words, like if it contains cad equal CAD, if it
contains ADMIN equal ADM etc....

Thank you! :)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Lookup

Fiona,


There are several ways but if you have a lot of values to look up then
perhaps a table something like:-

Col b Col C
Cad Ca
Car Cr
Admin Adm
This Tat

Then a formula

=VLOOKUP(A1,B$1:C$4,2,FALSE)


The formula looks in A1 compares it to the left column of B1_C4 and returns
the value iin the right column.

Mike

"Fiona" wrote:

Hello, does anyone know how to use the LOOKUP formula to read a cell if it
contains something.

For example, I have a list showing cad engineer, then on the next row CAD,
the next row Cad technician and so on, all with different descriptions of CAD
In rowns A1:A100

I want my cell to equal CAD if call A1 contains CAD.

I also want it to read other words, like if it contains cad equal CAD, if it
contains ADMIN equal ADM etc....

Thank you! :)

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Lookup

Thanks Mike, that's nearly it, but it becomes unstuck when I have, for
example CAD Engineer in one cell which will be read as CAD, but I also want a
seperate cell for Engineer, but this will also be read as CAD, which would be
incorrect.

I did think I could have something like =IF(C3 "*"&CAD&"*",CAD),
or =IF(C3"*"&HIGHWAY&"*",HIGH)
Am I close?
Thank you for your help.

"Mike H" wrote:

Fiona,


There are several ways but if you have a lot of values to look up then
perhaps a table something like:-

Col b Col C
Cad Ca
Car Cr
Admin Adm
This Tat

Then a formula

=VLOOKUP(A1,B$1:C$4,2,FALSE)


The formula looks in A1 compares it to the left column of B1_C4 and returns
the value iin the right column.

Mike

"Fiona" wrote:

Hello, does anyone know how to use the LOOKUP formula to read a cell if it
contains something.

For example, I have a list showing cad engineer, then on the next row CAD,
the next row Cad technician and so on, all with different descriptions of CAD
In rowns A1:A100

I want my cell to equal CAD if call A1 contains CAD.

I also want it to read other words, like if it contains cad equal CAD, if it
contains ADMIN equal ADM etc....

Thank you! :)

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Lookup

Fiona,

It may be that I'm not understanding correctly but what you describe is no
problem to the original idea I suggested, just extenf the table thus:-

Cad Ca
Car Cr
Admin Adm
This Tat
Cad Engineer Cad
Engineer Cad


An then alte the range in the formula for the array

Mike

"Fiona" wrote:

Thanks Mike, that's nearly it, but it becomes unstuck when I have, for
example CAD Engineer in one cell which will be read as CAD, but I also want a
seperate cell for Engineer, but this will also be read as CAD, which would be
incorrect.

I did think I could have something like =IF(C3 "*"&CAD&"*",CAD),
or =IF(C3"*"&HIGHWAY&"*",HIGH)
Am I close?
Thank you for your help.

"Mike H" wrote:

Fiona,


There are several ways but if you have a lot of values to look up then
perhaps a table something like:-

Col b Col C
Cad Ca
Car Cr
Admin Adm
This Tat

Then a formula

=VLOOKUP(A1,B$1:C$4,2,FALSE)


The formula looks in A1 compares it to the left column of B1_C4 and returns
the value iin the right column.

Mike

"Fiona" wrote:

Hello, does anyone know how to use the LOOKUP formula to read a cell if it
contains something.

For example, I have a list showing cad engineer, then on the next row CAD,
the next row Cad technician and so on, all with different descriptions of CAD
In rowns A1:A100

I want my cell to equal CAD if call A1 contains CAD.

I also want it to read other words, like if it contains cad equal CAD, if it
contains ADMIN equal ADM etc....

Thank you! :)

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
Variable Lookup/Double Lookup Ryan[_2_] Excel Worksheet Functions 8 May 14th 07 09:44 PM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM
How do I lookup and return different values when the lookup value. kg Excel Discussion (Misc queries) 1 January 20th 05 12:53 AM


All times are GMT +1. The time now is 03:55 PM.

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"