Formula help

Isabella

Well-known Member
Joined
Nov 7, 2008
Messages
643
Hi,

I need a formula that will return "ERROR" if there is a string "UKN" in Col A3:A

Excel Workbook
A
2Header
3Test1
4Test2
5Test3
6Test4
7Test5
8Test6
9UKN
10UKN
11Test7
12Test8
13Test9
14Test10
15Test11
Sheet1
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I'm assuming you want 1 formula to check the whole range,

=if(countif(A3:A15,"UKN"),"Error","Ok")
 
Upvote 0
If you only need a single, diagnostic formula, saying al least one or none:

=ISNUMBER(MATCH("UKN",A:A,0))+0

Custom format the formula cell as, e.g.: [=0]"OK";[=1]"ERROR"
 
Upvote 0
If you only need a single, diagnostic formula, saying al least one or none:

=ISNUMBER(MATCH("UKN",A:A,0))+0

Custom format the formula cell as, e.g.: [=0]"OK";[=1]"ERROR"

Since this workbook will be opened by other teams would they see the error since i have only custom formatted in my puter?
 
Upvote 0
Since this workbook will be opened by other teams would they see the error since i have only custom formatted in my puter?

The custom format is in the workbook, not your computer.
 
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,319
Members
452,905
Latest member
deadwings

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