+ Reply to Thread
Results 1 to 3 of 3

Get number of "non-sum-zero" columns

  1. #1
    Registered User
    Join Date
    06-05-2012
    Location
    Bern, Switzerland
    MS-Off Ver
    Excel 2003
    Posts
    62

    Get number of "non-sum-zero" columns

    Hi,

    I have a table which contains numbers. The table has between 1 and 8 columns (and a fixed number of rows). I need to find out how many columns it has. The number of columns is given by the last column which has a sum greater than 0 (or by the column number of the first column with sum equal zero, minus 1).

    Does somebody have an idea to do this without VBA, e.g. with LOOKUP(SUM())?

    Thanks!!
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Get number of "non-sum-zero" columns

    Perhaps with the aid of a helper row...

    Using COUNTIF and COUNTBLANK formulas. See attached
    Attached Files Attached Files
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    06-05-2012
    Location
    Bern, Switzerland
    MS-Off Ver
    Excel 2003
    Posts
    62

    Re: Get number of "non-sum-zero" columns

    Thanks, Ace_XL!

    I don't want to use helper columns or rows. In the real workbook, there is a worksheet I work on (where the formula goes), and there are plenty of input sheets, which I read but I don't want to change.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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