#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default vlookup?

Hi,
i have a table with some values in a column as follow:
column A | column B
---------------------------
text 1 |
text 2 |
text 3 |

i would like a formula that recognise some key words in column A and return
in column B a value

so for example if text 1 has the word fire detection room A i should have in
column B a text that says fire detector,
if text 1 says gas detector room 2 i would like to have in column B gas
detection and so on.
is there anyone that can help with this please?
thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default vlookup?

You mean column B should show the first 2 words of Column A ?

Or you have some other way of relating the 2 columns ?

NickHK

"massi" wrote in message
...
Hi,
i have a table with some values in a column as follow:
column A | column B
---------------------------
text 1 |
text 2 |
text 3 |

i would like a formula that recognise some key words in column A and

return
in column B a value

so for example if text 1 has the word fire detection room A i should have

in
column B a text that says fire detector,
if text 1 says gas detector room 2 i would like to have in column B gas
detection and so on.
is there anyone that can help with this please?
thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default vlookup?

Hi NickHK,

ideally it should be a way to relate the two columns.

the formula should see if a particular word is in column A and return an
other word in column B.

if I have for example
Smoke Detection AFT Equipment Roon R8 - Accomodations Upper Deck in column A
i would like to have in column B Smoke Detector (not Detection)
if I have
PESD Manual Push Button On CCR in colunmn A i would like to have Manual push
button in column B








"NickHK" wrote:

You mean column B should show the first 2 words of Column A ?

Or you have some other way of relating the 2 columns ?

NickHK

"massi" wrote in message
...
Hi,
i have a table with some values in a column as follow:
column A | column B
---------------------------
text 1 |
text 2 |
text 3 |

i would like a formula that recognise some key words in column A and

return
in column B a value

so for example if text 1 has the word fire detection room A i should have

in
column B a text that says fire detector,
if text 1 says gas detector room 2 i would like to have in column B gas
detection and so on.
is there anyone that can help with this please?
thanks in advance




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default vlookup?

Excel cannot "guess" what you want, so you will have to provide a list
somewhere. At the least, it would need to relate "*Smoke Detection*" to
"Smoke Detector" and "*Manual Push Button*" to "Manual push button".
You will need to make this list.

Once you have that, you can search column A for the "*SomeText*" value, then
return the required value.

NickHK

"massi" wrote in message
...
Hi NickHK,

ideally it should be a way to relate the two columns.

the formula should see if a particular word is in column A and return an
other word in column B.

if I have for example
Smoke Detection AFT Equipment Roon R8 - Accomodations Upper Deck in column

A
i would like to have in column B Smoke Detector (not Detection)
if I have
PESD Manual Push Button On CCR in colunmn A i would like to have Manual

push
button in column B








"NickHK" wrote:

You mean column B should show the first 2 words of Column A ?

Or you have some other way of relating the 2 columns ?

NickHK

"massi" wrote in message
...
Hi,
i have a table with some values in a column as follow:
column A | column B
---------------------------
text 1 |
text 2 |
text 3 |

i would like a formula that recognise some key words in column A and

return
in column B a value

so for example if text 1 has the word fire detection room A i should

have
in
column B a text that says fire detector,
if text 1 says gas detector room 2 i would like to have in column B

gas
detection and so on.
is there anyone that can help with this please?
thanks in advance






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default vlookup?

ok. i do my list with the 4 different options for column B.

i guess i need a vlookup to check the value of column A. the question is can
i do a vlookup to check for more than one values?

logically the thing would be :
IF column A contain Smoke Detector THAN put in column B Smoke Detection
IF column A contain Manula push Button THAN put in column B Manual push Button
etc...

the problem is that i don't know hw to do this using the excel formulas


"NickHK" wrote:

Excel cannot "guess" what you want, so you will have to provide a list
somewhere. At the least, it would need to relate "*Smoke Detection*" to
"Smoke Detector" and "*Manual Push Button*" to "Manual push button".
You will need to make this list.

Once you have that, you can search column A for the "*SomeText*" value, then
return the required value.

NickHK

"massi" wrote in message
...
Hi NickHK,

ideally it should be a way to relate the two columns.

the formula should see if a particular word is in column A and return an
other word in column B.

if I have for example
Smoke Detection AFT Equipment Roon R8 - Accomodations Upper Deck in column

A
i would like to have in column B Smoke Detector (not Detection)
if I have
PESD Manual Push Button On CCR in colunmn A i would like to have Manual

push
button in column B








"NickHK" wrote:

You mean column B should show the first 2 words of Column A ?

Or you have some other way of relating the 2 columns ?

NickHK

"massi" wrote in message
...
Hi,
i have a table with some values in a column as follow:
column A | column B
---------------------------
text 1 |
text 2 |
text 3 |

i would like a formula that recognise some key words in column A and
return
in column B a value

so for example if text 1 has the word fire detection room A i should

have
in
column B a text that says fire detector,
if text 1 says gas detector room 2 i would like to have in column B

gas
detection and so on.
is there anyone that can help with this please?
thanks in advance








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default vlookup?

it would be THEN not THAN... :-)

"massi" wrote:

ok. i do my list with the 4 different options for column B.

i guess i need a vlookup to check the value of column A. the question is can
i do a vlookup to check for more than one values?

logically the thing would be :
IF column A contain Smoke Detector THAN put in column B Smoke Detection
IF column A contain Manula push Button THAN put in column B Manual push Button
etc...

the problem is that i don't know hw to do this using the excel formulas


"NickHK" wrote:

Excel cannot "guess" what you want, so you will have to provide a list
somewhere. At the least, it would need to relate "*Smoke Detection*" to
"Smoke Detector" and "*Manual Push Button*" to "Manual push button".
You will need to make this list.

Once you have that, you can search column A for the "*SomeText*" value, then
return the required value.

NickHK

"massi" wrote in message
...
Hi NickHK,

ideally it should be a way to relate the two columns.

the formula should see if a particular word is in column A and return an
other word in column B.

if I have for example
Smoke Detection AFT Equipment Roon R8 - Accomodations Upper Deck in column

A
i would like to have in column B Smoke Detector (not Detection)
if I have
PESD Manual Push Button On CCR in colunmn A i would like to have Manual

push
button in column B








"NickHK" wrote:

You mean column B should show the first 2 words of Column A ?

Or you have some other way of relating the 2 columns ?

NickHK

"massi" wrote in message
...
Hi,
i have a table with some values in a column as follow:
column A | column B
---------------------------
text 1 |
text 2 |
text 3 |

i would like a formula that recognise some key words in column A and
return
in column B a value

so for example if text 1 has the word fire detection room A i should

have
in
column B a text that says fire detector,
if text 1 says gas detector room 2 i would like to have in column B

gas
detection and so on.
is there anyone that can help with this please?
thanks in advance






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
If (Vlookup 0) working, but what if Vlookup cell does not exist Steve Excel Worksheet Functions 18 November 18th 09 07:33 PM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Which is faster: VLOOKUP-worksheet or VB-array VLOOKUP? erikhs[_20_] Excel Programming 1 August 6th 06 06:18 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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