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

enter image description here

any 1 please me

you're not comparing 2 numbers, strings (because have leading zero). can without vba using left function.

enter image description here

and here's same thing showing formulae:

enter image description here

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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -