Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF Statement not working

My formula IF(E5<G5, "Not Equal", "Equal") will only give the message "Not
Equal" even if the values are equal, however if i copy the formula into a new
worksheet and the values are equal it will return the Correct value of
"Equal".
Thanks for your help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default IF Statement not working

Hi,
If either E5 or G5 is a calculated value, there may be hidden decimals
present.
ie, the cell may display 123 but the actual value may be 123.000056
Dave.

"Barrett M" wrote:

My formula IF(E5<G5, "Not Equal", "Equal") will only give the message "Not
Equal" even if the values are equal, however if i copy the formula into a new
worksheet and the values are equal it will return the Correct value of
"Equal".
Thanks for your help.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default IF Statement not working

The valurs are two to three digit characters such as AB BC CD also _AB _BC _CD

Thanks again

"Dave" wrote:

Hi,
If either E5 or G5 is a calculated value, there may be hidden decimals
present.
ie, the cell may display 123 but the actual value may be 123.000056
Dave.

"Barrett M" wrote:

My formula IF(E5<G5, "Not Equal", "Equal") will only give the message "Not
Equal" even if the values are equal, however if i copy the formula into a new
worksheet and the values are equal it will return the Correct value of
"Equal".
Thanks for your help.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default IF Statement not working

Any Ideas?

"Barrett M" wrote:

The valurs are two to three digit characters such as AB BC CD also _AB _BC _CD

Thanks again

"Dave" wrote:

Hi,
If either E5 or G5 is a calculated value, there may be hidden decimals
present.
ie, the cell may display 123 but the actual value may be 123.000056
Dave.

"Barrett M" wrote:

My formula IF(E5<G5, "Not Equal", "Equal") will only give the message "Not
Equal" even if the values are equal, however if i copy the formula into a new
worksheet and the values are equal it will return the Correct value of
"Equal".
Thanks for your help.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default IF Statement not working

On May 5, 3:25 pm, Barrett M
wrote:
Any Ideas?

"Barrett M" wrote:
The valurs are two to three digit characters such as AB BC CD also _AB _BC _CD


Thanks again


"Dave" wrote:


Hi,
If either E5 or G5 is a calculated value, there may be hidden decimals
present.
ie, the cell may display 123 but the actual value may be 123.000056
Dave.


"Barrett M" wrote:


My formula IF(E5<G5, "Not Equal", "Equal") will only give the message "Not
Equal" even if the values are equal, however if i copy the formula into a new
worksheet and the values are equal it will return the Correct value of
"Equal".
Thanks for your help.


I seem to say this often.

Is this a file that was created in a different version of Excel than
you currently use? All sorts of stupid things like this happen.

Regardless, and you already said this works, the answer is probably:
Select All
Copy
Paste (in new file)


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default IF Statement not working

Have you checked for spaces or other non-printing characters?
Use =LEN(E5) and =LEN(G5) to check whether the string is longer than you
expected.
--
David Biddulph

"Barrett M" wrote in message
...
Any Ideas?

"Barrett M" wrote:

The valurs are two to three digit characters such as AB BC CD also _AB
_BC _CD

Thanks again

"Dave" wrote:

Hi,
If either E5 or G5 is a calculated value, there may be hidden decimals
present.
ie, the cell may display 123 but the actual value may be 123.000056
Dave.

"Barrett M" wrote:

My formula IF(E5<G5, "Not Equal", "Equal") will only give the
message "Not
Equal" even if the values are equal, however if i copy the formula
into a new
worksheet and the values are equal it will return the Correct value
of
"Equal".
Thanks for your help.



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default IF Statement not working

That was it. E5 is 3 and G5 is 5. Is there a way to add or remove spaces?

"David Biddulph" wrote:

Have you checked for spaces or other non-printing characters?
Use =LEN(E5) and =LEN(G5) to check whether the string is longer than you
expected.
--
David Biddulph

"Barrett M" wrote in message
...
Any Ideas?

"Barrett M" wrote:

The valurs are two to three digit characters such as AB BC CD also _AB
_BC _CD

Thanks again

"Dave" wrote:

Hi,
If either E5 or G5 is a calculated value, there may be hidden decimals
present.
ie, the cell may display 123 but the actual value may be 123.000056
Dave.

"Barrett M" wrote:

My formula IF(E5<G5, "Not Equal", "Equal") will only give the
message "Not
Equal" even if the values are equal, however if i copy the formula
into a new
worksheet and the values are equal it will return the Correct value
of
"Equal".
Thanks for your help.




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default IF Statement not working

REPLACE function
SUBSTITUTE function
TRIM function
CLEAN function
Edit/ Replace.
--
David Biddulph

"Barrett M" wrote in message
...
That was it. E5 is 3 and G5 is 5. Is there a way to add or remove spaces?

"David Biddulph" wrote:

Have you checked for spaces or other non-printing characters?
Use =LEN(E5) and =LEN(G5) to check whether the string is longer than you
expected.
--
David Biddulph

"Barrett M" wrote in message
...
Any Ideas?

"Barrett M" wrote:

The valurs are two to three digit characters such as AB BC CD also _AB
_BC _CD

Thanks again

"Dave" wrote:

Hi,
If either E5 or G5 is a calculated value, there may be hidden
decimals
present.
ie, the cell may display 123 but the actual value may be 123.000056
Dave.

"Barrett M" wrote:

My formula IF(E5<G5, "Not Equal", "Equal") will only give the
message "Not
Equal" even if the values are equal, however if i copy the formula
into a new
worksheet and the values are equal it will return the Correct
value
of
"Equal".
Thanks for your help.






  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default IF Statement not working

Worked Great Thanks for your Help !!

"David Biddulph" wrote:

REPLACE function
SUBSTITUTE function
TRIM function
CLEAN function
Edit/ Replace.
--
David Biddulph

"Barrett M" wrote in message
...
That was it. E5 is 3 and G5 is 5. Is there a way to add or remove spaces?

"David Biddulph" wrote:

Have you checked for spaces or other non-printing characters?
Use =LEN(E5) and =LEN(G5) to check whether the string is longer than you
expected.
--
David Biddulph

"Barrett M" wrote in message
...
Any Ideas?

"Barrett M" wrote:

The valurs are two to three digit characters such as AB BC CD also _AB
_BC _CD

Thanks again

"Dave" wrote:

Hi,
If either E5 or G5 is a calculated value, there may be hidden
decimals
present.
ie, the cell may display 123 but the actual value may be 123.000056
Dave.

"Barrett M" wrote:

My formula IF(E5<G5, "Not Equal", "Equal") will only give the
message "Not
Equal" even if the values are equal, however if i copy the formula
into a new
worksheet and the values are equal it will return the Correct
value
of
"Equal".
Thanks for your help.






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
If statement working only once Lime Excel Worksheet Functions 0 May 5th 08 03:58 AM
IF Statement not working after pasting data Dozaec Excel Discussion (Misc queries) 1 February 12th 08 05:14 PM
If Statement Not Working Telegirl Excel Worksheet Functions 9 May 12th 07 04:34 PM
IF statement not working TJAC Excel Discussion (Misc queries) 2 January 13th 06 01:08 PM
Wildcard Not Working in IF statement [email protected] Excel Worksheet Functions 6 January 9th 05 07:49 AM


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