Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Wallaby
 
Posts: n/a
Default Import accounts data from AS400 system, how do I change 10- to (1.

The negative value in the AS400 system appears with the negative symbol after
the value, so when imported into excell it does not calculate it as a
negative value. How do I change that?
  #2   Report Post  
arno
 
Posts: n/a
Default

Hi Wallaby,

A1 = 1234.01-

you need an extra column with this formula
=IF(right(a1,1)="-", left(a1, len(a1)-1)*(-1), a1)

The best would be to make your as400 deliver the "normal" number
format, that you can use without extra formulas. check any export
settings on the as400!

see ya

arno

wrote:
The negative value in the AS400 system appears with the negative
symbol after the value, so when imported into excell it does not
calculate it as a negative value. How do I change that?


  #3   Report Post  
Jason Morin
 
Posts: n/a
Default

Try a simple replace. Select the data, press Ctrl+H, and:
Find What: -
Replace With: <leave empty

HTH
Jason
Atlanta, GA

-----Original Message-----
The negative value in the AS400 system appears with the

negative symbol after
the value, so when imported into excell it does not

calculate it as a
negative value. How do I change that?
.

  #4   Report Post  
arno
 
Posts: n/a
Default

Hi Jason,

Replace With: <leave empty


cool, this will turn a list of positive and negative values into a list
of absolute values. Why bother with those bloody minuses, just throw
them away!

arno

  #5   Report Post  
Wallaby
 
Posts: n/a
Default

Thanx Arno and Jason

Arno your formula give me an error message "value" once typed in. I assume
that it must be the formatting. when I type in a number 15- it converts, but
with the number as 21.561,00- no luck.

"arno" wrote:

Hi Jason,

Replace With: <leave empty


cool, this will turn a list of positive and negative values into a list
of absolute values. Why bother with those bloody minuses, just throw
them away!

arno




  #6   Report Post  
arno
 
Posts: n/a
Default

Hi Wallaby,

Arno your formula give me an error message "value" once typed in. I
assume that it must be the formatting. when I type in a number 15- it
converts, but with the number as 21.561,00- no luck.


try
=IF(right(a1,1)="-", left(value(a1), len(a1)-1)*(-1), a1)

if this does not work post some sample data of the as400 and tell me
what the result of
=left(a1, len(a1)-1)
exactly is. (It should be a number, if it is a text you'll get #value.)
Maybe we have to trim or use some other text-functions to make it work.

arno


  #7   Report Post  
Jason Morin
 
Posts: n/a
Default

I don't know what I was thinking. Scratch this.

-----Original Message-----
Hi Jason,

Replace With: <leave empty


cool, this will turn a list of positive and negative

values into a list
of absolute values. Why bother with those bloody

minuses, just throw
them away!

arno

.

  #8   Report Post  
Gord Dibben
 
Posts: n/a
Default

DataText to ColumnsNextNextAdvanced. Checkmark "trailing minuses" and
Finish.


Gord Dibben Excel MVP

On Thu, 14 Apr 2005 02:14:01 -0700, "Wallaby"
wrote:

The negative value in the AS400 system appears with the negative symbol after
the value, so when imported into excell it does not calculate it as a
negative value. How do I change that?


  #9   Report Post  
Gord Dibben
 
Posts: n/a
Default

Check out another answer to your first post.

Much easier than formulas.


Gord Dibben Excel MVP

On Thu, 14 Apr 2005 07:21:06 -0700, "Wallaby"
wrote:

Thanx Arno and Jason

Arno your formula give me an error message "value" once typed in. I assume
that it must be the formatting. when I type in a number 15- it converts, but
with the number as 21.561,00- no luck.

"arno" wrote:

Hi Jason,

Replace With: <leave empty


cool, this will turn a list of positive and negative values into a list
of absolute values. Why bother with those bloody minuses, just throw
them away!

arno



  #10   Report Post  
arno
 
Posts: n/a
Default

Hi Gord,
DataText to ColumnsNextNextAdvanced. Checkmark "trailing
minuses" and Finish.


Great, this works in my XL 2002. Is this feature also available in XL
2000 and XL 97?

arno

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
import external data from changing file name nathan Excel Worksheet Functions 2 April 6th 05 04:39 PM
Import Data into same cell ib_redbeard Excel Discussion (Misc queries) 3 March 1st 05 12:08 PM
Import Data: on insert, shift data down and not right Raminhos Excel Discussion (Misc queries) 1 February 17th 05 02:08 PM
Automatic Data Import TxRaistlin Excel Discussion (Misc queries) 2 February 4th 05 10:43 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM


All times are GMT +1. The time now is 01:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"