#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Text in a IF formula

I want to use text as a logical in an IF formula which I am sure you must be
ablr to do but I can't seem to figure it out. For example if D19 is sch, i
want E19 to = liz but if D19 is TCh i want E19 to = lex or if D19 is POS then
E19 = mav etc.
Please can someone help me?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Text in a IF formula

Text values need to be enclosed in doulbe quotes. So, your formula should
look something like:

=IF(D19="sch","liz",IF(D19="tch","lex",IF(D19="pos ","mav","")))

HTH,
Elkar


"Be18" wrote:

I want to use text as a logical in an IF formula which I am sure you must be
ablr to do but I can't seem to figure it out. For example if D19 is sch, i
want E19 to = liz but if D19 is TCh i want E19 to = lex or if D19 is POS then
E19 = mav etc.
Please can someone help me?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 492
Default Text in a IF formula

=IF(D19="sch","liz",IF(D19="Tchi","lex",IF(D19="PO S","mav","")))
These are called Nested IF's. You can only use a maximum of seven of them in
one formula.
You can use text in all formulas, just use the double quotes in front and
behind the string, eg "Text"
Regards,
Alan.
"Be18" wrote in message
...
I want to use text as a logical in an IF formula which I am sure you must
be
ablr to do but I can't seem to figure it out. For example if D19 is sch, i
want E19 to = liz but if D19 is TCh i want E19 to = lex or if D19 is POS
then
E19 = mav etc.
Please can someone help me?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Text in a IF formula

Thanks for your reply. My formula looks very much like that, however when i
click out of the box it doesn't calculate and i can still see the formula!
Any extra help?
Thank u very much

"Elkar" wrote:

Text values need to be enclosed in doulbe quotes. So, your formula should
look something like:

=IF(D19="sch","liz",IF(D19="tch","lex",IF(D19="pos ","mav","")))

HTH,
Elkar


"Be18" wrote:

I want to use text as a logical in an IF formula which I am sure you must be
ablr to do but I can't seem to figure it out. For example if D19 is sch, i
want E19 to = liz but if D19 is TCh i want E19 to = lex or if D19 is POS then
E19 = mav etc.
Please can someone help me?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 492
Default Text in a IF formula

It sounds like the cell is formatted as text, select it and click in the
formula bar and hit F2,
Regards,
Alan.
"Be18" wrote in message
...
Thanks for your reply. My formula looks very much like that, however when
i
click out of the box it doesn't calculate and i can still see the formula!
Any extra help?
Thank u very much

"Elkar" wrote:

Text values need to be enclosed in doulbe quotes. So, your formula
should
look something like:

=IF(D19="sch","liz",IF(D19="tch","lex",IF(D19="pos ","mav","")))

HTH,
Elkar


"Be18" wrote:

I want to use text as a logical in an IF formula which I am sure you
must be
ablr to do but I can't seem to figure it out. For example if D19 is
sch, i
want E19 to = liz but if D19 is TCh i want E19 to = lex or if D19 is
POS then
E19 = mav etc.
Please can someone help me?




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Text in a IF formula

I think Alan meant
change the format from Text to General
select the cell
format|cells|Number tab|General category
then select the cell and hit F2, then enter. It's enough to force excel to
notice that it's really a formula.

Alan wrote:

It sounds like the cell is formatted as text, select it and click in the
formula bar and hit F2,
Regards,
Alan.
"Be18" wrote in message
...
Thanks for your reply. My formula looks very much like that, however when
i
click out of the box it doesn't calculate and i can still see the formula!
Any extra help?
Thank u very much

"Elkar" wrote:

Text values need to be enclosed in doulbe quotes. So, your formula
should
look something like:

=IF(D19="sch","liz",IF(D19="tch","lex",IF(D19="pos ","mav","")))

HTH,
Elkar


"Be18" wrote:

I want to use text as a logical in an IF formula which I am sure you
must be
ablr to do but I can't seem to figure it out. For example if D19 is
sch, i
want E19 to = liz but if D19 is TCh i want E19 to = lex or if D19 is
POS then
E19 = mav etc.
Please can someone help me?


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Text in a IF formula

Have a look in the help index for LOOKUP. And, Please quit posting the same
question all over the place. Not a good way to make friends.


--
Don Guillett
SalesAid Software

"Be18" wrote in message
...
I want to use text as a logical in an IF formula which I am sure you must
be
ablr to do but I can't seem to figure it out. For example if D19 is sch, i
want E19 to = liz but if D19 is TCh i want E19 to = lex or if D19 is POS
then
E19 = mav etc.
Please can someone help me?



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
Excel:Get concatenated text to be recognised as formula not text? yvette Excel Discussion (Misc queries) 5 January 15th 07 07:32 PM
how to convert a formula into text in order to display the formula Claudio Hartzstein Excel Discussion (Misc queries) 2 July 13th 06 09:58 AM
Copy formula so destination displays formula as text Omunene Excel Discussion (Misc queries) 2 September 30th 05 06:28 PM
Formula to count text and alert me if a text appears more than twi Mike Excel Discussion (Misc queries) 1 August 29th 05 09:53 PM
match cell text with text in formula Todd L. Excel Worksheet Functions 3 December 9th 04 08:11 PM


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

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"