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 function returning incorrect result

I am trying to perform what I think should be a simple function - trying to
convert an alpha character to a specified numeric value. I have a column that
contains either a C, E or N that I need to assign a numeric value to as
follows: C=1, E or N=0. I My column header (A1) is C and I am using the IF
function to do this conversion. The function popup window it is putting the
correct result but when I press okay the wrong value is displayed. For
example my value in A2 is C, so I set the formula up to say if A2=A1 is true,
value returned should be 1, if A2=A1 is false, value returned should be 0.
The formula is telling me that this is a true statement, but it keeps
returning the false value of 0. I am on Windows 2000 Professional with Excel
2002. This should be a simple conversion, but it will not work and it is
driving me crazy. I am sure I must be doing something obviously wrong. Is it
because I am attempting to compare text to text with the = sign? Any help or
suggestions would be greatly appreciated. Thanks!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF function returning incorrect result


What formula are you trying? Perhaps you just need

=(A2=A$1)+0


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=574262

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
Number appear in text Just-n Excel Discussion (Misc queries) 5 December 14th 06 09:30 AM
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
How to .. sbgvp Excel Discussion (Misc queries) 8 October 4th 05 09:16 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM


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