• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Split Symbols Of Tally Numbers

Nitin Suntwal

New Member
Hi There,

I have exported excel file of stock summary from tally. In thet file i need UOM (Unit Of Messurment) from one of the column. I googled & found a code which is working fine. After lot of R&D I came to know that the code is not working for the quanties which are in units value ex: (0.129 or 1.000 or 9.123) .

Can someone help me to know what is that I am missing.

Attached is my sample file with the codes added in sheet level in VB. Sheet 2 is working fine but sheet 1 is not working.

Thanks In Advance!

Regards,
Nitin Suntwal.
 

Attachments

  • Split Symbols Of Tally Numbers.xlsb
    15.1 KB · Views: 11
Following code works with your sheet 1 data.

Code:
Public Sub GetUOMText()
For i = 2 To Range("A" & Rows.Count).End(xlUp).Row
    Range("B" & i).Value = Split(Replace(Range("A" & i).NumberFormat, """", ""), " ")(1)
Next
End Sub
 
Back
Top