+ Reply to Thread
Results 1 to 2 of 2

Incremental value in cell and stop when a value is reached

  1. #1
    Registered User
    Join Date
    10-06-2012
    Location
    Dartmouth
    MS-Off Ver
    Excel 2010
    Posts
    9

    Incremental value in cell and stop when a value is reached

    Hi folks, I have a formula that counts the number of non blank cells. I want to increment the value of a cell in a column by 1 until it reaches the value set by the formula. I have used this to set the value of Y y = "=counta(c6:c2000)" and I want the macro to stop when the value of the cell is equal to y.

    I can't figure out how to do that. As you can tell I am a novice at this.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Incremental value in cell and stop when a value is reached

    Post your macro - be sure to use code tags (just highlight your macro and click on the #)!
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ 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. stop a countdown counting when date reached?
    By katashaaa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-21-2015, 11:17 AM
  2. Stop running macro when time value in a cell reached or exceed
    By bezbid in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-26-2015, 08:23 PM
  3. Stop when a value is reached
    By tommycasper in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-06-2014, 10:05 AM
  4. [SOLVED] Stop Macro adding when cell value is reached?
    By Margate in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2013, 10:30 PM
  5. Stop cell from updating when a date is reached
    By acampbeb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-07-2012, 08:27 AM
  6. Macro to stop deleting data when a certain row is reached
    By Philb1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-10-2011, 05:43 PM
  7. Stop the line when 0 is reached
    By Nigel in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-14-2005, 06:05 PM

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