Formul ? ,0),"")

zone709

Well-known Member
Joined
Mar 1, 2016
Messages
2,129
Office Version
  1. 365
Platform
  1. Windows
Hi using this formula if nothing found return 0

I would like to change it if it finds nothing to return blank not 0

=IFERROR(VLOOKUP($H$3:$H$100, Data!$D$2:$AH$100,25,0),"")

Thanks
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
=IF(LEN(VLOOKUP($H$3:$H$100,Data!$D$2:$AH$100,3,0))="0",VLOOKUP($H$3:$H$100,Data!$D$2:$AH$100,3,0))

returns FALSE I also did =0"" but it doesn't work either
 
Upvote 0
Why are you putting text quotes around the 0?
=IF(LEN(VLOOKUP($H$3:$H$100,Data!$D$2:$AH$100,3,0))="0",VLOOKUP($H$3:$H$100,Data!$D$2:$AH$100,3,0))
That is not what that formula in that link shows.
The length (LEN) of anything has to be a number, not text (anything enclosed in double-quotes is literal text).
 
Last edited:
Upvote 0
I followed the link you sent me. Actually know it asks me if I wanted a correction on it and I hit yes. Then it put it like that "0"
 
Last edited:
Upvote 0
=IF(LEN(VLOOKUP($H$3:$H$100,Data!$D$2:$AH$100,3,0))=0,VLOOKUP($H$3:$H$100,Data!$D$2:$AH$100,3,0))

This retunrs 0
 
Upvote 0
I followed the link you sent me. Its in the link if I should use it or not I didn't know why I'm asking for help
You did not follow it carefully.

This is the formula they show:
=IF(LEN(VLOOKUP(E1,A2:B10,2,0))=0,"",VLOOKUP(E1,A2:B10,2,0))

This is your formula:
=IF(LEN(VLOOKUP($H$3:$H$100,Data!$D$2:$AH$100,3,0))="0",VLOOKUP($H$3:$H$100,Data!$D$2:$AH$100,3,0))

Notice the differences in red.
Also, when doing a VLOOKUP, your first value should be a single cell or value, not an entire range.
See:
https://exceljet.net/excel-functions/excel-vlookup-function
 
Upvote 0
=IF(LEN(VLOOKUP($H$3:$H$100,Data!$D$2:$AH$100,3,0))=0,VLOOKUP($H$3:$H$100,Data!$D$2:$AH$100,3,0))

This retunrs 0
.
That is still missing the argument after the zero.

If looking up H3, it should look like this:
Code:
[COLOR=#333333]=IF(LEN(VLOOKUP([/COLOR][COLOR=#ff0000]$H3[/COLOR][COLOR=#333333],Data!$D$2:$AH$100,3,0))=0[/COLOR][COLOR=#ff0000],""[/COLOR][COLOR=#333333],VLOOKUP([/COLOR][COLOR=#ff0000]$H3[/COLOR][COLOR=#333333],Data!$D$2:$AH$100,3,0))[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,209
Members
453,022
Latest member
RobertV1609

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