Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Data export causing false minus signs

Greetings all,

Maybe you've seen this one before. I'm exporting numbers from a database.
They always export as text. One report I recently worked on had minus
symbols after the number and I need to remove the false symbols. Not all
cells have them so "=right(" formula won't work.

Example.. All numbers are in A column, lets say, and the formula goes in
the B column.

1012.32
-1506.98
5032.56
3651.01-
-3562.54
7463.66-
6373.66

My desired result is a formla that would remove the last character in the
cell, but only if it's a " - ",

1012.32
-1506.98
5032.56
3651.01
-3562.54
7463.66
6373.66

Once again, thank you for all your help.
Mike






--
Mike
Jacksonville, Florida
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 857
Default Data export causing false minus signs

How about something like this:

=IF(RIGHT(A1,1)="-", LEFT(A1, LEN(A1)-1), A1)

"Mike Saffer" wrote:

Greetings all,

Maybe you've seen this one before. I'm exporting numbers from a database.
They always export as text. One report I recently worked on had minus
symbols after the number and I need to remove the false symbols. Not all
cells have them so "=right(" formula won't work.

Example.. All numbers are in A column, lets say, and the formula goes in
the B column.

1012.32
-1506.98
5032.56
3651.01-
-3562.54
7463.66-
6373.66

My desired result is a formla that would remove the last character in the
cell, but only if it's a " - ",

1012.32
-1506.98
5032.56
3651.01
-3562.54
7463.66
6373.66

Once again, thank you for all your help.
Mike






--
Mike
Jacksonville, Florida

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Data export causing false minus signs

=IF(RIGHT(A1)="-",LEFT(A1,LEN(A1)-1),A1) ?
--
David Biddulph

"Mike Saffer" wrote in message
...
Greetings all,

Maybe you've seen this one before. I'm exporting numbers from a database.
They always export as text. One report I recently worked on had minus
symbols after the number and I need to remove the false symbols. Not all
cells have them so "=right(" formula won't work.

Example.. All numbers are in A column, lets say, and the formula goes in
the B column.

1012.32
-1506.98
5032.56
3651.01-
-3562.54
7463.66-
6373.66

My desired result is a formla that would remove the last character in the
cell, but only if it's a " - ",

1012.32
-1506.98
5032.56
3651.01
-3562.54
7463.66
6373.66

Once again, thank you for all your help.
Mike






--
Mike
Jacksonville, Florida



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
How do I get Plus and Minus signs in my additions and subtraction TKM New Users to Excel 1 October 24th 06 06:11 PM
MINUS SIGNS REMOVAL Rebecca New Users to Excel 2 November 24th 05 12:07 AM
minus numbers causing a problem kevhatch New Users to Excel 14 June 30th 05 01:15 PM
strip minus signs from right to left Heather Excel Discussion (Misc queries) 2 April 21st 05 05:52 PM
I want to get brackets round my figures not minus signs Peru Excel Discussion (Misc queries) 3 February 3rd 05 09:30 PM


All times are GMT +1. The time now is 12:35 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"