Thread: HELP! Please!
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default HELP! Please!

Indeed you have.

The first IF resolves completely, as you have both TRUE and FALSE actions,
so you cannot have another IF after this. A second IF should go in place of
either the TRUE or FALSE action.

Maybe this

=IF(NOT(ISERROR(MATCH(A1,ValidData,0))),"IIBD
ACC",IF(NOT(ISERROR(MATCH(A1,ValidData2,0))),"IIB D PD","invalid cause
code"))

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"DCM84 " wrote in message
...
Hi, I kno this is not a programming query but im a beginner with MS
Excel and cant work out why this formula isnt workin! Here goes:

=IF(NOT(ISERROR(MATCH(A1,ValidData,0))),"IIBD ACC","INVALID CAUSE OR PD
CODE"),IF(NOT(ISERROR(MATCH(A1,ValidData2,0))),"II BD PD","invalid cause
code")

ValidData is cells H1:H4
ValidData2 is cells I1:I4

this is essentially two IF Statments combined so maybe ive done it
wrong?

Id be really really greatful if anyone can help

Thanx loads,
DCM84


---
Message posted from http://www.ExcelForum.com/