Forum Discussion
Ranjit1960
Aug 04, 2022Copper Contributor
Conditional formatting for decimals
Hello Experts, I am creating an excel sheet where user will have to put values with 4 decimal places. The value will turn red if it does not have four decimal places (i.e. more or less decimals p...
arnel_gp
Aug 04, 2022Steel Contributor
you can use this condition, where A1 is the start of the range to format:
=AND(ISERROR(LEN(A1)-FIND(".",A1))=FALSE, LEN(A1)-FIND(".",A1)<>4)
=AND(ISERROR(LEN(A1)-FIND(".",A1))=FALSE, LEN(A1)-FIND(".",A1)<>4)