PC Review


Reply
Thread Tools Rate Thread

Cells not calculated

 
 
Ian
Guest
Posts: n/a
 
      7th Nov 2007
I have a spreadsheet that is output from an Access form.

H7 (General format) holds =SUM(H2:H5). This is right-justified.
Autocalculation is on
H2 to H5 (General format) hold what appears to be numbers and is
left-justified.
H7=0
If I reformat H2 to H5 as number with 2 decimals, the appearance doesn't
change and H7 remains at zero.
If I double click on eg H3, then click elsewhere, H7=H3.

So it appears that the numbers in H2 to H5 are actually text.

This all used to work, but some changes have been made to the database and
now we have this problem. If I can't find the root cause (ie why Access it
outputting in this way), how can I programmatically change the values in
column H into numbers?

Ian


 
Reply With Quote
 
 
 
 
Niek Otten
Guest
Posts: n/a
 
      7th Nov 2007
Hi Ian,

You can programmatically mimic the manual solution:

Format an empty cell as number (just to be sure)
Edit>Copy
Select your "numbers"
Edit>Paste special, check Add

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"Ian" <(E-Mail Removed)> wrote in message news:8vmYi.12089$(E-Mail Removed)...
|I have a spreadsheet that is output from an Access form.
|
| H7 (General format) holds =SUM(H2:H5). This is right-justified.
| Autocalculation is on
| H2 to H5 (General format) hold what appears to be numbers and is
| left-justified.
| H7=0
| If I reformat H2 to H5 as number with 2 decimals, the appearance doesn't
| change and H7 remains at zero.
| If I double click on eg H3, then click elsewhere, H7=H3.
|
| So it appears that the numbers in H2 to H5 are actually text.
|
| This all used to work, but some changes have been made to the database and
| now we have this problem. If I can't find the root cause (ie why Access it
| outputting in this way), how can I programmatically change the values in
| column H into numbers?
|
| Ian
|
|


 
Reply With Quote
 
Ian
Guest
Posts: n/a
 
      7th Nov 2007
Thanks, Nick. I hadn't realised that this could be done. I had assumed that,
as the values appear to be numbers, then changing the format to number
should be sufficient. It obviously wasn't and your solution has worked (at
least manually).

I'm still hoping I can get the correct output from Access in the first
place, but otherwise implementation of this method in code will be an easy
fix. In fact, I might implement it anyway for ALL the numeric values in the
sheet, as it isn't going to cause any problems with "working" values anyway.

Ian

"Niek Otten" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Ian,
>
> You can programmatically mimic the manual solution:
>
> Format an empty cell as number (just to be sure)
> Edit>Copy
> Select your "numbers"
> Edit>Paste special, check Add
>
> --
> Kind regards,
>
> Niek Otten
> Microsoft MVP - Excel
>
>
> "Ian" <(E-Mail Removed)> wrote in message
> news:8vmYi.12089$(E-Mail Removed)...
> |I have a spreadsheet that is output from an Access form.
> |
> | H7 (General format) holds =SUM(H2:H5). This is right-justified.
> | Autocalculation is on
> | H2 to H5 (General format) hold what appears to be numbers and is
> | left-justified.
> | H7=0
> | If I reformat H2 to H5 as number with 2 decimals, the appearance doesn't
> | change and H7 remains at zero.
> | If I double click on eg H3, then click elsewhere, H7=H3.
> |
> | So it appears that the numbers in H2 to H5 are actually text.
> |
> | This all used to work, but some changes have been made to the database
> and
> | now we have this problem. If I can't find the root cause (ie why Access
> it
> | outputting in this way), how can I programmatically change the values in
> | column H into numbers?
> |
> | Ian
> |
> |
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to show all formulas of cells in cells (and not the calculated result) ? Keith Clark Microsoft Excel Misc 10 5th Apr 2009 10:21 PM
How to show all formulas of cells in cells (and not the calculated result) ? Keith Clark Microsoft Excel Programming 0 4th Apr 2009 09:41 AM
Calculated value to run across cells ?? Corey Microsoft Excel Worksheet Functions 1 22nd Jun 2006 08:27 AM
Changes to calculated cells blah Microsoft Excel Discussion 2 20th Sep 2005 10:52 PM
UDF was not being calculated for all cells grahamd Microsoft Excel Programming 2 14th Oct 2004 03:25 PM


Features
 

Advertising
 

Newsgroups
 


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