• 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.

how to remove cr and convert it into - sign i or other data and how to remove dr in Trail Balance or other data in excel sheet

bkpca

New Member
I want to prepare Automated Finacial Statement in excel using Trail Balance in excel with Amount Dr or Cr. 18988 Dr 16598 Cr generated from accounting software like tally
how to remove cr and convert it into - sign i or other data and how to remove dr in Trail Balance or other data in excel sheet

Please expedite
 

Attachments

  • TB-Dr Cr.xlsx
    12.1 KB · Views: 4
Try this in Macros and run it
Code:
Sub TallyData()
'  Change CR to Negative

Dim rng As Range
Set rng = Selection

For Each cell In rng

If InStr(1, cell.NumberFormat, "Cr") > 0 Then
cell.Value = cell.Value * -1
Else
cell.Value = cell.Value
End If

cell.NumberFormat = "general"

Next

End Sub
 
Back
Top