Okoth
Board Regular
- Joined
- Sep 10, 2009
- Messages
- 106
- Office Version
- 2019
- Platform
- Windows
I want to check if the value of a cell is written as 100 gram (or a different number) instead of 100gr.
Example:
100gr white sugar is wrong
100 gram white sugar is right
or
38gr cinnamon is wrong
38 gram cinnamon is right
I have tried several formulas but I'm always stuck with the space.
=SEARCH("gr *", C18 ) doesn't work
=COUNTIF(C18,"*gr *")>0 also doesn't work
=ISNUMBER(SEARCH("gr *",B18)) also not
What formula can I use to check this?
Example:
100gr white sugar is wrong
100 gram white sugar is right
or
38gr cinnamon is wrong
38 gram cinnamon is right
I have tried several formulas but I'm always stuck with the space.
=SEARCH("gr *", C18 ) doesn't work
=COUNTIF(C18,"*gr *")>0 also doesn't work
=ISNUMBER(SEARCH("gr *",B18)) also not
What formula can I use to check this?