Thread: Text in Formula
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tony Di Stasi Tony Di Stasi is offline
external usenet poster
 
Posts: 1
Default Text in Formula

Hi,

Having problem getting text into formula:

Need to have the following formula in cell(1):

=if(b1="B", "", "Match")

The following code does not work:

Cells(1).formula= "=if(" & Cells(2).address & "=" & ""B""
& "," & """" & "," & ""Match"" & ")"