Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Function seems to be late with calculation

hello,

i have function:

Function FindID(c As Variant, x As String, y As Range)

'c - file
'x - sheet
'y - value i'm looking for

s = "=INDEX('" & c & x & "'!C8:EX8,1,MATCH(" & y.Address(1, 1, xlA1, True) & ",'" & c & x & "'!C15:EX15,0))"

FindID = Evaluate(s)

End Function

i call this function as follows:

=IF(B31=".";"";IF(ISERROR(findid($C$5;$B$3;$D31)); "";findid($C$5;$B$3;$D31)))

or simply:

=findid($C$5;$B$3;$D31)

and value is not correctly calculated when i press F9 (i disabled
automatic caluculation). unless i press F9 again values are correctly
calculated

in automatic calculation i have to change some value twice..

why does this function work in this way?

regards
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
If function with Calculation WallyGathor Excel Worksheet Functions 3 May 21st 09 04:16 PM
Accrued late fee calculation JAC Excel Worksheet Functions 5 March 8th 07 08:30 PM
Time calculation for attendance, tardy/late to work? Hanr3 Excel Discussion (Misc queries) 6 May 12th 06 10:07 PM
Late Binding or Late Anything Piranha[_56_] Excel Programming 4 October 15th 05 03:42 AM
Calculation within IF function Andrew Excel Worksheet Functions 2 January 12th 05 01:37 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"