Forum Discussion
Matt_Mys
Aug 29, 2022Copper Contributor
ANSWERED - Making a formula count the number of digits in a cell before executing
Edit - I got the answer I needed. Thank you! Hello all, I am trying to get a formula to count how many digits are in a cell, and if they contain a certain amount of digits, then (do the rest ...
- Aug 30, 2022=IF(LEN(A1)>1,"do something","do nothing")
sivakumarrj
Aug 30, 2022Brass Contributor
Based on Number of digits you can do multiple formulas using conditional if
9 2 0
12 3 36
15 4 60
150 5 750
2000 1 2000
=IF(A1>=10,(A1*B1),0)
From the above formula If value is single digit will not do any calculation,
if it has more than 2 digit calculation can be done with using multiplication, division or substract etc.
9 2 0
12 3 36
15 4 60
150 5 750
2000 1 2000
=IF(A1>=10,(A1*B1),0)
From the above formula If value is single digit will not do any calculation,
if it has more than 2 digit calculation can be done with using multiplication, division or substract etc.