Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default text to Column and amount from -ve to +ve.

I export data from other prog. To excel and converting to text to column. I
have fields like Date, Ref No., Item, Opening Bal, Pending Bal. In my
Opening Bal, Pending Bal. column some amount comes in €“ (-ve) and some comes
in + (+ve) I want to convert €“ve amount into +ve and +ve into €“ ve .
Is possible through program. Any help.
Thanks
****al

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default text to Column and amount from -ve to +ve.

Hi
no need for a program;
1. If these are positive and negative values in simply create 2 new
columns and in the first cell of the first column type the formula
= -"A2"

where I have assumed the first number in your two Opening Balance and
Pending Balance columns is in "A2". Now copy this formula to the first
cell in the second new column, then select all of the two columns and
do Edit, Fill Down.

2. If these are two columns of TEXT with "+" and "-" at the start of
each number do the same as 1 but use the formula
=IF(LEFT(A2,1) = "+",REPLACE(A2,1,1,"-"),IF(LEFT(A2,1) =
"-",REPLACE(A2,1,1,"+")))


regards
Paul

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default text to Column and amount from -ve to +ve.

thanks Paul for reply this will work but

There are only (-)negative sign in amount and not (+)postive sign. I want to
canvert +amount into -nagative amount 1st and than i don't want that -ve
amount +ve.
And remaining -ve amount into +ve.

Thanks
" wrote:

Hi
no need for a program;
1. If these are positive and negative values in simply create 2 new
columns and in the first cell of the first column type the formula
= -"A2"

where I have assumed the first number in your two Opening Balance and
Pending Balance columns is in "A2". Now copy this formula to the first
cell in the second new column, then select all of the two columns and
do Edit, Fill Down.

2. If these are two columns of TEXT with "+" and "-" at the start of
each number do the same as 1 but use the formula
=IF(LEFT(A2,1) = "+",REPLACE(A2,1,1,"-"),IF(LEFT(A2,1) =
"-",REPLACE(A2,1,1,"+")))


regards
Paul


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default text to Column and amount from -ve to +ve.

Hi
Won't option 1 do this?

Paul

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
enter date in column a and amount in column d George A. Yorks Excel Discussion (Misc queries) 3 January 20th 07 09:04 PM
Not all text wraps in a cell containing large amount of text Kris Excel Discussion (Misc queries) 3 December 23rd 05 04:25 PM
Large amount of text in cells - Problem text.xls (0/1) Patrick Excel Discussion (Misc queries) 3 May 5th 05 04:10 PM
Large amount of text in cells - Problem text.xls (1/1) Patrick Excel Discussion (Misc queries) 0 May 5th 05 01:23 PM
How do I count the amount of text in a column and then add them Peter Curtis Excel Discussion (Misc queries) 1 January 6th 05 01:06 PM


All times are GMT +1. The time now is 02:05 PM.

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

About Us

"It's about Microsoft Excel"