+ Reply to Thread
Results 1 to 10 of 10

Indirect Countifs formula Assistance

  1. #1
    Registered User
    Join Date
    02-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    19

    Indirect Countifs formula Assistance

    I am stumped! I want to thank you in advance for any help you can provide. Document example is attached.

    I highlighted in yellow where I am trying to write a formula. I want the formula to search the columns and find the column with the associted name then count the number of cells with Xs and the number of cells without Xs.

    Is there a formula that would do this?! Im stumped. I have tried multiple countifs without luck.
    Attached Files Attached Files
    Last edited by ScottDAndersen; 02-05-2018 at 01:10 AM.

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Formula Help

    In G2;
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In H2;
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Formula Help

    title updated....
    Last edited by protonLeah; 02-05-2018 at 03:22 PM.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    02-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Formula Help

    Thanks so much - your formula worked PERFECTLY when I used it in your spreadsheet, however, when I tried moving it over to my current spreadsheet I am struggling. I pasted my actual spreadsheet so you can take a look at what I am doing.

    The cell in yellow is the current formula I need to add that condition/logic to the current countifs formula. In orange is where I have the name that will be changing. On the NYT cancellations tab is where I have the names and x's. For this formula I want to only count the number of cells without X's.
    Attached Files Attached Files

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Indirect Countifs formula Assistance

    Thanks for changing the thread title.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Registered User
    Join Date
    02-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Formula Help

    Quote Originally Posted by kersplash View Post
    In G2;
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In H2;
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Bumping this to the top. Kersplash, do you think why it wouldn't work with this sheet?

  7. #7
    Registered User
    Join Date
    02-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Indirect Countifs formula Assistance

    After playing around with this formula it looks like the issue is with the row reference because the data I am referencing is on another tab. Is there a way to make this row 8 and 16 reference to a different tab?

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

    Re: Indirect Countifs formula Assistance

    Try

    =COUNTIF(INDEX('NYT Cancellations'!$F$4:$U$1464,0,MATCH($E$6,'NYT Cancellations'!$F$1:$U$1,0)),"x")

  9. #9
    Registered User
    Join Date
    02-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Indirect Countifs formula Assistance

    Quote Originally Posted by Jonmo1 View Post
    Try

    =COUNTIF(INDEX('NYT Cancellations'!$F$4:$U$1464,0,MATCH($E$6,'NYT Cancellations'!$F$1:$U$1,0)),"x")


    This worked perfectly on its own, however when i try to combine it with my current formula (below) I am getting the #VALUE! error. The formula I am trying to add this new logic to is below.

    =COUNTIFS('NYT Cancellations'!$D:$D,Invoices!$C$12,'NYT Cancellations'!$A:$A,">="&$O$8,'NYT Cancellations'!$A:$A,"<="&$P$8)

  10. #10
    Registered User
    Join Date
    02-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Indirect Countifs formula Assistance

    I got it - thank you soo much! I changed my entire column references to start and end with 4 and 1464. You are awesome!

+ 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: 8
    Last Post: 09-22-2017, 05:41 AM
  2. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  3. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  4. 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

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