Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default does an IF function only look up numbers & not text?

I am trying to calculate a forumula to show -- IF "yes" display 2, IF "no"
display 0.

I'm loosing my marbles over this simple function.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 160
Default does an IF function only look up numbers & not text?

try

if(A5="yes",2,0)
or
if(A5="yes",2,if(A5="no",0,""))

if you want text (2 or 0) to be displayed, put " (double quotes) around the
numbers.

good luck!



"CAPGirl" wrote:

I am trying to calculate a forumula to show -- IF "yes" display 2, IF "no"
display 0.

I'm loosing my marbles over this simple function.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default does an IF function only look up numbers & not text?

Patrick - thank you! I needed the double quotations!! Lifer for me today!!

Enjoy the remainder of your day!
Cheers!

"Patrick" wrote:

try

if(A5="yes",2,0)
or
if(A5="yes",2,if(A5="no",0,""))

if you want text (2 or 0) to be displayed, put " (double quotes) around the
numbers.

good luck!



"CAPGirl" wrote:

I am trying to calculate a forumula to show -- IF "yes" display 2, IF "no"
display 0.

I'm loosing my marbles over this simple function.

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
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
VLOOKUP should compare numbers stored as text to plain numbers. VLOOKUP - Numbers stored as text Excel Worksheet Functions 0 March 31st 06 05:53 PM
Using numbers as numbers in a cell having text Roland Excel Discussion (Misc queries) 2 March 11th 06 12:41 PM
Using Concatenate function to generate text in Text Box Mary S. Charts and Charting in Excel 1 December 14th 05 08:55 PM
How do I set up an IF function with text and numbers? Natalie Excel Worksheet Functions 7 November 9th 05 08:50 PM


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