How to check if a cell contains a value from a column in another table

Hi Folks.


In Numbers I'm trying to find if a value I've entered into a cell also appears in a column in another table.


Let's say cell D3 has the word "APPLE" in it. I want to see if APPLE appears in a column of words I have in a separate table (lets call the table "Foods my daughter won't eat".


The result I want is a TRUE/FALSE answer, then based on that I can do some other manipulation.


I had figured that this would be easy but it appears not to be.


Any advice would be greatly appreciated.


Cheers


Jay

Posted on Aug 2, 2023 1:59 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 2, 2023 8:18 AM

You can get the TRUE/FALSE with COUNTIF, something like this:



=COUNTIF(No eat::$A,D3)>0


Further manipulation could be something like this:



=IF(E3,"Won't eat","Will eat")


Or, combine the two steps into something like this:


=IF(COUNTIF(No eat::$A,D3)>0,"Won't eat","Will eat")


Use ; instead of , in the formulas if your region uses , as the decimal separator.


SG

3 replies
Question marked as Top-ranking reply

Aug 2, 2023 8:18 AM in response to jepps77

You can get the TRUE/FALSE with COUNTIF, something like this:



=COUNTIF(No eat::$A,D3)>0


Further manipulation could be something like this:



=IF(E3,"Won't eat","Will eat")


Or, combine the two steps into something like this:


=IF(COUNTIF(No eat::$A,D3)>0,"Won't eat","Will eat")


Use ; instead of , in the formulas if your region uses , as the decimal separator.


SG

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to check if a cell contains a value from a column in another table

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.