LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default iteration and error "#div/0"

Who can help me to solve this problem.

I have made 2 files (calculations) in EXCEL in which I have used
iterations in some cells.
In the first file iterations are used in 3 cells, and this calculation
is being performed correctly.
Because the iteration does not start by itself when input values are
zero, I started out via a macro, putting a value larger than zero, in
the cell. Than I proceed by replacing this value with the formula
needed. I found out that this works okay.

But, now I've build a second file where in 24 cells there should be
performed an iteration. I also used a macro as described above for the
same reason. However, here the number of cells to start the iteration
is 24 instead of 3.
Running the macro leads to an #div/0 error;. But all cells, linked to
the cell that should iterated, are larger than zero.

Could it be that the memory get overloaded during the iteration
process? If this is the reason why the programme does not "calculates"
values, what can be done about this to make it work alright?

Or could it be that the iteration does not work well with automatic
calculation in EXCEL, is the one to fast for the other one, or
something like that.

Piece of the macro:
Range("D225").Select
ActiveCell.FormulaR1C1 = "=IF(R[85]C=0,0,R[-1]C*R[-9]C/R[85]C)"
'(Explanation: This formula is defined in D225, and gives a value.)
Range("D226").Select
ActiveCell.FormulaR1C1 = "=R[-1]C[]"
'(Explanation: D226 is given the same value as D225)
Range("D226").Select
ActiveCell.FormulaR1C1 = "=IF(R[85]C=0,0,R[-1]C*R[-9]C/R[85]C)"
''(Explanation: This now results in #DEEL/0!, in English EXCEL version
this is #DIV/0!)
'(The formula in D226 should result in an iteration, and give a
value).

I really would appreciate some help. All good suggestions are welcome.

Kind regards,
Leon
 
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
"num#" errors .. how to average a group with a "num#" error Byron Excel Discussion (Misc queries) 3 May 20th 09 04:32 AM
"Document not saved" "error in loading DLL" Tracey L Excel Discussion (Misc queries) 0 December 1st 08 12:57 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
Shortcut key for "Paste Options" and "Error Checking" buttons? johndog Excel Discussion (Misc queries) 1 October 6th 06 11:56 AM


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