PC Review


Reply
Thread Tools Rate Thread

calculate direction

 
 
eggpap
Guest
Posts: n/a
 
      14th Jun 2008
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 With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      14th Jun 2008
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 With Quote
 
eggpap
Guest
Posts: n/a
 
      14th Jun 2008
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" <(E-Mail Removed)> ha scritto nel messaggio
news:214F73EA-7EB2-4B46-9D7E-(E-Mail Removed)...
> 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 With Quote
 
Joel
Guest
Posts: n/a
 
      14th Jun 2008
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" <(E-Mail Removed)> ha scritto nel messaggio
> news:214F73EA-7EB2-4B46-9D7E-(E-Mail Removed)...
> > 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 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
Activesheet.Calculate failing to calculate =?Utf-8?B?RGFuaWVsIEJvbmFsbGFjaw==?= Microsoft Excel Programming 2 11th Oct 2006 03:16 AM
Direction lsmft Microsoft Excel Misc 2 27th Apr 2006 01:04 PM
How does one calculate direction? Frederick Wilson Microsoft Access Form Coding 22 6th Apr 2005 04:11 PM
How to calculate hide records while calculate their totals Ty Archer Microsoft Access Reports 1 4th Dec 2003 01:29 AM
Macro that hide or unhide and not calculate or calculate Jonsson Microsoft Excel Programming 1 19th Aug 2003 04:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:35 PM.