Searching Multiple Values in Cell and Displaying Output

Arcxist

New Member
Joined
Jan 29, 2020
Messages
2
Office Version
  1. 2013
Platform
  1. Windows
  2. MacOS
Good morning,

I'm trying to get this function to work, however I'm running into some issues. I'm trying to search multiple model numbers in an array using the SEARCH function, and display output using the IF function. When doing this I can only get SEARCH to find the first value in the array. I've tried using the below to no avail.

=IF(ISBLANK(E43),"",IF(ISNUMBER(SEARCH({"EX","MX","QFX"},E43)),"Juniper",IF(ISNUMBER(SEARCH("7",E43)),"Nokia",IF(ISNUMBER(SEARCH({"26","29","2960","3560"},E43)),"Cisco",IF(ISNUMBER(SEARCH("ES-",E43)),"Ubiquiti")))))

1580309990928.png
 
Hi & welcome to MrExcel.
How about
Code:
=IF(ISBLANK(E43),"",IF(SUM(--ISNUMBER(SEARCH({"EX","MX","QFX"},E43)))>0,"Juniper",IF(ISNUMBER(SEARCH("7",E43)),"Nokia",IF(SUM(--ISNUMBER(SEARCH({"26","29","2960","3560"},E43)))>0,"Cisco",IF(ISNUMBER(SEARCH("ES-",E43)),"Ubiquiti")))))
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,226,850
Messages
6,193,353
Members
453,790
Latest member
yassinosnoo1

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