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  

IF Formula Not Working



 
 
Thread Tools Display Modes
  #1  
Old July 31st, 2008, 11:03 PM posted to microsoft.public.excel.worksheet.functions
Novice
external usenet poster
 
Posts: 95
Default IF Formula Not Working

Hi,

When I use the IF formula in excel e.g. =if(h20,"CM","IN)
it displays the formula, not result (CM or IN)

Anyone knows why?

Thanks!
  #2  
Old July 31st, 2008, 11:05 PM posted to microsoft.public.excel.worksheet.functions
Marcelo
external usenet poster
 
Posts: 981
Default IF Formula Not Working

check if the cell is not formated as text.

change it to general.

Also maybe is a typo error but your formula needs a "(quote) after IN

=if(h20,"CM","IN")

hth

--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"novice" escreveu:

Hi,

When I use the IF formula in excel e.g. =if(h20,"CM","IN)
it displays the formula, not result (CM or IN)

Anyone knows why?

Thanks!

  #3  
Old July 31st, 2008, 11:06 PM posted to microsoft.public.excel.worksheet.functions
Niek Otten
external usenet poster
 
Posts: 2,533
Default IF Formula Not Working

Your cell was formatted as text before entering the formula.
Format as general AND re-enter the formula (F2, ENTER)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"novice" wrote in message ...
| Hi,
|
| When I use the IF formula in excel e.g. =if(h20,"CM","IN)
| it displays the formula, not result (CM or IN)
|
| Anyone knows why?
|
| Thanks!


  #4  
Old July 31st, 2008, 11:08 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default IF Formula Not Working

Sounds like the cell is formatted as TEXT. Change the format to GENERAL.
Then, with the cell still selected press function key F2 then hit ENTER.

--
Biff
Microsoft Excel MVP


"novice" wrote in message
...
Hi,

When I use the IF formula in excel e.g. =if(h20,"CM","IN)
it displays the formula, not result (CM or IN)

Anyone knows why?

Thanks!



  #5  
Old July 31st, 2008, 11:54 PM posted to microsoft.public.excel.worksheet.functions
Dave Peterson
external usenet poster
 
Posts: 19,791
Default IF Formula Not Working

And if you see the formula in each cell, maybe you're looking at formulas:

Tools|Options|view tab|Uncheck formulas

ctrl-`
control-backquote (near the 1/! on my USA keyboard) is the shortcut key

novice wrote:

Hi,

When I use the IF formula in excel e.g. =if(h20,"CM","IN)
it displays the formula, not result (CM or IN)

Anyone knows why?

Thanks!


--

Dave Peterson
 




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 07:39 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.