Data Import - formatting

G

Guest

I'm exporting accounting data fm a business system into Excel. Negative
dollar amounts come into Excel in this format "12,345.67-". The trailing "-"
is formatting at text and not currency thus my numbers aren't adding up.

Is there a way I can convert "12,345.67-" to "-12,345.67"?

tks,
steve
 
G

Guest

You can use a formula like this, to convert the negative ammounts and leave
the possitive the same:
=IF(RIGHT(A2,1)="-",--("-" & LEFT(A2,LEN(A2)-1)),A2)

Hope this helps,
Miguel.
 
G

Guest

Miguel,

That's awesome, thanks!!

Miguel Zapico said:
You can use a formula like this, to convert the negative ammounts and leave
the possitive the same:
=IF(RIGHT(A2,1)="-",--("-" & LEFT(A2,LEN(A2)-1)),A2)

Hope this helps,
Miguel.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top