Filter Formula - Change "0" to "Blank" cells

jayjay123

New Member
Joined
Jun 3, 2021
Messages
45
Office Version
  1. 365
Platform
  1. Windows
Hi guys! In search for an expert to help me with the Filter formula.

As part of the filter formula, if there is a blank cell, it's popping up with the number "0". Is there any way to change it to "Blank"?

I've tried:
=FILTER(A:A,IFERROR(B:B=B1,"")

Thanks for your help!!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
That is not a valid formula. Did you mean this =FILTER(A:A,IFERROR(B:B=B1,""))

Depends a bit on what sort of values you have in column A. Could we have a small set of dummy data and the expected results?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Hi,

From your formula I assume there's an empty field in column while the criteria on the same line is true.
If that's a correct assumption, try this:

Excel Formula:
=SUBSTITUTE(FILTER(A:A,B:B=B1,""),"0","")

But be aware, this will remove all 0 even in other entries, ic 4405 becomes 445.
To have a better look at the solution follow @Peter_SSs suggestion and show some sample data
 
Upvote 0
As addition to my previous post, something like this is a better option:
Excel Formula:
=FILTER(IF(ISBLANK(A:A),"",A:A),B:B=B1,"")
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,392
Members
449,081
Latest member
JAMES KECULAH

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