+ Reply to Thread
Results 1 to 4 of 4

Coutifs formula

  1. #1
    Registered User
    Join Date
    08-16-2014
    Location
    dublin
    MS-Off Ver
    2010
    Posts
    24

    Coutifs formula

    Hi,

    can you see the attached file and let me know if there is anything you can help with?

    I am using this type of formula: =COUNTIFS(Sheet1!$E$2:$E$43225, A2,Sheet1!$F$2:$F$43225,"="&"OCT") but can report only one column.


    Regards
    TEST.xlsx

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Coutifs formula

    For the question you actually asked
    "I would like to know in column "code 1" sheet 2, how many times the value "1" appears in column RFT; RFT1:RFT 2;RFT3."
    That would be
    =COUNTIF(Sheet1!$A$2:$C$54,1)

    But reading between the lines, You probably want
    =SUMPRODUCT((Sheet1!$A$2:$D$54=1)*(Sheet1!$F$2:$F$54="Oct"))

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Coutifs formula

    You can use a SUMPRODUCT

    Changing row 1 in sheet2 to A,1,2, In C2 copied across and down

    =SUMPRODUCT((Sheet1!$E$2:$E$43225 =$A2)*(Sheet1!$F$2:$F$43225 = "OCT")* (Sheet1!$A$2:$D$43225= C$1))
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    08-16-2014
    Location
    dublin
    MS-Off Ver
    2010
    Posts
    24

    Re: Coutifs formula

    Hi thanks, there formulas are great, But I don't get the exact results I'd like. With the formula: =COUNTIFS(Sheet1!$E$2:$E$43225, A2,Sheet1!$A$2:$A$43225,"="&"1") I get the results below, It calculates the number of A in column A. I just need to drag it down and it calculates for the other PTCs.

    PTC "1"

    APTC 22
    EPTC 9
    JPTC 6
    LAPTC 0
    NAPTC 0

    Now what I want, it is a similar formula enabling me to take in account the "1" in the column B, C, and D as well. With the results above, I know that there is 22 "1" in the column A for APTC, but I need the formula to report the "1" in the Colum B, C, D as well.

    Cheers

+ 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. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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