+ Reply to Thread
Results 1 to 5 of 5

Count every time cell values change in a column?

  1. #1
    Registered User
    Join Date
    02-15-2011
    Location
    Florida
    MS-Off Ver
    Excel 2013
    Posts
    38

    Count every time cell values change in a column?

    Hi,

    Please see the attached file - is there any way I can count the number of times the values in column B change one from part number to another?

    Thank you for your help.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-01-2011
    Location
    Manila, Philippines
    MS-Off Ver
    2019
    Posts
    53

    Re: Count every time cell values change in a column?

    Hi tavlrb,

    Just to clarify, your question is on how to count the unique values in column B?


    Regards,
    Batman
    Simply hit the star button to say THANK YOU.

  3. #3
    Registered User
    Join Date
    02-15-2011
    Location
    Florida
    MS-Off Ver
    Excel 2013
    Posts
    38

    Re: Count every time cell values change in a column?

    Sorry for the lack of clarity - what I'm looking for is a way to analyze each cell one-by-one starting with B1 all the way to B813 and count the number of times the values (part numbers) change. For example there are five "change overs" between B1 and B20.

  4. #4
    Registered User
    Join Date
    04-01-2011
    Location
    Manila, Philippines
    MS-Off Ver
    2019
    Posts
    53

    Re: Count every time cell values change in a column?

    Hope that I catch it right. See attachment for the solution.

    I just used if and sum function.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-04-2016
    Location
    belgium
    MS-Off Ver
    excel
    Posts
    1

    Re: Count every time cell values change in a column?

    Hi Everyone,

    can someone please advise how I can apply the below code to entire column Z and column AB?

    Private Sub Worksheet_Change(ByVal Target As Range)

    '// Changed cell is Z6?? Change to suit
    '// Note now Z6 is tracked...
    If Not Intersect(Target, Range("Z6")) Is Nothing Then
    '// Increment tracker cell- Again, change to suit
    Range("AB6").Value = Range("AB6").Value + 1
    End If

    End Sub


    thanks

+ 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