+ Reply to Thread
Results 1 to 5 of 5

Count if cells contain data for every alternate column

  1. #1
    Registered User
    Join Date
    12-17-2013
    Location
    South Yorkshire
    MS-Off Ver
    Excel For Mac 2011
    Posts
    4

    Count if cells contain data for every alternate column

    I have the following formula which works fine to total the numbers in each alternate column for a row - =SUMPRODUCT(--(MOD(COLUMN(G7:OO7)-COLUMN(G7),2)=0),G7:OO7)
    What I need to do is the same but just count how many cells contain data within the same range as the above formula - so counting alternate columns e.g. G7, I7, K7, M7 e.t.c
    Is this possible? and is there such a thing as COUNTPRODUCT?
    Any help much appreciated
    Thanks

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Count if cells contain data for every alternate column

    Try:
    =SUMPRODUCT(--(MOD(COLUMN(G7:OO7)-COLUMN(G7),2)=0))
    Quang PT

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Count if cells contain data for every alternate column

    May be this......

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Registered User
    Join Date
    12-17-2013
    Location
    South Yorkshire
    MS-Off Ver
    Excel For Mac 2011
    Posts
    4

    Re: Count if cells contain data for every alternate column

    =SUMPRODUCT(--(MOD(COLUMN(G7:OO7)-COLUMN(G7),2)=0),--(G7:OO7<>"")) worked a treat.
    Thanks a lot for your help

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Count if cells contain data for every alternate column

    Glad to help you. Thanks for the feedback.
    If you have got the solution, please mark your thread as solved.
    Moreover you may also click on * (star) to Add Reputation to those who have put their time and efforts to help you in this forum. This is another way to say thanks to them.

+ 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. [SOLVED] Copy alternate Column Data
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-08-2013, 11:40 AM
  2. Replies: 9
    Last Post: 06-08-2012, 06:22 PM
  3. Copy Alternate cells of a Column
    By bhattu in forum Excel General
    Replies: 6
    Last Post: 10-26-2011, 02:50 PM
  4. Get data from alternate cells from another worksheet
    By youdish in forum Excel General
    Replies: 1
    Last Post: 04-13-2010, 12:48 PM
  5. Transpose the data in alternate column
    By hputhraya in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-22-2010, 06:48 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