I am using the following formula to detect if the referenced cell has each word capitalised, however, I also need to to take any hyphenated word as one word ie (Horse-box) should be recognised as one word, and not two
Excel Formula:
=IF(SUBSTITUTE(I2,PROPER(I2),"x")<>"x","Error","Correct")
Horse Box | Correct |
Horse box | Error |
Horse Box | Correct |
Horse-box | Correct |
Horsebox | Correct |
horse box | Error |
horse Box | Error |