rdoulaghsingh
Board Regular
- Joined
- Feb 14, 2021
- Messages
- 105
- Office Version
- 365
- Platform
- Windows
I'm using the formula below to fill in a cell with customer name from two separate sheets in a workbook. If the customer name is entered on one of the sheets, then the cell with the formula fills in the customer name and the other sheet without a customer is deleted. The function below does everything I want, but the problem is when one of the sheets is deleted, I get a #Ref error. Is there any way to avoid this in the formula below?
=IFERROR(IF('Introduction 800-171'!B15<>"<Customer Name>",'Introduction 800-171'!B15,IF('Introduction CMMC'!B15<>"<Customer Name>",'Introduction CMMC'!B15,"")),INDIRECT('Introduction 800-171'!B15))
=IFERROR(IF('Introduction 800-171'!B15<>"<Customer Name>",'Introduction 800-171'!B15,IF('Introduction CMMC'!B15<>"<Customer Name>",'Introduction CMMC'!B15,"")),INDIRECT('Introduction 800-171'!B15))