Adjusting Countif formula to partially match cell

Corleone

Well-known Member
Joined
Feb 2, 2003
Messages
841
Office Version
  1. 365
Hi
I am using the following formula
=COUNTIFS('All Milestone Report'!$U$2:$U$20000,AE8,'All Milestone Report'!$W$2:$W$20000,">0")
however i need to modify it some that it picks up any instance where the text in AE8 occurs in one of the cells in Column U
the formula below works for exact matches but i want to pick up items where for example cell AE8 = "149268IS" and it recognises any entry in column U that contains that text even though its likely to be part of the cell content (E,G "149268IS ADS1)

I tried placing an asterix before,AE8 as that seems to work for SUMIF but it doesn't accept that

Cheers
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Try it like
Excel Formula:
=COUNTIFS('All Milestone Report'!$U$2:$U$20000,"*"&AE8&"*",'All Milestone Report'!$W$2:$W$20000,">0")
 
Upvote 0
Solution
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,852
Messages
6,127,322
Members
449,374
Latest member
analystvar

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