IFERROR with empty result in cell

handri

New Member
Joined
Nov 25, 2017
Messages
46
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.

thanks in advanced
 

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.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,203
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
Joined
Nov 25, 2017
Messages
46
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"))
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,203
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.
 

Watch MrExcel Video

Forum statistics

Threads
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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Top