+ Reply to Thread
Results 1 to 8 of 8

Increase value by 1

  1. #1
    Registered User
    Join Date
    06-16-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    138

    Increase value by 1

    Can someone help with this?

    In cell AB1 I have the formula =COUNTIF(AA:AA,1)
    If I drag the cell down I get the same formula, what would I need to add to AB1's formula so that when I drag down I get 2 instead of 1.

    Thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,910

    Re: Increase value by 1

    Try this:

    =COUNTIF(AA$1:AA1,1)

    Dag copy down.

    If you are not starting in row 1, change the 1 to the appropriate row number.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Increase value by 1

    If I've understood correctly, try this:

    =COUNTIF(AA:AA,ROWS($1:1))

    or

    =COUNTIF(AA:AA,ROW())

    BSB
    Last edited by BadlySpelledBuoy; 10-19-2021 at 06:47 AM.

  4. #4
    Registered User
    Join Date
    10-19-2021
    Location
    london
    MS-Off Ver
    2021
    Posts
    8

    Re: Increase value by 1

    In cell AB2

    =AB1+1

    then drag that formula down instead of AB1

  5. #5
    Registered User
    Join Date
    06-16-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    138

    Re: Increase value by 1

    Thanks for the replies guys.
    95% of the formulas when dragged down will return 1 so I wanted an easy way to find the location of greater than 1's.
    Aligw don't know why but your formula didn't find them for me.
    BSB yours worked for me.
    I haven't try the third one.
    Thanks to you all.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,910

    Re: Increase value by 1

    Because we were all having to guess!!!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  7. #7
    Registered User
    Join Date
    06-16-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    138

    Re: Increase value by 1

    I know it was vague Aligw.
    I have marked as solved
    Ta

  8. #8
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    491

    Re: Increase value by 1

    Mate, I think you need to better describe your question.

    =--(COUNTIF(AA$1:AA1,AA1)>1) to only mark once a duplicate occurs.

    =--(COUNTIF(AA:AA,AA1)>1) to also mark the first occurrence of any duplicate.

    Provided I have understood your questions correctly.

+ 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. Check if raise increase is in the 3% targeted increase
    By nacv80 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-12-2020, 01:05 PM
  2. Adding Salary Increase to already prorated salary amount based on a salary increase date
    By Excelhelppleasethank in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2019, 03:43 PM
  3. % increase
    By ExcelnoviceUK in forum Excel General
    Replies: 15
    Last Post: 10-13-2016, 08:06 AM
  4. Increase until certain value
    By Ferohers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2015, 12:03 PM
  5. [SOLVED] incremental increase in a cell based on value increase in another cell
    By umuni in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-18-2014, 05:23 AM
  6. Replies: 3
    Last Post: 09-18-2012, 01:01 AM
  7. Replies: 2
    Last Post: 07-12-2011, 11:08 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