Ignore blanks in a countif formula

saraapple

Board Regular
Joined
Feb 3, 2020
Messages
165
Office Version
  1. 2010
Platform
  1. Windows
I need to amend my formula to ignore blank cells, but am struggling!

=IF(COUNTIF($L$2:$L$199, $L6)>1, "SPLIT", "")

This currently tells me if a name is repeated in col L and returns the value SPLIT - my new data has blanks and they are flagging incorrectly now, so I need to ignore them.

Any ideas would be greatly appreciated.

thank you
Sara
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Not quite sure I understand, but is this what you are looking for:
Excel Formula:
=IF(AND($L6<>"",COUNTIF($L$2:$L$199, $L6)>1), "SPLIT", "")
 
Upvote 0
Solution
You are welcome.
Glad I was able to help.
 
Upvote 0

Forum statistics

Threads
1,214,636
Messages
6,120,664
Members
448,976
Latest member
sweeberry

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