+ Reply to Thread
Results 1 to 7 of 7

How to count the Data shifts from value to blank in a row

Hybrid View

  1. #1
    Registered User
    Join Date
    09-20-2016
    Location
    Bangalore
    MS-Off Ver
    2013
    Posts
    32

    How to count the Data shifts from value to blank in a row

    Hi Everyone,

    I am looking for a excel function which is able to count the number of times data shifted from any integer value to null value. Attached demo file for better understand. Thanks in advance.

    required demo.PNG
    Attached Files Attached Files

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

    Re: How to count the Data shifts from value to blank in a row

    Try this:

    =COUNTIFS(A2:P2,"<>",B2:Q2,"")
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: How to count the Data shifts from value to blank in a row

    The only way I know you can count colours in cells is with a UDF.

    You can find one here; https://excelribbon.tips.net/T011725...th_Colors.html

    You could then use this formula to get your result;

    Formula: copy to clipboard
    =(countCOLORIF(B3,B3:Q3)+countCOLORIF(F3,B3:Q3))/2


    Any use to you?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,267

    Re: How to count the Data shifts from value to blank in a row

    It's not a colour count question, Paul - the colours are there just to help illustrate what's required. It's counting when there is a null value after an integer.

  5. #5
    Registered User
    Join Date
    09-20-2016
    Location
    Bangalore
    MS-Off Ver
    2013
    Posts
    32

    Re: How to count the Data shifts from value to blank in a row

    Hi AliGW,

    It worked as accurate as per my requirement. Thank you so much for saving loads of time.

  6. #6
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: How to count the Data shifts from value to blank in a row

    Hahahaha - That serves me right for trying to help before I've got enough coffee in my system.

    #FAIL


  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,267

    Re: How to count the Data shifts from value to blank in a row

    You're welcome!

    Paul - been there, done that, got the T-shirt!!!

+ 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: 08-08-2017, 02:58 PM
  2. Replies: 8
    Last Post: 03-24-2016, 08:13 PM
  3. Count data up to before there is a blank
    By Charlene.loo in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 08-13-2014, 07:46 PM
  4. [SOLVED] Count the total number of shifts worked
    By Schoeii in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-03-2013, 12:41 AM
  5. [SOLVED] Find Last Row Containing Data (DO NOT count blank rows at the end)
    By ryanmorris in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2012, 02:06 PM
  6. Counting data in non blank cells and exclude certain data from the count
    By JohnG73 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-04-2007, 04:08 PM
  7. [SOLVED] Count number of shifts...
    By batman07@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-24-2006, 09:00 AM

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