+ Reply to Thread
Results 1 to 2 of 2

Need a formula to answer how many times a value changes within an array

  1. #1
    Registered User
    Join Date
    11-21-2011
    Location
    boston, ma
    MS-Off Ver
    Excel 2007
    Posts
    25

    Need a formula to answer how many times a value changes within an array

    Please help if possible.

    Example:

    A1 ----- B1 --- C1 --- D1 --- E1 --- F1 -----G1

    CAT --- CAT ---Dog ----Dog ----Dog --- CAT --- CAT




    A2 ---- B2 -----C2 ----- D2 -------E2 -------F2 --------G2
    CAT ---DOG ---DOG ----Sheep ---Sheep --Monkey ---Monkey



    Can you help come up with a formula to answer 2 for the number of changes in the array A1:G1, and 3 in the array A2:G2?

    Thank you.
    -Andrew

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

    Re: Need a formula to answer how many times a value changes within an array

    You can use this in a cell on row 1 (e.g.H1):

    =SUMPRODUCT(--(A1:F1<>B1:G1))

    then copy down.

    Hope this helps.

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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