Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default calculate direction

Hi,

i've some udf in a range (suppose A1:Z1) that calculate the values depending
on the content of another range. When I trig the Full Calculation
(Alt+Ctrl+F9)
Excel starts from the first udf (that is in A1) then from that in Z1, than
in Y1 etc. and i get
the values increasing from right to left instead from left to right.
Any advice?

Emiliano


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default calculate direction

Yuor formulas are wrong. I fyou had a UDF that added 1 to the value passed
You woulkd have something like this

A B C D
E
=AddOne(B1) =AddOne(C1) =AddOne(D1) =AddOne(E1) 15

The results will have the following

19 18 17 16
15


"eggpap" wrote:

Hi,

i've some udf in a range (suppose A1:Z1) that calculate the values depending
on the content of another range. When I trig the Full Calculation
(Alt+Ctrl+F9)
Excel starts from the first udf (that is in A1) then from that in Z1, than
in Y1 etc. and i get
the values increasing from right to left instead from left to right.
Any advice?

Emiliano



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default calculate direction

No, the formulas are not wrong, what is strange is the order in which the
UDFs are executed. Debugging them I've noted that the addresses of the
values passed are not in sequence.

Emiliano
"Joel" ha scritto nel messaggio
...
Yuor formulas are wrong. I fyou had a UDF that added 1 to the value
passed
You woulkd have something like this

A B C D
E
=AddOne(B1) =AddOne(C1) =AddOne(D1) =AddOne(E1) 15

The results will have the following

19 18 17 16
15


"eggpap" wrote:

Hi,

i've some udf in a range (suppose A1:Z1) that calculate the values
depending
on the content of another range. When I trig the Full Calculation
(Alt+Ctrl+F9)
Excel starts from the first udf (that is in A1) then from that in Z1,
than
in Y1 etc. and i get
the values increasing from right to left instead from left to right.
Any advice?

Emiliano






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default calculate direction

The spreadsheet keeps on recalculating all the formulas until it reaches a
constant state, otherwise, it reports a circular reference. It should not
matter what order the sheet is calculated to get to a steady state condition
where all the formulas have been recalculated. Sometimes a formula gets
calculated multiple times if it has two or more inputs.

"eggpap" wrote:

No, the formulas are not wrong, what is strange is the order in which the
UDFs are executed. Debugging them I've noted that the addresses of the
values passed are not in sequence.

Emiliano
"Joel" ha scritto nel messaggio
...
Yuor formulas are wrong. I fyou had a UDF that added 1 to the value
passed
You woulkd have something like this

A B C D
E
=AddOne(B1) =AddOne(C1) =AddOne(D1) =AddOne(E1) 15

The results will have the following

19 18 17 16
15


"eggpap" wrote:

Hi,

i've some udf in a range (suppose A1:Z1) that calculate the values
depending
on the content of another range. When I trig the Full Calculation
(Alt+Ctrl+F9)
Excel starts from the first udf (that is in A1) then from that in Z1,
than
in Y1 etc. and i get
the values increasing from right to left instead from left to right.
Any advice?

Emiliano







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
Need Direction CmK New Users to Excel 3 July 3rd 07 12:04 AM
Need direction CmK Excel Discussion (Misc queries) 4 July 2nd 07 04:48 PM
Direction lsmft Excel Discussion (Misc queries) 2 April 27th 06 01:04 PM
I need direction Reluctantputerhead Excel Discussion (Misc queries) 3 November 2nd 05 12:42 AM
tab direction IC[_2_] Excel Programming 9 September 10th 04 02:28 PM


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

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"