Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jnorton
 
Posts: n/a
Default Using Sum for database data

I have a sql query that imports data from a MySQL database.
When the data is brought into Excel I can't sum the numbers.

  #2   Report Post  
Ron Coderre
 
Posts: n/a
Default

Without all of the details, I'm guessing that the SUM equates to zero.

If that is true, the values may be text that appear to be numbers. Try this
to correct the problem:

1)Put a 1 in a blank cell and select that cell
2)EditCopy
3)Select the imported values
4)EditPaste Special
--Select Multiply
--Select Values
Click the [OK] button.

Does that resolve the problem?

--
Regards,
Ron


"jnorton" wrote:

I have a sql query that imports data from a MySQL database.
When the data is brought into Excel I can't sum the numbers.

  #3   Report Post  
jnorton
 
Posts: n/a
Default

Thanks, I found that to work but I also realized that it is better to change
the structure of table in the MySql database. I used decimal instead of
varchar.

jn

"Ron Coderre" wrote:

Without all of the details, I'm guessing that the SUM equates to zero.

If that is true, the values may be text that appear to be numbers. Try this
to correct the problem:

1)Put a 1 in a blank cell and select that cell
2)EditCopy
3)Select the imported values
4)EditPaste Special
--Select Multiply
--Select Values
Click the [OK] button.

Does that resolve the problem?

--
Regards,
Ron


"jnorton" wrote:

I have a sql query that imports data from a MySQL database.
When the data is brought into Excel I can't sum the numbers.

  #4   Report Post  
Rainer
 
Posts: n/a
Default

I have a similar problem - MySQL returns the field type 'decimal' and Excel
2003 does not recognise it as numbers!. I obviously can create a column with
a formula "=Value(TheCellWithTheDecimalNumber)" - but I want to analyse the
data with a pivot table directly.

Any hints?

Rainer

"jnorton" wrote:

Thanks, I found that to work but I also realized that it is better to change
the structure of table in the MySql database. I used decimal instead of
varchar.

jn

"Ron Coderre" wrote:

Without all of the details, I'm guessing that the SUM equates to zero.

If that is true, the values may be text that appear to be numbers. Try this
to correct the problem:

1)Put a 1 in a blank cell and select that cell
2)EditCopy
3)Select the imported values
4)EditPaste Special
--Select Multiply
--Select Values
Click the [OK] button.

Does that resolve the problem?

--
Regards,
Ron


"jnorton" wrote:

I have a sql query that imports data from a MySQL database.
When the data is brought into Excel I can't sum the numbers.

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
Data Source Name Not Found Justin Tyme Excel Worksheet Functions 0 June 16th 05 11:45 PM
Macro to search for and display data in another worksheet Mark H Excel Worksheet Functions 0 June 14th 05 12:40 PM
Pull Current Month's Data Out of List - Repost Karl Burrows Excel Discussion (Misc queries) 4 May 3rd 05 01:06 AM
Line Graph Data Recognition Nat Charts and Charting in Excel 2 April 30th 05 02:07 PM
Running Data Table using an input that triggers DDE linked data [email protected] Excel Discussion (Misc queries) 1 December 16th 04 11:56 AM


All times are GMT +1. The time now is 03:19 PM.

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"