IF Formula to find asterisks

jondavis1987

Active Member
Joined
Dec 31, 2015
Messages
443
Office Version
  1. 2019
Platform
  1. Windows
I'm trying to make an IF formula to detect if there's any asterisks in the worksheet.
Code:
 =IF(WORKSHEET RANGE," * DOES NOT MEET SPECIFICATIONS ","")
That way if there is one it will display *DOES NOT MEET SPECIFICATIONS" and if there isn't one it displays nothing.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try

Code:
=IF(SUM(--ISNUMBER(SEARCH("~*",A1:L17)))>0," * DOES NOT MEET SPECIFICATIONS ","")
Enter with CTRL+SHIFT+ENTER not just enter. If done correctly the formula will have {} around it in the formula bar.
 
Upvote 0
It doesn't seem to be working.
Code:
=IF(ISNUMBER(SEARCH("*",A15:AF49)), "DOES NOT MEET SPECIFICATIONS", "")

I got this code to work if the asterisk is in a cell by itself. The code underneath is one of the cells that can have an asterisk pop up.

Code:
=IF(A!D10=100,A!D10,A!D10&"   *")

So if it has an asterisk it will generate this for a cell value 99 *
 
Upvote 0
Basically the same formula that Scott T gave you, but if you use SUMPRODUCT instead of SUM you can just use ENTER. No need for CTRL-SHIFT-ENTER.
Adjust range to meet your needs.
Excel Workbook
ABCD
1rt.* DOES NOT MEET SPECIFICATIONS
2
3
4uiuio
5ty
6jku *
Sheet
 
Upvote 0
That Seemed to do it. I had the array formula on there but for some reason it didn't find anything. Thank you!
 
Upvote 0
Hi,

Non array and a bit simpler, normally entered:


Book1
ABCD
1rt.* DOES NOT MEET SPECIFICATIONS
2*abc
3*
4uiuio
5ty
6jku *
Sheet660
Cell Formulas
RangeFormula
D1=IF(COUNTIF(A1:B6,"*~**")," * DOES NOT MEET SPECIFICATIONS ","")
 
Upvote 0

Forum statistics

Threads
1,215,259
Messages
6,123,922
Members
449,135
Latest member
NickWBA

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