+ Reply to Thread
Results 1 to 4 of 4

Countif "1" in two nonconsecutive columns

  1. #1
    Registered User
    Join Date
    01-13-2011
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Countif "1" in two nonconsecutive columns

    I've been trying for hours to do the following:

    I have two columns not next to each other -- i.e. A and F. I want to count how many times the number 1 appears in the same row in both columns.

    I've tried various countif and sumproduct formulas but nothing is right. I'm not sure what I'm missing.

    Any help appreciated.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Countif "1" in two nonconsecutive columns

    If as implied by your profile you're using XL2007 then use COUNTIFS

    Please Login or Register  to view this content.
    For backwards compatibility purposes:

    Please Login or Register  to view this content.
    note entire column references should not (can not pre XL2007) be used

  3. #3
    Registered User
    Join Date
    02-20-2007
    Posts
    50

    Re: Countif "1" in two nonconsecutive columns

    =countif(a13:f13,1)


    will get desired result
    Last edited by DonkeyOte; 01-13-2011 at 03:19 PM. Reason: removed unnecessary quote

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Countif "1" in two nonconsecutive columns

    I'm afraid not - it would simply count how many times 1 occurs in the entire data set (we also don't know if there is numeric content B:E)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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