+ Reply to Thread
Results 1 to 7 of 7

looking for non-blank column pairs

  1. #1
    Registered User
    Join Date
    02-20-2017
    Location
    dallas
    MS-Off Ver
    2016
    Posts
    3

    Question looking for non-blank column pairs

    I have a sheet with X rows, and columns A-Z

    I am looking for the number of instances where adjoining columns are non-blank. Put another way, the number of instances where the number of blank cells between columns is 0.

    So if A and B are non-blank, that is 1 instance. Then if L and M are non-blank, that would be instance 2
    If A, B, and C are non-blank, that would also be an instance: AB, then BC, 2 instances.

    TIA,
    WES
    Last edited by Gizmorama; 02-21-2017 at 12:01 PM.

  2. #2
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: looking for non-blank column pairs

    Hi -

    Copy and paste this formula is Cell AB1

    =SUMPRODUCT(NOT(ISBLANK(A1:Z1))*NOT(ISBLANK(B1:AA1)))

    This will count the number of non-blank adjacent cells in a given row.

    Hope that helps.
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  3. #3
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: looking for non-blank column pairs

    One more thing, if you want to include multiple rows, just change the ranges in the ISBLANK formula for however many rows you want. For example:

    =SUMPRODUCT(NOT(ISBLANK(A1:Z2))*NOT(ISBLANK(B1:AA2)))

    This would count the non-blank adjacent cells in two rows.

  4. #4
    Registered User
    Join Date
    02-20-2017
    Location
    dallas
    MS-Off Ver
    2016
    Posts
    3

    Re: looking for non-blank column pairs

    resolves as #N/A for each row.
    http://www.excelforum.com/attachment...1&d=1487696994

    sample.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: looking for non-blank column pairs

    Hi -

    The ranges you entered have to be the same size. B1:M1 and C1:N1. You had B1:N1 which is a bigger array than C1:N1, which makes Excel puke. I have fixed your formula. See attached.

    Hope this helps.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-20-2017
    Location
    dallas
    MS-Off Ver
    2016
    Posts
    3

    Re: looking for non-blank column pairs

    Sha-wing! Works

  7. #7
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: looking for non-blank column pairs

    Great! If you are happy with the results, please mark this thread as SOLVED per the instructions at the bottom of this post.

+ 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] Find similar coordinate pairs in a 2 column list
    By stockgoblin42 in forum Excel General
    Replies: 11
    Last Post: 06-11-2016, 05:40 PM
  2. Clustered Column Bar Graph - Change Groups/Pairs
    By DavidIII in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-05-2015, 11:18 AM
  3. Regression code that does not include blank pairs
    By mkeys4 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2013, 08:30 AM
  4. Counting Pairs of Adjacent Values in Same Column
    By Gregg Gonsalves in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-03-2013, 08:18 AM
  5. Sort Largest to Smallest For Column Pairs
    By bluestarcloudx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2012, 08:19 PM
  6. Excel 2007 : Can you counts pairs in a column?
    By TallyGD in forum Excel General
    Replies: 2
    Last Post: 05-30-2010, 12:16 PM
  7. Copying cells to the neighbouring column in pairs along Row 1
    By shmee150 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-13-2009, 12:23 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