How to cut a number in excel based on condition -
i want cut 2 numbers in 2 cells right side , find @ point number become equal , print number in cell described in picture
any 1 please me
you're not comparing 2 numbers, strings (because have leading zero). can without vba using left function.
and here's same thing showing formulae:
or can in vba:
public function comparetwonumbers(num1 string, num2 string) string dim long dim temp1 string, temp2 string = len(num1) 1 step -1 temp1 = left(num1, i) temp2 = left(num2, i) if temp1 = temp2 comparetwonumbers = temp1 exit function end if next comparetwonumbers = "the numbers not match" end function
Comments
Post a Comment