Calculations of cells

L

Lasse

Hi,
I have problem with cell calculations, the formula don't been calculated.
The Tool- Options- Calculations is set to Automatic, but it does not
calculates and nothing happens if I press F9.
But if I double-Click the Cell (edit Formula) and then press enter key its
calculates.

Can I do anything so it's calculates automatic, without this procedure.

//Lasse
 
B

Bob Phillips

Sounds like the cells are formatted as text.

Select them all, and Data>Text To Columns, with fixed width but no breaks.
That should sort it.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
G

Guest

Bob Phillips said:
Sounds like the cells are formatted as text.

Select them all, and Data>Text To Columns, with fixed width but no breaks.
That should sort it.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
G

Guest

I have a problem with the calculations as well. I am running Excel with a
simulation program called Extend. It's a discrete event model and everytime
time jumps, my model recalculates. Extend will let you choose the number of
model runs, however I want the spreadsheet to only calculate at the beginning
of each run. Because the users desire to have a "no contact" approach, they
don't want to have to press F9. Does anyone know of another way that I can
have it recalculate just once without closing and re-opening Excel?

Kathleen
 
B

Bob Phillips

If you have some way of knowing when a run starts and ends, you could manage
the calculation mode via code.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
B

Bob Phillips

Yes, ideal, you could use worksheet change event

Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "H1" '<== change to suit

On Error GoTo ws_exit
Application.EnableEvents = False

If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
If .Value = "Off" Then
Application.Calculation = xlCalculationManual
Else
Application.Calculation = xlCalculationAutomatic
End If
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top