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 » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Using If function with text values



 
 
Thread Tools Display Modes
  #1  
Old June 23rd, 2009, 05:24 PM posted to microsoft.public.excel.worksheet.functions
IF function with Text
external usenet poster
 
Posts: 1
Default Using If function with text values

I'm trying to use an if function with the logical test being, for example,

=IF(A10=apples, [5], [2])

Is there anyway to utilize the IF funciton using a name or text value for
the logical test?

Thanks!
  #2  
Old June 23rd, 2009, 05:29 PM posted to microsoft.public.excel.worksheet.functions
eduardo
external usenet poster
 
Posts: 2,131
Default Using If function with text values

Hi
=if(A10="apples,5,2)

if this helps please click yes, thanks

"IF function with Text" wrote:

I'm trying to use an if function with the logical test being, for example,

=IF(A10=apples, [5], [2])

Is there anyway to utilize the IF funciton using a name or text value for
the logical test?

Thanks!

  #3  
Old June 23rd, 2009, 05:31 PM posted to microsoft.public.excel.worksheet.functions
Michael Arch
external usenet poster
 
Posts: 12
Default Using If function with text values

The text must be in quotes:
=IF(A10="apples", [5], [2])

--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"IF function with Text" wrote:

I'm trying to use an if function with the logical test being, for example,

=IF(A10=apples, [5], [2])

Is there anyway to utilize the IF funciton using a name or text value for
the logical test?

Thanks!

  #4  
Old June 23rd, 2009, 05:36 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Using If function with text values

Text string should always be inside double quotes

=IF(A10="apples",5,2)

If this post helps click Yes
---------------
Jacob Skaria


"IF function with Text" wrote:

I'm trying to use an if function with the logical test being, for example,

=IF(A10=apples, [5], [2])

Is there anyway to utilize the IF funciton using a name or text value for
the logical test?

Thanks!

  #5  
Old June 23rd, 2009, 05:41 PM posted to microsoft.public.excel.worksheet.functions
eduardo
external usenet poster
 
Posts: 2,131
Default Using If function with text values

OPPs I missed a quote

=if(A10="apples",5,2)


"Eduardo" wrote:

Hi
=if(A10="apples,5,2)

if this helps please click yes, thanks

"IF function with Text" wrote:

I'm trying to use an if function with the logical test being, for example,

=IF(A10=apples, [5], [2])

Is there anyway to utilize the IF funciton using a name or text value for
the logical test?

Thanks!

  #6  
Old June 24th, 2009, 12:26 AM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default Using If function with text values

=(A10="apples")*3+2


"IF function with Text" wrote:

I'm trying to use an if function with the logical test being, for example,

=IF(A10=apples, [5], [2])

Is there anyway to utilize the IF funciton using a name or text value for
the logical test?

Thanks!

 




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 11:08 AM.


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