Filter question

angleright

New Member
Joined
Nov 4, 2024
Messages
22
Office Version
  1. 365
Platform
  1. Windows
I am trying to filter on a column(column "L",Plan No) with the following formula
=IF(R18="","",FILTER(FILTER($H$2:$N$109,($L$2:$L$109=$R$18),"NOTHING FOUND"),{0,0,0,0,0,0,1}))
the filter returns work great if the cell contains a number and letter but returns nothing if the cell only contains a number. I have the cells formatted as text. I've tried formatting as general and numeric but still get the same results.
the formula is in row w59
 
thanks for your help, still the same result. It's making my hair hurt. Dont't understand why it works for you but not me.
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
In that case can you upload the file the file to a share site such as OneDrive, GoogleDrive. Mark for sharing & then post the link you are given.
 
Upvote 0
Thanks for that. The reason it's not working is that the filter formula is not looking at all the data, try
Excel Formula:
=IF(R18="","",FILTER(N2:N7000,L2:L7000=IFERROR(--R18,R18),"NOTHING FOUND"))
 
Upvote 0
How about
Excel Formula:
=IF(R18="","",FILTER(H2:H7000,L2:L7000=IFERROR(--R18,R18),"NOTHING FOUND"))
 
Upvote 0
Wow, i feel i'm getting close, however it doesn't fill in below. Sometimes there is the same plan number but in a different box, so it needs to show the box number for each instance. I am also planning to add the street no and street name to the return. if you look at r30, at the end of the formula i can change which columns get returned by changing the true false(0 or 1) to get what I need. is there anyway to do that with your formula in cell r60. Can't thank you enough.
 
Upvote 0
You could use
Excel Formula:
=IF(R18="","",CHOOSECOLS(FILTER(H2:N7000,L2:L7000=IFERROR(--R18,R18),"NOTHING FOUND"),1))
and change the 1 at the end to reflect which column you want.
 
Upvote 0
that didn't work also i will be wanting to return values from columns h,j and k
 
Upvote 0
In that case use
Excel Formula:
=IF(R18="","",CHOOSECOLS(FILTER(H2:N7000,L2:L7000=IFERROR(--R18,R18),"NOTHING FOUND"),1,3,4))
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,128
Members
453,021
Latest member
Justyna P

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