Results 1 to 20 of 20

Difference between the SUBTOTAL(103) and COUNTA?

Threaded View

  1. #1
    Registered User
    Join Date
    05-02-2013
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    24

    Difference between the SUBTOTAL(103) and COUNTA?

    Hi all,

    I have a problem. In some cells A1:AD1 are the texts, the rest are empty.

    1. If I mark A2: Z2 and introduce a formula
    =--(COUNTA(OFFSET($A$1;;COLUMN($A:$Z)-1;;5))=5)
    completed Ctrl + Shift + Enter in these cells have values ​​0/1

    2. If I mark A3: Z3 and introduce a formula
    =--(SUBTOTAL(103;OFFSET($A$1;;COLUMN($A:$Z)-1;;5))=5)
    completed Ctrl + Shift + Enter in these cells have the same value as in the case of using COUNTA in step 1.

    3. If you have a formula for A4
    =IF(SUMPRODUCT(--(SUBTOTAL(103;OFFSET($A$1;;COLUMN($A:$Z)-1;;5))=5))=1;"OK";"")
    in the A4 I have the result of "OK" or "" depends on the content A1:AD1

    4. If you have a formula for A5
    =IF(SUMPRODUCT(--(COUNTA(OFFSET($A$1;;COLUMN($A:$Z)-1;;5))=5))=1;"OK";"")
    I have it in A5 #N/A (Ecel 2007) or ""

    My question:
    1. Why formula
    =IF(SUMPRODUCT(--(SUBTOTAL(103;OFFSET($A$1;;COLUMN($A:$Z)-1;;5))=5))=1;"OK";"")
    It is correct (result = OK) and the formula
    =IF(SUMPRODUCT(--(COUNTA(OFFSET($A$1;;COLUMN($A:$Z)-1;;5))=5))=1;"OK";"")
    It is no longer correct (result = #N/A or "")?

    After all, and in step 1 and step 2 are returned to the same horizontal arrays.

    2. In this particular case, what feature SUBTOTAL decides that the SUBTOTAL formula is correct?

    Sorry, I do not know English

    Thank you.

    Tomek
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Display percent difference for subtotal only.
    By brent_milne in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-27-2015, 12:28 PM
  2. Replies: 1
    Last Post: 09-18-2013, 04:10 PM
  3. SUBTOTAL and COUNTA
    By hungt in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-02-2013, 08:43 PM
  4. Replies: 8
    Last Post: 07-31-2012, 09:41 AM
  5. Subtotal - Delete zero Subtotal and prior rows that calculate to that zero Subtotal
    By Whatsherface in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2012, 08:37 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