Array when cell contains specific text.

Godders199

Active Member
Joined
Mar 2, 2017
Messages
313
Office Version
  1. 2013
I am trying to get this array to work.
=MAX(IF(Submissions!$K:$K=Sheet1!$A2,IF(Submissions!$P:$P="*"&Sheet1!$P$5&"*",Submissions!$M:$M),))
I believe the P5 element is incorrect, but I can’t get it towork, I am looking for the latest date in column M, when column P contains theword in P5. If I do an exact match itworks, i.e P:P = P5, however in majority of cells there is more than one wordin column P.
Is there an alternative I can use for contains the text inP5?

 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi, one option.

=MAX(IF(Submissions!$K1:$K100=Sheet1!$A2,IF(ISNUMBER(SEARCH(Sheet1!$P$5,Submissions!$P1:$P100)),Submissions!$M1:$M100),))

Note: for efficiency reasons you should avoid full column references with array formula, you could consider using sensible maximums, dynamic named ranges, tables and structured references or the MAXIFS() function (if you have it available) as alternatives.
 
Upvote 0
thanks that works, I try and restrict , just trying to get it all to work correctly first.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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