+ Reply to Thread
Results 1 to 5 of 5

Incrementing by 1 based on value of another cell

  1. #1
    Registered User
    Join Date
    07-18-2012
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Incrementing by 1 based on value of another cell

    Hello,

    I apologize if this has been answered a billion times already - but I can't seem to find what I'm looking for.

    I've a value in Column A that is <1 but occasionally goes >1.
    In column B I'd like to start a counter at 1 and increment when the value goes above 1 (and retain as it goes).
    Thus, Column B is 1 for n cells, and when Column A goes >1, Column B increments to 2 for n cells, increments to 3 etc etc.

    Thanks,

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Incrementing by 1 based on value of another cell

    Not sure I'm following. So going down Column A, you have values that are mostly <1 but occasionally exceed 1. Let's say in A3, A12, A20
    In B, do you want a single cell to increment as you add data (i.e. count the number of times Col A exceeds 1) OR
    do you want; in B3, 1. in B12, 2 and in B20 3 (Do you want all intermediate cells blank or 1,1,1,1,2,2,2,2,2 etc?
    OR something else?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-18-2012
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Incrementing by 1 based on value of another cell

    Hello ChemistB,

    All intermediate cells need to contain the incremented number 1,1,1,1,2,2,2,2,2.

    Thanks.

  4. #4
    Forum Contributor CheshireCat's Avatar
    Join Date
    10-11-2011
    Location
    Victoria, Canada
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    258

    Re: Incrementing by 1 based on value of another cell

    In cell B2, try:

    Please Login or Register  to view this content.
    copy/autofill down.

  5. #5
    Registered User
    Join Date
    07-18-2012
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Incrementing by 1 based on value of another cell

    That works - thanks very much.

+ 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