If statement and List

maximillianrg

Board Regular
Joined
Aug 7, 2014
Messages
75
Office Version
  1. 2016
Platform
  1. Windows
Hello Excel Masters

This is very simple question
  • Cells A1:A10 contains content (could bet text or numbers)
  • Cell B1 contains content (also text or numbers)
  • Cell C1 contains the formula I am looking for which says - If contents of B1 exist in cells A1:A10 return " " else return "foo"
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
=IF(Countif($A$1:$A$10,$B$1)>0,"", "foo")
 
Upvote 0
This is very simple question
It may be but, if the above suggestion is not what you want, you might clarify in relation to the sample below.
Some people would say that the contents of B1 does not exist in A1:A10
Others would say that it does exist (in A4)
Which is it for your circumstance?

24 01 07.xlsm
AB
1dogcat
2ran
3flew
4scattered
5horse
6rat
7mouse
8jumped
9gathered
10goat
Sample
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,733
Members
452,939
Latest member
WCrawford

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