Google Sheets - Cell contains text

Multi tool use
Multi tool use


Google Sheets - Cell contains text



I have a google sheet with cells that contain different words. I want the words to equal numbers if present in a different cell. Normally I can just use =if when there is just one word but can't for this. I've tried using =regexactmatch and =search but can't get it to work.



For example the cell might contain the following text:
"Uruguay, France, Brazil, Belgium"



I want Uruguay, France, Brazil to each = 3 in another cell but Belgium to = 0 in that same cell.




1 Answer
1



I think does what you ask:


=substitute(substitute(substitute(substitute(A1,"Uruguay",3),"France",3),"Brazil",3),"Belgium",0)



but, possibly like user who VTC'd as Unclear, I doubt it is what you want.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

OXA4D2byvpE9NNQ41eOlg,P8CZKux5,TiDR5Aq78ZQJRV9b6Re7,VD3ZUqmvk8XuUc8gHh
q31LVzB

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications