# IFERROR with empty result in cell

#### handri

##### New Member
hi

this is my vlookup

Code:
``=IFERROR(VLOOKUP(C6,'Database BA BB'!A3:C7,3,FALSE),"FAIL")``

when C6 is empty will result E6 with FAIL text in cell. How do i make it empty. Only when C6 is fill with data.

### Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a \$25,000 loan, 5% annual interest, 60 month loan.

##### MrExcel MVP
Are you after one of these?

=IF(C6="","",IFERROR(VLOOKUP(C6,'Database BA BB'!A3:C7,3,FALSE),"FAIL"))

=IF(C6="","",IFERROR(T(VLOOKUP(C6,'Database BA BB'!A3:C7,3,FALSE)),"FAIL"))

#### handri

##### New Member
thank you Aladin, these work for me!! cheers

Are you after one of these?

=IF(C6="","",IFERROR(VLOOKUP(C6,'Database BA BB'!A3:C7,3,FALSE),"FAIL"))

=IF(C6="","",IFERROR(T(VLOOKUP(C6,'Database BA BB'!A3:C7,3,FALSE)),"FAIL"))

##### MrExcel MVP
thank you Aladin, these work for me!! cheers

You are welcome. By the way, if you are copying down the formula, try to make the table range absolute. That is, 'Database BA BB'!\$A\$3:\$C\$7 instead of 'Database BA BB'!A3:C7.

#### handri

##### New Member
Yes i am using F4..

Replies
5
Views
113
Replies
31
Views
1K
Replies
3
Views
58
Replies
4
Views
140
Replies
0
Views
143

1,130,169
Messages
5,640,550
Members
417,151
Latest member
ChickenTenderer

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back