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  

Why won't this function work?



 
 
Thread Tools Display Modes
  #1  
Old March 12th, 2010, 12:29 AM posted to microsoft.public.excel.worksheet.functions
Angelsnecropolis
external usenet poster
 
Posts: 20
Default Why won't this function work?

This function works:
=IF(B71="","",IF(B71=330,"Standard","Below Standard"))

But when I change "330" to "R4" it doesn't work. R4 is a number field that
has 330 in it. It doesn't seem to be recognizing the Value_if_False
statement. Any number will make it show "Standard."
=IF(B71="","",IF(B71=R4,"Standard","Below Standard"))

Your help is appreciated.
  #2  
Old March 12th, 2010, 12:59 AM posted to microsoft.public.excel.worksheet.functions
Dennis Tucker
external usenet poster
 
Posts: 67
Default Why won't this function work?

It works fine on v2007.

"Angelsnecropolis" wrote in
message ...
This function works:
=IF(B71="","",IF(B71=330,"Standard","Below Standard"))

But when I change "330" to "R4" it doesn't work. R4 is a number field that
has 330 in it. It doesn't seem to be recognizing the Value_if_False
statement. Any number will make it show "Standard."
=IF(B71="","",IF(B71=R4,"Standard","Below Standard"))

Your help is appreciated.


  #3  
Old March 12th, 2010, 02:21 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Why won't this function work?

Does R4 contain a formula?

If R4 contains a *text* number and B71 contains a numeric number then
B71=R4 will *always* be TRUE because in Excel text has a higher value than
numeric numbers.

A1 = X
A2 = 1,000,000

=A1A2 = TRUE

A1 formatted as TEXT
A1 = 1 (a text number)
A2 = 1,000,000

=A1A2 = TRUE

--
Biff
Microsoft Excel MVP


"Angelsnecropolis" wrote in
message ...
This function works:
=IF(B71="","",IF(B71=330,"Standard","Below Standard"))

But when I change "330" to "R4" it doesn't work. R4 is a number field that
has 330 in it. It doesn't seem to be recognizing the Value_if_False
statement. Any number will make it show "Standard."
=IF(B71="","",IF(B71=R4,"Standard","Below Standard"))

Your help is appreciated.



  #4  
Old March 12th, 2010, 05:00 AM posted to microsoft.public.excel.worksheet.functions
Fred Smith[_4_]
external usenet poster
 
Posts: 2,386
Default Why won't this function work?

It's likely that the "330" in R4 is text. What formula is used to produce
it?

Regards,
Fred

"Angelsnecropolis" wrote in
message ...
This function works:
=IF(B71="","",IF(B71=330,"Standard","Below Standard"))

But when I change "330" to "R4" it doesn't work. R4 is a number field that
has 330 in it. It doesn't seem to be recognizing the Value_if_False
statement. Any number will make it show "Standard."
=IF(B71="","",IF(B71=R4,"Standard","Below Standard"))

Your help is appreciated.


 




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 12:12 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.