krunal123

Board Regular
Joined
Jun 26, 2020
Messages
169
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
EX: A1 cell EXP/089/20-21


# i try to find particular word to alert condition

# find : /20-21 (this word fount to alert to other cell , "ok","Not"
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
with Power Query
an example
SourceSearchSourceSearchYN
EXP/089/20-21/20-21EXP/089/20-21/20-21Ok
EXP/089/20-22/20-21EXP/089/20-22/20-21Nor

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    IF = Table.AddColumn(Source, "YN", each if Text.Contains([Source], [Search]) then "Ok" else "Nor")
in
    IF
 
Upvote 0
Try using
Excel Formula:
=IF(ISNUMBER(SEARCH("/20-21",A1)),"OK","NOT")
 
Upvote 0
or this way
Table1Table2Result
SourceSearchSourceYN
EXP/089/20-21/20-21EXP/089/20-21Ok
EXP/089/20-22EXP/089/20-22Nor

Power Query:
let
    Search = Excel.CurrentWorkbook(){[Name="Table2"]}[Content][Search]{0},
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    IF = Table.AddColumn(Source, "YN", each if Text.Contains([Source], Search) then "Ok" else "Nor")
in
    IF
 
Upvote 0
Here are a couple of options to consider.

varios 19sep2020.xlsm
AB
1EXP/089/20-21Ok
2EXP/089/20-22Not
3
4EXP/089/20-21Ok
5EXP/089/20-22Not
Hoja2
Cell Formulas
RangeFormula
B1:B2B1=IF(RIGHT(A1,6)="/20-21","Ok","Not")
B4:B5B4=IF(ISERR(FIND("/20-21",A4)),"Not","Ok")
 
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,973
Members
449,059
Latest member
oculus

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