Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Returning a value from text

Hello everybody there,

i want to return a value for the cels in one column in corresponding cels in
an other column
the situation looks as follows:

bla bla 1
bla bla 1
bla bla 1
bla bla 1
ohlala 2
ohlala 2
ohlala 2
ohlala 2
ohlala 2
ohlala 2
tiens 3
tiens 3
bla bla 1
bla bla 1
bla bla 1

=IF(B2="bla bla";"1";ALS(B2="ohlala";"2";ALS(B2="tiens";"3")) )

When i try the same with text like
for example
Sands - over cons. or cemented clayey sands
=IF(D3="Sands - over cons. or cemented clayey Sands";"1")
this doesn't work
i get a return UNTRUE

can somebody help me?

thanks


Sam Suffit
Belgium
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Returning a value from text

=IF(B2="bla bla";"1";ALS(B2="ohlala";"2";ALS(B2="tiens";"3")) )
=IF(D3="Sands - over cons. or cemented clayey Sands";"1")

Both of the above have TEXT to compare with...
Most likely - or . in the text are creating problem for you... try to remove
them and test.

Also for your requirement use VLOOKUP like
=VLOOKUP(D2,A:B;2;False)
to get the value corresponding to D2 in Col A from Col B

"Sam Suffit" wrote:

Hello everybody there,

i want to return a value for the cels in one column in corresponding cels in
an other column
the situation looks as follows:

bla bla 1
bla bla 1
bla bla 1
bla bla 1
ohlala 2
ohlala 2
ohlala 2
ohlala 2
ohlala 2
ohlala 2
tiens 3
tiens 3
bla bla 1
bla bla 1
bla bla 1

=IF(B2="bla bla";"1";ALS(B2="ohlala";"2";ALS(B2="tiens";"3")) )

When i try the same with text like
for example
Sands - over cons. or cemented clayey sands
=IF(D3="Sands - over cons. or cemented clayey Sands";"1")
this doesn't work
i get a return UNTRUE

can somebody help me?

thanks


Sam Suffit
Belgium

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
returning a text value using a formula KVSmith59 Excel Worksheet Functions 1 August 26th 08 09:01 PM
Returning Text Simon y Glog Excel Discussion (Misc queries) 3 August 17th 07 10:30 AM
Finding text in a cell and returning a value based on that text [email protected] Excel Discussion (Misc queries) 5 January 10th 07 06:01 PM
Values Returning Text Gymclass14 via OfficeKB.com Excel Worksheet Functions 4 January 7th 07 01:16 AM
Returning text using a formula AJL Excel Worksheet Functions 1 October 10th 06 01:29 PM


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