If formula with differing search ranges

AndyC83

New Member
Joined
Oct 21, 2022
Messages
3
Office Version
  1. 2021
  2. 2019
  3. 2016
Platform
  1. Windows
Hi I'm trying to get something to work which may be much easier than i'm making it for myself. I've been trying combinations of IF/AND/INDEX/MATCH and not getting the results I need.

Column A has a list of references which can and should contain duplicates as below Column B contains varying text:
1111 Football player
1111 Hockey player
1122 Hockey manager
1123 Football manager
1234 Basketball coach
1234 Football player


I need a formula in column C that tells me if the reference in Column A says "Football" then TRUE or not FALSE (i dont care if it says manager or player only that it contains the word "football"), but i need it to apply to each row with the same reference for example rows 1&2 would say yes because the reference 1111 contains Football in row 1. How would I do this without using VBA (the real report can't contain VBA due to client restrictions).

Thank you in advance for any help.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Keep in mind that this solution is case sensitive, so it won't find "football". There are ways to fix that if needed.

Book5
ABC
11111Football playerTRUE
21111Hockey playerTRUE
31122Hockey managerFALSE
41123Football managerTRUE
51234Basketball coachTRUE
61234Football playerTRUE
Sheet2
Cell Formulas
RangeFormula
C1:C6C1=COUNTIFS($A$1:$A$6,A1,$B$1:$B$6,"*"&"Football"&"*")>0
 
Upvote 0
Solution
Keep in mind that this solution is case sensitive, so it won't find "football". There are ways to fix that if needed.

Book5
ABC
11111Football playerTRUE
21111Hockey playerTRUE
31122Hockey managerFALSE
41123Football managerTRUE
51234Basketball coachTRUE
61234Football playerTRUE
Sheet2
Cell Formulas
RangeFormula
C1:C6C1=COUNTIFS($A$1:$A$6,A1,$B$1:$B$6,"*"&"Football"&"*")>0
Hi yes when adapted to my spreadsheet that works but to make it none case sensitive what would need to change as the real spreadsheet its referencing a free type field so some people using capitals some not.
 
Upvote 0
Hi yes when adapted to my spreadsheet that works but to make it none case sensitive what would need to change as the real spreadsheet its referencing a free type field so some people using capitals some not.
Actually I just double checked it - it is NOT case sensitive. That's helpful in your case, but not if you need it to be case sensitive for some reason.
 
Upvote 0

Forum statistics

Threads
1,214,956
Messages
6,122,465
Members
449,085
Latest member
ExcelError

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