formula not working

Godders199

Active Member
Joined
Mar 2, 2017
Messages
302
Office Version
  1. 2013
Hello,, I am trying to use the following formula to determine whether within cell L2, one of the products detailed is a investment, the cell contains various products seperated by comas, for example bb111, rc3333, fd4444 , some products do have a gap eg xxx xxx2

on the list tab column b contains a list of all the investment codes

=IF(SUMPRODUCT(--ISNUMBER(SEARCH(Lists!$B$2:$B$14,'cases available '!$L2))),"investment","no")

Currently this formula will return "investment" no matter what is in the cell, it will only return "no" if the cell is blank.

I have also tried the forumal without the sumproduct, but that makes no difference.
I have converted the worksheet from table format, but i dont believe that is the issue, i have checked my list and that all seems in order.

anyone got any ideas?

Thanks
 

Some videos you may like

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
That formula looks OK to me but you can't have any blanks in Lists!$B$2:$B$14

If you want to allow blanks in that range then change the formula to this:

=IF(SUMPRODUCT(( Lists!$B$2:$B$14<>"")*ISNUMBER(SEARCH(Lists!$B$2:$B$14,'cases available '!$L2))),"investment","no")
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,123,336
Messages
5,601,023
Members
414,421
Latest member
tonybear1994

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
Top