Select Multiple with constraints

In my excel sheet, I need to use constraints for selecting multiple option. I am trying that at least three options should be selected from the multiple option list. How do write a constraint for these one? Kindly help me out of this one.

use this constraint: count-selected(.)>=3