Thread: Function error
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
nc nc is offline
external usenet poster
 
Posts: 119
Default Function error

The below formula works, but when I add TRIM( at the * and, ) at **, I get
the message "The formula you typed contains an error." Please help.

=IF(AND(ISBLANK('Paste USAL Cheque Data - temp'!B9),ISBLANK('Paste USAL
Cheque Data - temp'!B8)),"",IF(MID(TRIM('Paste USAL Cheque Data -
temp'!C9),1,1)="F",TRIM(PROPER(VLOOKUP(L2,'Debtor
Names'!$A$2:$B$65536,2,FALSE))),IF(MID(TRIM('Paste USAL Cheque Data -
temp'!C9),1,1)="M","USAL"&'Paste USAL Cheque Data - temp'!B9&"
"&VALUE(MID(TRIM('Paste USAL Cheque Data - temp'!C9),2,6))&"
"&TRIM(PROPER(VLOOKUP(VALUE(MID(*'Paste USAL Cheque Data -
temp'!C9**,2,6)),'Debtor Names'!$A$2:$B$65536,2,FALSE))),'Paste USAL Cheque
Data - temp'!$B$4&" "&'Paste USAL Cheque Data - temp'!$A$6&'Paste USAL
Cheque Data - temp'!$B$6)))