+ Reply to Thread
Results 1 to 2 of 2

Count how often value changes in a column, ignoring blank cells

  1. #1
    Registered User
    Join Date
    02-27-2014
    Location
    Europe
    MS-Off Ver
    Excel 2010
    Posts
    1

    Count how often value changes in a column, ignoring blank cells

    Hi,

    I am trying to construct a formula which counts how often the value in a column changes within a time period, disregarding blank cells.
    Basically, there is an event on day D and I want to know how many times the value in another column switched from A to B (or v.v.) since D-15. The tricky part here is that there are also days with blanks.

    I have tried to do this using sumproduct, but in that case a change from an empty cell to a non-empty cell was also counted. The only way I have managed to obtain a result is by filtering out the blank cells, then copying and pasting the range elsewhere, applying =IF(A1<>A2,1,0), and then making a summation of that over the past 15 days. Since I have to count the value for hundreds of worksheets it would really help if there was less cumbersome way to do it.

    You will find a before file in attachment to help explain what I'm looking for.

    I would very much appreciate your help.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Count how often value changes in a column, ignoring blank cells

    It is not possible using worksheet functions

    You have to go for VBA approach with the use of worksheet Change Event


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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: 12
    Last Post: 03-04-2015, 04:28 PM
  2. [SOLVED] Sorting a text column while ignoring blank cells
    By mic2mic in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-30-2013, 04:58 AM
  3. Replies: 2
    Last Post: 10-04-2012, 03:19 PM
  4. Help with ignoring blank cells when drawing a column chart
    By Iibboh in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-13-2012, 04:24 PM
  5. Replies: 5
    Last Post: 08-05-2009, 02:43 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