Find / Search / Countif etc taking into account blanks and error messages...

ellison

Active Member
Joined
Aug 1, 2012
Messages
343
Office Version
  1. 365
Platform
  1. Windows
Having a mind blank!
What would be best way to work out where the info in Col C is / isn't contained in the info in Col B, i.e. to say "Found" or "Not Found" respectively.
But also take into account that
- it is not case dependent
- if Col C is blank, please return: "Blank Anyway"
- IF Col C is not found in Col B, please return "Not Found" (as opposed to an error message)

Rowheader-1header-2WIP
2ABCDEFGHABCFound
3ABCDEFGHabcFound
4ABCDEFGHDEFFound
5ABCDEFGHABCDEFGHFound
6ABCDEFGHBlank Anyway
7ABCDEFGHBLAHNot Found
8ABCDEFGHBlank Anyway
9ABCDEFGHBlank Anyway
10ABCDEFGHZZZZZZNot Found



Actually, this isn't a mind blank - I just can't figure it out!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Check this -

Book4
ABCDE
1Rowheader-1header-2WIPFormula
22ABCDEFGHABCFoundFound
33ABCDEFGHabcFoundFound
44ABCDEFGHDEFFoundFound
55ABCDEFGHABCDEFGHFoundFound
66ABCDEFGHBlank AnywayBlank Anyway
77ABCDEFGHBLAHNot FoundNot Found
88ABCDEFGHBlank AnywayBlank Anyway
99ABCDEFGHBlank AnywayBlank Anyway
1010ABCDEFGHZZZZZZNot FoundNot Found
Sheet1
Cell Formulas
RangeFormula
E2:E10E2=IFS(C2="","Blank Anyway",IFERROR(SEARCH(C2,B2),0)>=1,"Found",TRUE,"Not Found")
 
Upvote 0
Solution
Place this formula in C2 and copy down: =IF(C2="","Blank Anyway",IF(ISNUMBER(SEARCH(C2,B2)),"Found","Not Found"))
 
Upvote 0

Forum statistics

Threads
1,215,084
Messages
6,123,024
Members
449,092
Latest member
ikke

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