+ Reply to Thread
Results 1 to 8 of 8

How to add automatically the max value in a cell based on conditions

  1. #1
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Belgium
    MS-Off Ver
    Excel 2019
    Posts
    180

    How to add automatically the max value in a cell based on conditions

    Hi,

    In column "A", I have 2 different names Alan and Bernard. In column "B", I have unique numbers.
    I would like when adding a new row and adding in column "A", one of the 2 names, to have in column "B" the max value+1 related to the name of column "A"

    For ex the max value in column "B" for Alan is 100 and the max value in column"B" for Bernard is 500.
    When filling in a new row in column "A" : Alan, it should add 101 in column"B".
    When filling in a new row in column "A" : Bernard, it should add 501 in column"B".

    Thanks for help,

    Daniel

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,068

    Re: How to add automatically the max value in a cell based on conditions

    Something like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    12-10-2013
    Location
    Mississippi, United States
    MS-Off Ver
    2016
    Posts
    120

    Re: How to add automatically the max value in a cell based on conditions

    Here is a Formula that should work it is an array.
    Just change the row numbers as needed to start then drag down.
    Please Login or Register  to view this content.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,466

    Re: How to add automatically the max value in a cell based on conditions

    Note that in Belgium you may need to use semicolons ( ; ) rather than commas ( , ) in the formulae suggested, depending on your regional settings.

    Hope this helps.

    Pete

  5. #5
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Belgium
    MS-Off Ver
    Excel 2019
    Posts
    180

    Re: How to add automatically the max value in a cell based on conditions

    Hi TMS,

    Thank you for your reply but unfortunately it doesn't work

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,466

    Re: How to add automatically the max value in a cell based on conditions

    Did you see my comments in Post #4 ?

    Pete

  7. #7
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Belgium
    MS-Off Ver
    Excel 2019
    Posts
    180

    Re: How to add automatically the max value in a cell based on conditions

    Hi Pete,

    Thanks so much. It works

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,068

    Re: How to add automatically the max value in a cell based on conditions

    So:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    You may want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Replies: 1
    Last Post: 02-23-2022, 12:34 PM
  2. Replies: 2
    Last Post: 11-28-2014, 03:43 PM
  3. Replies: 8
    Last Post: 06-29-2014, 10:01 AM
  4. Replies: 3
    Last Post: 07-25-2012, 07:54 AM
  5. Replies: 2
    Last Post: 01-22-2012, 03:06 PM
  6. Automatically insert notes to a cell if conditions are met?
    By ski406 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-16-2010, 06:16 PM
  7. poplulate cell based on two conditions
    By Scire in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2006, 03:30 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