formula not working

Godders199

Active Member
Joined
Mar 2, 2017
Messages
313
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
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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:
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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