Removing 0s

heroharold99

New Member
Joined
Jul 4, 2024
Messages
5
Office Version
  1. 365
Platform
  1. MacOS
Hi everyone, Excel newbie here. I'm putting together a searchable database for my work and have managed to very inelegantly create a very crude search function. The problem is that the cells without any entries are displayed as 0s. Would yall be able to advise on how I might remove those 0s? Many thanks in advance!! The forumla I built is:

=FILTER(Table1,ISNUMBER(SEARCH(G2,Table1[Name of Company/Organization]))+ISNUMBER(SEARCH(G2,Table1[Case Lead Type]))+ISNUMBER(SEARCH(G2,Table1[Origin]))+ISNUMBER(SEARCH(G2,Table1[Year Founded]))+ISNUMBER(SEARCH(G2,Table1[Industry (primary)]))+ISNUMBER(SEARCH(G2,Table1[Industry (secondary)]))+ISNUMBER(SEARCH(G2,Table1[Industry (tertiary)]))+ISNUMBER(SEARCH(G2,Table1[Completed IPO?]))+ISNUMBER(SEARCH(G2,Table1[Latest Revenue (millions USD)]))+ISNUMBER(SEARCH(G2,Table1[Revenue Type]))+ISNUMBER(SEARCH(G2,Table1[Lastest Valuation (millions USD)]))+ISNUMBER(SEARCH(G2,Table1[Short Description of Main Product/Service]))+ISNUMBER(SEARCH(G2,Table1[Key Innovation]))+ISNUMBER(SEARCH(G2,Table1[Name and Position of Company Contact]))+ISNUMBER(SEARCH(G2,Table1[Dilemma (primary)]))+ISNUMBER(SEARCH(G2,Table1[Dilemma (secondary)]))+ISNUMBER(SEARCH(G2,Table1[Discussion Topic (primary)]))+ISNUMBER(SEARCH(G2,Table1[Discussion Topic (secondary)]))+ISNUMBER(SEARCH(G2,Table1[Academic Unit (primary)]))+ISNUMBER(SEARCH(G2,Table1[Academic Unit (secondary)]))+ISNUMBER(SEARCH(G2,Table1[Academic Unit (tertiary)]))+ISNUMBER(SEARCH(G2,Table1[Status]))+ISNUMBER(SEARCH(G2,Table1[Remarks])),"No Records Found")
 

Attachments

  • Screenshot 2024-07-04 at 5.35.44 PM.png
    Screenshot 2024-07-04 at 5.35.44 PM.png
    138.1 KB · Views: 18

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi & welcome to MrExcel.
How about
Excel Formula:
=let(f,FILTER(Table1,ISNUMBER(SEARCH(G2,Table1[Name of Company/Organization]))+ISNUMBER(SEARCH(G2,Table1[Case Lead Type]))+ISNUMBER(SEARCH(G2,Table1[Origin]))+ISNUMBER(SEARCH(G2,Table1[Year Founded]))+ISNUMBER(SEARCH(G2,Table1[Industry (primary)]))+ISNUMBER(SEARCH(G2,Table1[Industry (secondary)]))+ISNUMBER(SEARCH(G2,Table1[Industry (tertiary)]))+ISNUMBER(SEARCH(G2,Table1[Completed IPO?]))+ISNUMBER(SEARCH(G2,Table1[Latest Revenue (millions USD)]))+ISNUMBER(SEARCH(G2,Table1[Revenue Type]))+ISNUMBER(SEARCH(G2,Table1[Lastest Valuation (millions USD)]))+ISNUMBER(SEARCH(G2,Table1[Short Description of Main Product/Service]))+ISNUMBER(SEARCH(G2,Table1[Key Innovation]))+ISNUMBER(SEARCH(G2,Table1[Name and Position of Company Contact]))+ISNUMBER(SEARCH(G2,Table1[Dilemma (primary)]))+ISNUMBER(SEARCH(G2,Table1[Dilemma (secondary)]))+ISNUMBER(SEARCH(G2,Table1[Discussion Topic (primary)]))+ISNUMBER(SEARCH(G2,Table1[Discussion Topic (secondary)]))+ISNUMBER(SEARCH(G2,Table1[Academic Unit (primary)]))+ISNUMBER(SEARCH(G2,Table1[Academic Unit (secondary)]))+ISNUMBER(SEARCH(G2,Table1[Academic Unit (tertiary)]))+ISNUMBER(SEARCH(G2,Table1[Status]))+ISNUMBER(SEARCH(G2,Table1[Remarks])),"No Records Found"),if(f="","",f))
 
Upvote 1
Solution
Hi & welcome to MrExcel.
How about
Excel Formula:
=let(f,FILTER(Table1,ISNUMBER(SEARCH(G2,Table1[Name of Company/Organization]))+ISNUMBER(SEARCH(G2,Table1[Case Lead Type]))+ISNUMBER(SEARCH(G2,Table1[Origin]))+ISNUMBER(SEARCH(G2,Table1[Year Founded]))+ISNUMBER(SEARCH(G2,Table1[Industry (primary)]))+ISNUMBER(SEARCH(G2,Table1[Industry (secondary)]))+ISNUMBER(SEARCH(G2,Table1[Industry (tertiary)]))+ISNUMBER(SEARCH(G2,Table1[Completed IPO?]))+ISNUMBER(SEARCH(G2,Table1[Latest Revenue (millions USD)]))+ISNUMBER(SEARCH(G2,Table1[Revenue Type]))+ISNUMBER(SEARCH(G2,Table1[Lastest Valuation (millions USD)]))+ISNUMBER(SEARCH(G2,Table1[Short Description of Main Product/Service]))+ISNUMBER(SEARCH(G2,Table1[Key Innovation]))+ISNUMBER(SEARCH(G2,Table1[Name and Position of Company Contact]))+ISNUMBER(SEARCH(G2,Table1[Dilemma (primary)]))+ISNUMBER(SEARCH(G2,Table1[Dilemma (secondary)]))+ISNUMBER(SEARCH(G2,Table1[Discussion Topic (primary)]))+ISNUMBER(SEARCH(G2,Table1[Discussion Topic (secondary)]))+ISNUMBER(SEARCH(G2,Table1[Academic Unit (primary)]))+ISNUMBER(SEARCH(G2,Table1[Academic Unit (secondary)]))+ISNUMBER(SEARCH(G2,Table1[Academic Unit (tertiary)]))+ISNUMBER(SEARCH(G2,Table1[Status]))+ISNUMBER(SEARCH(G2,Table1[Remarks])),"No Records Found"),if(f="","",f))
Amazing. that did it! Thank you kindly~~
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 1
Hi Fluff, I'm hoping to seek your advice again - I've added another column (in red in the formula below) that contains links to other files as part of the searchable database. The idea is so that the user can click on the hyperlink and access the relevant files directly. But since this is an array, the hyperlinks are not clickable. Do you know of a way to get around that? Many thanks in time!!

=LET(f,FILTER(Table1,ISNUMBER(SEARCH(O2,Table1[Name of Company/Organization]))+ISNUMBER(SEARCH(O2,Table1[Case Lead Type]))+ISNUMBER(SEARCH(O2,Table1[Origin]))+ISNUMBER(SEARCH(O2,Table1[Year Founded]))+ISNUMBER(SEARCH(O2,Table1[Industry (primary)]))+ISNUMBER(SEARCH(O2,Table1[Industry (secondary)]))+ISNUMBER(SEARCH(O2,Table1[Industry (tertiary)]))+ISNUMBER(SEARCH(O2,Table1[Company Type]))+ISNUMBER(SEARCH(O2,Table1[Latest Revenue (millions USD)]))+ISNUMBER(SEARCH(O2,Table1[Revenue Type]))+ISNUMBER(SEARCH(O2,Table1[Lastest Valuation (millions USD)]))+ISNUMBER(SEARCH(O2,Table1[Profitable?]))+ISNUMBER(SEARCH(O2,Table1[Main Product/Service]))+ISNUMBER(SEARCH(O2,Table1[Key Innovation]))+ISNUMBER(SEARCH(O2,Table1[Company Contact]))+ISNUMBER(SEARCH(O2,Table1[Dilemma (primary)]))+ISNUMBER(SEARCH(O2,Table1[Dilemma (secondary)]))+ISNUMBER(SEARCH(O2,Table1[Topic (primary)]))+ISNUMBER(SEARCH(O2,Table1[Topic (secondary)]))+ISNUMBER(SEARCH(O2,Table1[HBS Unit (primary)]))+ISNUMBER(SEARCH(O2,Table1[HBS Unit (secondary)]))+ISNUMBER(SEARCH(O2,Table1[HBS Unit (tertiary)]))+ISNUMBER(SEARCH(O2,Table1[Status]))+ISNUMBER(SEARCH(O2,Table1[Link]))+ISNUMBER(SEARCH(O2,Table1[Remarks])),"No Records Found"),IF(f="","",f))
 
Upvote 0
Afraid not as I hardly ever use hyperlinks. I suggest that you start a new thread.
 
Upvote 1

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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