+ Reply to Thread
Results 1 to 6 of 6

Limit amount of times function performs

  1. #1
    Registered User
    Join Date
    02-08-2005
    Posts
    38

    Limit amount of times function performs

    Hi is it possible and if so how to limit the amount of times a function is performed.

    I have a spread sheet and in one column is =A1+(HOUR(A1)=12)/48
    I need to get it so that will only perform this function once
    and after it has been performed ignore all other instances

    Thanks

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    You could possibly use Iteration with Max Iteration set to 1 (see Calculation Options)

    Please Login or Register  to view this content.
    Else you would need to use some VBA (Change event presumably based on range A) to return the above as a Value as opposed to a Formula.

  3. #3
    Registered User
    Join Date
    02-08-2005
    Posts
    38
    many thanks
    will have a play with your solution as VBA is way over my head

  4. #4
    Registered User
    Join Date
    02-08-2005
    Posts
    38
    Hi DonkeyOte
    could you put that code on an example for me as I have been trying and it says circular reference

    Sorry not to good at this

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    As advised you must enable Iteration (to permit Circular references) -- set Max Iteration to 1... Iteration is set via Options but without knowing your version I can't give specifics (as in 2007 things are laid out a little differently)

  6. #6
    Registered User
    Join Date
    02-08-2005
    Posts
    38
    Ah I see what you mean but now that means that no other calculations on sheet work

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1