VLOOKUP Help

djeerd

Board Regular
Joined
May 4, 2006
Messages
94
I use the following VLOOKUP formula in Excell 2007.

=IF(B1=","",VLOOKUP(B1,[FJN]Invoice!A5:W1000,4))

When the cell in column #4 of FJN invoice is blank, a zero is displayed. How do I change the formula to get it to display a blank cell.
 

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.
I use the following VLOOKUP formula in Excell 2007.

=IF(B1=","",VLOOKUP(B1,[FJN]Invoice!A5:W1000,4))

When the cell in column #4 of FJN invoice is blank, a zero is displayed. How do I change the formula to get it to display a blank cell.
Assuming the formula normally returns a numeric value...

=IF(B1="","",IF(VLOOKUP(B1,[FJN]Invoice!A5:W1000,4)="","",VLOOKUP(B1,[FJN]Invoice!A5:W1000,4)))

Or, it may be better to just use the formula as is but format the cell to not display the 0.

Use a custom cell format of:

General;-General;

The 0 will still be entered in the cell, you just won't see it.

If the formula normally returns a TEXT value...

=IF(B1="","",T(VLOOKUP(B1,[FJN]Invoice!A5:W1000,4)))
 
Upvote 0
try this
=IF(ISNA(VLOOKUP(B1,[FJN]Invoice!s!$A$5:$W$1000,4,FALSE)=TRUE),"",VLOOKUP(B1,[FJN]Invoice!s!$A$5:$W$1000,4,FALSE))
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,862
Members
452,948
Latest member
UsmanAli786

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
Back
Top