LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
klee
 
Posts: n/a
Default formula gives 2 different answers


hello

I've got a formula which gives me a wrong answer on some occusions. The
formula is below-

=IF(A1=A2,same,diff)

- if i type '1' in cell A1 and '1' in cell A2, it gives me the answer
'same' which is correct.

- if i type 'a' in cell A1 and 'a' in cell A2, it gives me the answer
'same' which is correct.

- if i type '1' in cell A1 and 'a' in cell A2, it gives me the answer
'diff' which is correct.

- if i type 'a' in cell A1 and '1' in cell A2, it gives me the answer
'diff' which is correct.

- if i type '1' in cell A1 and leave cell A2 BLANK, it gives me the
answer 'diff' which is correct.

- if i leave cell A1 BLANK and type in '1' in cell A2, it gives me the
answer 'diff' which is correct.

However!

- if i type 'a' in cell A1 and leave cell A2 BLANK, it gives me the
answer 'same' which is INCORRECT.

- if i leave cell A1 BLANK and type in 'a' in cell A2, it gives me the
answer 'same' which is INCORRECT.

It gives me the wrong answer if i have a 'blank' with a 'letter'. Does
anyone know why?

I've copied the same formula onto a new spreadsheet but it gives me the
correct answer. So it seems its something on the 1st sheet it doesn't
like.

I've also noticed if a type 'TRUE' or 'FALSE' in the 1st sheet it'll
convert it to the value of 1 or 0. However on the 2nd sheet the values
do not get converted. - not sure if this helps any1 thanks


--
klee
------------------------------------------------------------------------
klee's Profile: http://www.excelforum.com/member.php...o&userid=30304
View this thread: http://www.excelforum.com/showthread...hreadid=499685

 
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
Is it possible? DakotaNJ Excel Worksheet Functions 25 September 18th 06 09:30 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
adding row to forumla carrera Excel Discussion (Misc queries) 9 August 23rd 05 10:24 PM
Recalculating Formula - Getting the wrong answers skherzog Excel Discussion (Misc queries) 2 June 29th 05 12:31 PM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM


All times are GMT +1. The time now is 06:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"