+ Reply to Thread
Results 1 to 8 of 8

Recalculate (F9) until condition met

Hybrid View

mihaipir Recalculate (F9) until... 01-01-2017, 11:38 PM
guru008 Re: Recalculate (F9) until... 01-01-2017, 11:46 PM
rcm Re: Recalculate (F9) until... 01-01-2017, 11:46 PM
mihaipir Re: Recalculate (F9) until... 01-02-2017, 12:21 AM
Trebor76 Re: Recalculate (F9) until... 01-02-2017, 12:53 AM
FDibbins Re: Recalculate (F9) until... 01-02-2017, 02:09 AM
FDibbins Re: Recalculate (F9) until... 01-02-2017, 02:35 AM
mihaipir Re: Recalculate (F9) until... 01-02-2017, 08:10 AM
  1. #1
    Registered User
    Join Date
    01-01-2017
    Location
    Romania
    MS-Off Ver
    2013
    Posts
    11

    Recalculate (F9) until condition met

    Hello,
    I would like to calculate some cells until text "ok" appears. I have cells from B41:U43 and i want to recalculate until one of them appears with text "ok" (dosen't matter which one) and if possible tell me how many times had counted until one of them is with text "ok" The formula is already made, but it is annoying to manually refresh and count at the same time.
    I have little to no knowledge with VBA

    Thank you very much!

  2. #2
    Registered User
    Join Date
    12-06-2016
    Location
    India
    MS-Off Ver
    2007
    Posts
    72

    Re: Recalculate (F9) until condition met

    Hi,

    There is no need to refresh the formula or sheet to update the output of the same. Formula will auto calculate on change of value in reference field

    I am able to respond in real time to you until it is solve!

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Recalculate (F9) until condition met

    Dear mihaipir: It can be done, but there are some loose ends...

    1. What exactly makes "ok" appear?
    2. Is data being inputted in the calculation range?
    The reasoning behind the question is that the recalculation can be triggered if any cell changes its value within the range.

  4. #4
    Registered User
    Join Date
    01-01-2017
    Location
    Romania
    MS-Off Ver
    2013
    Posts
    11

    Re: Recalculate (F9) until condition met

    At every "ok" there 7 random numbers, and because of the RANDBETWEEN formula, they sometime repeat and the "ok" appears when those 7 numbers don't repeat.
    For example when B1 to B5 is 11223, A1 is blank, and when 1 2 3 4 5, cell A1 it's "ok

    This is the formula at the other end =INDEX(Sheet2!$C$2:$C$63,RANDBETWEEN(1,COUNTA(Sheet2!$C$2:$C$63)),1)
    and the formula for when not repeating , for "ok" is =IF(AND(W$36<>W$40,W$36<>W$37,W$37<>W$38,W$38<>W$39,W$39<>W$40,W$40<>W$41,W$36<>W$38,W$38<>W$40,W$41<>W$36,W$37<>W$40,W$37<>W$41,W$36<>"",W$37<>"",W$38<>"",W$39<>"",W$40<>"",W$41<>"",W$42<>"",W$42<>W$41,W$42<>W$40,W41<>W$39,W$42<>W$38,W$42<>W$37,W$42<>W$36),W36,"")

    Sorry if is primitive, but gives "ok" and that is all that i need. The second formula it's "W" and not sheet2 because i've copied them to my working sheet.

  5. #5
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: Recalculate (F9) until condition met

    Hi mihaipir,

    If you cross-post please provide a link to each of the other site(s) as I have done with this link.

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Recalculate (F9) until condition met

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    http://www.mrexcel.com/forum/excel-q...ition-met.html
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Recalculate (F9) until condition met

    oops closed the thread by mistake. It is open again now, apologies

  8. #8
    Registered User
    Join Date
    01-01-2017
    Location
    Romania
    MS-Off Ver
    2013
    Posts
    11

    Re: Recalculate (F9) until condition met

    Thank you for the info, i didn't know i could not post same post on 2 forums.
    I will only post here.

    What i am doing, is pressing f9 to and counting in my head, how many times do i press f9 until "ok" appears. "ok" appears when those 5 numbers on the right column are different from eachother. Because those 5 numbers are calculated with RANDBETWEEN function from a range of 1-43 to 1-69 and sometimes they repeat (1 2 2 3 4), and ok is when (1 2 3 4 5) for example. I wanted to know if is anyway using VBA to make them auto recalculate until one of the cells is "ok" and then stop and if possibly tell me how many times had F9 been pressed until "ok" appears.

    Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Function won't recalculate
    By RayJ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2013, 05:17 PM
  2. Recalculate until condition met
    By ab14 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2012, 07:22 AM
  3. Recalculate sheet repeatedly until condition met
    By montreal1775 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2008, 03:45 PM
  4. Checkbox and recalculate
    By lemonstar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2008, 11:31 AM
  5. Cell does not always recalculate
    By mylesdw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2008, 09:52 PM
  6. Recalculate on condition
    By DavidObeid in forum Excel General
    Replies: 3
    Last Post: 08-04-2006, 12:11 AM
  7. Auto recalculate?
    By Lee Harris in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2005, 09:00 PM
  8. [SOLVED] Won't recalculate
    By Erin in forum Excel General
    Replies: 2
    Last Post: 01-08-2005, 12:06 AM

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