Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi I've got a macro designed to fill cells with formulas when executed The results are sometimes incorrect but when writing the exact sam formula manually, the results are correct. For example one of the formulas that I'm using is Code ------------------- Dim ReportD As String ReportD = "=IF(ISNA(MATCH(R[0]C[-2],PID!B:B,0))=FALSE, ""x"","""")" Worksheets("Report").Range("D5").Offset(counter, 0).Formula = Report ------------------- When this is executed the formula in D5 becomes Code ------------------- =IF(ISNA(MATCH(B5,PID!B:B,0))=FALSE, "x","" ------------------- which returns an "x". Now if I type in the formul Code ------------------- =IF(ISNA(MATCH(B5,PID!B:B,0))=FALSE, "x","" ------------------- in an adjacent cell, it returns the correct result, which is blank. What might be causing this? BTW, the Version of Excel I'm using is 2000 w/ SP -- ob3ron0 ----------------------------------------------------------------------- ob3ron02's Profile: http://www.excelforum.com/member.php...fo&userid=1545 View this thread: http://www.excelforum.com/showthread.php?threadid=27047 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula result and displayed result are different | Excel Worksheet Functions | |||
Formula result does not match displayed result | Excel Worksheet Functions | |||
Formula Bar F9 Result differs from cell result??? | Excel Worksheet Functions | |||
Advanced formula - Return result & Show Cell Reference of result | Excel Worksheet Functions | |||
Median result used in formula gives incorrect result | Excel Worksheet Functions |