Formula error

  • Thread starter Thread starter ineedhelp2
  • Start date Start date
I

ineedhelp2

The formula below receives an error in my macro. Can someone pleas
help me edit it to work?


Code
-------------------

Range("A6").Select
ActiveCell.FormulaR1C1 = _
"=IF(ISBLANK(RC[4])=TRUE,"""",(IF(OR(RC[1]=Summary!R7C1,RC[1]=Summary!R8C1,RC[1]=Summary!R9C1,RC[1]=Summary!R11C1,RC[1],RC[1]=Summary!R12C1=Summary!R7C1,RC[1]=Summary!R13C1,RC[1]=Summary!R15C1,RC[1]=Summary!R7C1,RC[1]=Summary!R16C1)=TRUE,'Raw Data'!R[-1]C[10],"""")"
Range("A6").Select
 
You have your formula jumbled up right here:

,RC[1],RC[1]=Summary!R12C1=Summary!R7C1,RC[1]=Summary!R13C1

--
Regards,
Tom Ogilvy



ineedhelp2 said:
The formula below receives an error in my macro. Can someone please
help me edit it to work?


Code:
"=IF(ISBLANK(RC[4])=TRUE,"""",(IF(OR(RC[1]=Summary!R7C1,RC[1]=Summary!R8C1,R
C[1]=Summary!R9C1,RC[1]=Summary!R11C1,RC[1],RC[1]=Summary!R12C1=Summary!R7C1
,RC[1]=Summary!R13C1,RC[1]=Summary!R15C1,RC[1]=Summary!R7C1,RC[1]=Summary!R1
6C1)=TRUE,'Raw Data'!R[-1]C[10],"""")"
 
You also need to add two parens on the end (a total of 3 parens)

'Raw Data'!R[-1]C[10],"""")"

should be

'Raw Data'!R[-1]C[10],"""")))"

That would make it complete, but you don't then have an defined response if
the first IF is false.

--
Regards,
Tom Ogilvy


ineedhelp2 said:
The formula below receives an error in my macro. Can someone please
help me edit it to work?


Code:
"=IF(ISBLANK(RC[4])=TRUE,"""",(IF(OR(RC[1]=Summary!R7C1,RC[1]=Summary!R8C1,R
C[1]=Summary!R9C1,RC[1]=Summary!R11C1,RC[1],RC[1]=Summary!R12C1=Summary!R7C1
,RC[1]=Summary!R13C1,RC[1]=Summary!R15C1,RC[1]=Summary!R7C1,RC[1]=Summary!R1
6C1)=TRUE,'Raw Data'!R[-1]C[10],"""")"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top