ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   External Data-Changing Numeric Formatting (https://www.excelbanter.com/excel-programming/387758-external-data-changing-numeric-formatting.html)

Cheryl

External Data-Changing Numeric Formatting
 
Hi All,
I am importing external data via database query. There is one column of
data that is in the positive position that needs to be converted into the
negative position (entire column). i.e. 21.63 needs to read as -21.63. Can
this be done?

Thanks in advance.
Cheryl

Tim

External Data-Changing Numeric Formatting
 
Just negate the value in your SQL:

select -t.columname from tablename t

Tim


"Cheryl" wrote in message
...
Hi All,
I am importing external data via database query. There is one column of
data that is in the positive position that needs to be converted into the
negative position (entire column). i.e. 21.63 needs to read as -21.63.
Can
this be done?

Thanks in advance.
Cheryl




Cheryl

External Data-Changing Numeric Formatting
 
Thanks Tim. Couldn't believe the answer could be so simple!!!!
Cheryl

"Tim" wrote:

Just negate the value in your SQL:

select -t.columname from tablename t

Tim


"Cheryl" wrote in message
...
Hi All,
I am importing external data via database query. There is one column of
data that is in the positive position that needs to be converted into the
negative position (entire column). i.e. 21.63 needs to read as -21.63.
Can
this be done?

Thanks in advance.
Cheryl






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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com