w.a.n.t formula

JOJO2730

New Member
Joined
Dec 20, 2022
Messages
8
Office Version
  1. 365
Platform
  1. Windows
I have a column as NOTES that contains data such as
01-feb-2022 text text text
w. text date text
a.text date text
n. text date text
t. text date text
basically, w.a.n.t. are the stages the note is written for.

I want a formula to check if w.a.n.t. is present in the cell.
There are some other formats to write w.a.n.t. such as W-A.N't. I want to run a formula through the text present in each cell of the column and check if w.a.n.t is present in all acceptable formats and return pass if present and fail otherwise
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I'm assuming not a NOTE thats in excel
BUT a cell you use as notes

=AND(COUNTIF(F2,"*w.*"),COUNTIF(F2,"*a.*"),COUNTIF(F2,"*n.*"),COUNTIF(F2,"*t.*"))

is present in all acceptable formats
what are all the possible formats

as TEXT , words may have W A N T in
ie
want to be here for xmas
I want to

when it matters
has
W N A T in

so to test just for the characters WANT maybe an issue

or is it always followed by a return as shown

some examples may help here

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
 
Upvote 0
Hi,
Below is the sample data from the cell

11-Feb-2022 W: chasing client via email A: They paid 26/01 9.12300 we asked for the restN: 'ljhdudnh@hdgdh.com''lock.med@gmial.com'T: awaiting customers reply

As i mentioned, w.a.n.t are stages and i want tocheck if all the stages are present in that cell in multiple formats such as W:/w./W-/w-.
Similarly for remaining stages.

Later on i can also add additional stage as S/X in the cell.
 
Upvote 0
maybe something like
=AND(SUM(COUNTIF(A1,{"*W:*","*W-*","*W.*"})),SUM(COUNTIF(A1,{"*A:*","*A-*","*A.*"})),SUM(COUNTIF(A1,{"*N:*","*N-*","*N.*"})),SUM(COUNTIF(A1,{"*T:*","*T-*","*T.*"})))

Not case sensitive so will pick up a. and A.

but you will need all the possible combinations
otherwise you have for example
W (We , awaiting )
A (chasing, via, asked)
N (client ,
T (client, they, rest, awaiting, customers)

in all the words

Book1
A
111-Feb-2022 - chasing client via email A: They paid 26/01 9.12300 we asked for the restN: 'ljhdudnh@hdgdh.com''lock.med@gmial.com'T: awaiting customers reply
2
3FALSE
4
511-Feb-2022 W- chasing client via email A: They paid 26/01 9.12300 we asked for the restN: 'ljhdudnh@hdgdh.com''lock.med@gmial.com'T: awaiting customers reply
6
7TRUE
Sheet1
Cell Formulas
RangeFormula
A3,A7A3=AND(SUM(COUNTIF(A1,{"*W:*","*W-*","*W.*"})),SUM(COUNTIF(A1,{"*A:*","*A-*","*A.*"})),SUM(COUNTIF(A1,{"*N:*","*N-*","*N.*"})),SUM(COUNTIF(A1,{"*T:*","*T-*","*T.*"})))
 
Upvote 0
11-Feb-2022 W: chasing client via email A: They paid 26/01 9.12300 we asked for the restN: 'ljhdudnh@hdgdh.com''lock.med@gmial.com'T: awaiting customers reply

As i mentioned, w.a.n.t are stages and i want tocheck if all the stages are present in that cell in multiple formats such as W:/w./W-/w-.
It seems like the data is quite unstructured and the want letters can be upper/lower case and preceded/followed by nearly anything. As an example, it appears the "w" can be followed by "."
So how would we logically determine that this "w" is one we are interested in
11-Feb-2022 w. chasing client via email

and this is one that we are not interested in?
11-Feb-2022 email to abc@shaw.com

If w.a.n.t. does occur in the cell would it always be in that particular order (as they are in the two examples that you have given)?
 
Upvote 0
It seems like the data is quite unstructured and the want letters can be upper/lower case and preceded/followed by nearly anything. As an example, it appears the "w" can be followed by "."
So how would we logically determine that this "w" is one we are interested in
11-Feb-2022 w. chasing client via email

and this is one that we are not interested in?
11-Feb-2022 email to abc@shaw.com

If w.a.n.t. does occur in the cell would it always be in that particular order (as they are in the two examples that you have given)?
Notes are particularly comments written manually hence, the person writing it can use W:/w./W-/w- and follows the same for the other 3 stages that is a,n,t!
Date isn't structured as it is a comment and hence i don't feel any date format should be decided for the same purpose!
 
Upvote 0
As far as I can tell, that did not answer either of my two questions.

So how would we logically determine that this "w" is one we are interested in
11-Feb-2022 w. chasing client via email

and this is one that we are not interested in?
11-Feb-2022 email to abc@shaw.com

If w.a.n.t. does occur in the cell would it always be in that particular order (as they are in the two examples that you have given)?
 
Upvote 0
if ther is always a space - then try
=AND(SUM(COUNTIF(A1,{"*W: *","*W- *","*W. *"})),SUM(COUNTIF(A1,{"*A: *","*A- *","*A. *"})),SUM(COUNTIF(A1,{"*N: *","*N- *","*N. *"})),SUM(COUNTIF(A1,{"*T: *","*T- *","*T. *"})))
update the
{"*W: *","*W- *","*W. *"}
with any other possible types of entry for each letter

you can then add other letters S and X by adding to the AND

I'm sure there is a better way to do this - other members may have
 
Upvote 0

Forum statistics

Threads
1,224,821
Messages
6,181,163
Members
453,021
Latest member
Justyna P

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