I have a formula that works great, but looking to make a slight change for another purpose. Here is the formula
This formula will sum up the cells if the word in AF4 is found in the column Table134[Stock Symbol]. That was great for another calculation, but for this one it does not work. For example if I want to see my performance for stock M, if I type in "M" in AF4 it will give stats for any stock symbol with an M in it. Can someone please recommend a change so it is an exact match instead of just found in the cell?
Excel Formula:
=IF(SUMPRODUCT(ISNUMBER(SEARCH($AF$4,Table134[Stock Symbol]))*(Table134[Profit / Loss]<>""))=0,"NA",SUMIFS(Table134[Profit / Loss],Table134[Stock Symbol],"*"&$AF$4&"*"))
This formula will sum up the cells if the word in AF4 is found in the column Table134[Stock Symbol]. That was great for another calculation, but for this one it does not work. For example if I want to see my performance for stock M, if I type in "M" in AF4 it will give stats for any stock symbol with an M in it. Can someone please recommend a change so it is an exact match instead of just found in the cell?