COUNTIFS Formula Question

I'm having a tough time trying to figure out this formula:
=COUNTIFS(Master Table :: F,"Michael",Master Table :: I, " ")
So I need to count how many times "Michael" comes up in column "F" AND column "I" has ANY text, numerics, characters etc...
In other words, how many times "Michael" comes up in column "F" AND when column "I" is NOT empty in the same row.
Also, if you help me out I will make a $20 donation to the charity of your choice.....or your paypal lol.  I will need help in the future too so if you have skype, speak english, and work fast, you'll have a job too!
Thank you in advance!
-Mike

Hi Mike,
=COUNTIFS(Master Table :: F,"Michael",Master Table :: I, " ")
Here's the syntax for COUNTIFS:
COUNTIFS(test-values, condition, test-values…, condition…)
ALL conditions must be met for an item to be included in the count.
If no comparison operator is specified, "=" is assumed.
So your formula will count only those cases where column F contains "Michael" AND the same row of column I contains (only) a single space.
Here's an example that counts all the Text items in the second column, but not the numerical ones:
=COUNTIFS(B,"Michael",C,"> ")
A more reliable count can be had using an auxiliary column to contain a value derived from the contents of column C, then testing that column for the second IF:
This should work for any content displayed in column C.
The auxiliary column (D) may be hidden.
Regards,
Barry

Similar Messages

  • Any idea why in Numbers my COUNTIFS formula keeps breaking? For daycare purpose, I use a spreadsheet that helps me to count how many children I have at 3:15, 4:15 and 5:00. COUNTIFS works well when I create it but breaks after a while. Also I am using a p

    Any idea why in Numbers my COUNTIFS formula keeps breaking? For daycare purpose, I use a spreadsheet that helps me to count how many children I have at 3:15, 4:15 and 5:00. COUNTIFS works well when I create it but breaks after a while. Also I am using a pop-up menu in the cells in time format, does it have any consequence on the formula?

    Any idea why in Numbers my COUNTIFS formula keeps breaking? For daycare purpose, I use a spreadsheet that helps me to count how many children I have at 3:15, 4:15 and 5:00. COUNTIFS works well when I create it but breaks after a while. Also I am using a pop-up menu in the cells in time format, does it have any consequence on the formula?

  • Formula Question: What is the formula to find how many duplicates I have in my table of data. e.g Sally, Sally, Sally, Tom, Tom, Ben. Answer by formula Sally 3, Tom 2, Ben 1

    Example of Data:
    A1
    2222222345
    2222222345
    2222222345
    2222222345
    2222222346
    2222222346
    2222222347
    2222222347
    2222222347
    2222222347
    2222222347
    2222222347
    Examplae of answer I would like the formula to provide:
    I also can not manually type coullum A I need the formula to auto full that aswel. As there is to much data.
    A2
    B2
    2222222345
    4
    2222222346
    1
    2222222347
    6

    Hi Jessica,
    Here's my take on it, using the sample data in your original post, and using the same solution with the names in your question.
    In the Data table, column A contains the list of numbers in your original post. I've rearranged them in random order to demonstrate that the order of entry does not matter for this method.
    Data::Column B contains the names in your question, each assigned to one of the numbers in the body of your post.
    Column C contains an index showing the first occurrence of each distinct number in Column A. This index is used to fill both columns in the Summary by Number table.
    Column D contains an index showing the first occurrence of each distinct name in Column Bt. This index is used to fill both columns in the Summary by Number table.
    Both formulas are the same, except for the columns referenced (highlighted in the second formula below).
    Formula: Data::C2: =IF(COUNTIF($A$2:A2,A2)=1,MAX(C$1:C1)+1,"")
    Formula: Data::D2: =IF(COUNTIF($B$2:B2,B2)=1,MAX(D$1:D1)+1,"")
    Both formulas require that row 1 be a Header Row, and that the contents of C1 (and D1) be Text, nothing, or a zero. Both formulas are filled to the end of their respective columns.
    Summary by Number contains two formulas.
    A2: =IF((ROW()-1)>MAX(Data :: $C),"",LOOKUP(ROW()-1,Data :: $C,Data :: $A))
    B2: =IF(LEN(A2)>0,COUNTIF(Data :: A,A2),"")
    Both are filled down to the end of their respective columns.
    The first formula checks if its row number minus 1 is greater than the maximum value in the index column. If that is TRUE, there are no more values to look up, and the formula returns an empty string (which appears 'blank'). If it is FALSE, the LOOKUP the value in Data::column A corresponding to the value of ROW()-1 in Data::column C.
    The second formula checks the LENgth of the entry in the column to its left. If the length is greater that 0 characters, there is a countable value in the cell, and the formula passes control to COUNTIF, which counts the number of times that value is found in Data::column A. If the length of the value in the cell to the left is zero, then the cell contains an empty string, and the formula passes control to the part after the last comma, which enters an empty string in the cell containing the formula.
    The formulas in Summary by Name are identical to these except for the (bolded) references. These are incremented to the right; C -> D, and A -> B to match the Data:: columns containing the names and the names index.
    Regards,
    Barry

  • Using COUNTIF formula using controlled data in cell pop-up menu

    I'm making a spread sheet that involves adding up the number of times a certain item occurs in a log. A pop-up menu is used in the cell to control the inputs of the log. I'm not sure how to go about using the COUNTIF function to count the number of times each item occurs. The "workout tracker" template in Numbers '09 does what I need to do when counting the "number of days exercised", but I don't understand how it was done. Can anyone explain this to me?
    My log table is: (Dashes denote spacing)
    Date---------Log Item-----Time
    01/03/09---Item 1-------9:00am
    02/03/09---Item 2-------12:15pm
    03/03/09---Item 3-------9:10am
    (you can only chose Item 1, 2 or 3 from a drop down list, you can't manually input anything else)
    I want to use a countif command for a table that is:
    -----------No. of Occurances
    Item 1-------1
    Item 2-------1
    Item 3-------1

    I'm guessing you are curious about the way they did COUNTIF and what "Indicator" is. If you unhide all columns in the Workouts table, you'll see a column D with the header "indicator". The reference to "Indicator" in the COUNTIF functions refers to the entire column. There is a fairly long formula in the cells of that column but, basically, it just populates it with 1-3 depending on what you pick in the Activity popup.

  • Countif formula, how to make it not count a value if another cell is a certain value.

    I have this formula below:
    =IF(A21="","",IF(COUNTIF(G21:G50,">0"),"A","B"))
    I would like to tell it that if a corresponding row in column B has a value of: "Calibration" then to ignore that row and do not add the value to the countif.
    I thank you in advance for any help you can provide!
    Dustin Shepard

    Hopefully, this will do it:
    =IF(A21="","",IF(COUNTIFS(G21:G50,">0",B21:B50,"<>Calibration"),"A","B"))
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Variable and Formulas Question

    Hi folks,
    I use BOXI r2 sp 4 and I have a general question re: variables and formulas in Webi reports.
    Billing Year Month and Cost of Service are standard time dimensions and measures that I use in my Webi reports and they were created at the semantic level.
    Normally, I create cross tab reports with the Billing Year Month along the horizontal axis and the Cost of Service in the Body (Business Unit or Department would be placed along the vertical axis).
    For some reason, when I use formulas/variables to modify the standard time dimensions (like changing Billing Year Month to Year), the values for the Cost of Service are returned incorrectly.
    Example.
    Semantic object: Billing Year Month = (yyyy-MM) returns correct values
    Report variable: Substr([Billing Year Month;1;4) returns incorrect values
    Can anyone please explain this problem?
    Thanks,
    Wannetta

    Hi John,
    The attribute of the Billing Year Month at the semantic level is a character type.
    After reading your response, I realize that I may not have been clear regarding the problem.
    The following formula does return the correct value in and of itself.
    >=Substr([Billing Year Month];1;4
    If I create a variable and then drag it onto my crosstab, it returns the correct value ONLY within the header.
    When I drag the cost of service measure onto the crosstab; the header values remain the same but values in the body either disappear or the change to reflect incorrect values.
    I thought one of the prime features of Webi was the ability of the Report Developer to create variables/formulas and use them in the headers to manipulate the semantic "measures" in the body (read: output) at the report level.
    Is this a matter of semantic design or does Webi not possess this capability?
    Or, is the issue entirely different?
    Thanks!
    W.

  • BIG Numbers formula Questions-looking for clarity and direction

    Besides a general lack of computer knowledge, here is my problem. I'll try to make it clear and easy to read.
    I'm working on a spreadsheet that would organize and keep track of student's choices and payments for a ski retreat. There are 4 checkbox columns for their choices (ticket, ski rental, board rental, tubing). All of these have different costs associated with them, in addition to the basic cost for the retreat.
    Using basic arithmetic and an IF formula in the header column I can calculate each student's Total Cost.
    =Retreat Cost+(IF(Lift Ticket,TRUE)*50+IF(Ski Rentals,TRUE)*30+(IF(Snowboard Rental,TRUE)*50+(IF(Tubing Tickets,TRUE)*35)))-the (*number is the cost)
    This works, although it does return the error that the formula returns a Boolean in place of a number. If there is no easier way to write my formula, how do I turn off that warning-I can't take the glaring reminder of a mistake!
    Students need to turn in a deposit, generally set at $50. Using a Deposit column with checkboxes, I worked out how much a student owes after their deposit. Once I check the box, their Balance shows Total Cost minus the general $50.
    =Total Cost-(IF(Deposit,TRUE)*50)
    Occasionally a student will overpay or underpay their deposit, and right now I'm just going in and manually trying to readjust. I just can't figure out any other option.
    I'd like to keep track of how much money is coming in. Currently this is my formula.
    =SUM(COUNTIF(Students :: Deposit,TRUE)*50+SUMIF(Students :: Paid,TRUE,Students :: Balance))
    My main issue really comes down to the varying deposits. If someone pays $60, I have to check the box, subtract 10 from their balance and add 10 to the student payments. I also wanted the Balance column show "0" once the Paid column was checked, but that was definitely out of my skill set!
    Also, I'm going to try to paste a screen shot. Any help/advice would be greatly appreciated! I'm new to working with numbers (1 week baby!) and honestly, the vast majority of my knowledge has come from reading the message board, so thanks!

    =Retreat Cost+(IF(Lift Ticket,TRUE)*50+IF(Ski Rentals,TRUE)*30+(IF(Snowboard Rental,TRUE)*50+(IF(Tubing Tickets,TRUE)*35)))-the (*number is the cost)
    I would change it to somehting more like this...
    =Retreat Cost+(IF(Lift Ticket,1,0)*50)+(IF(Ski Rentals,1,0)*30)+(IF(Snowboard Rental,1,0)*50)+(IF(Tubing Tickets,1,0)*35))
    (This last part I don't get at all... >-the (*number is the cost))
    The form for an if is If(Test,True,False) meaning if the TEST is true then answer whatever replaces the word true in the description. I think you thought you had to type true. Common mistake if you haven't used them before.
    Look at one of my If's...
    IF(Lift Ticket,1,0)*50
    If the lift ticket box is checked, then answer 1 and multiply by 50, if not answer 0 and multiply by 50, taking that cost to zero.
    Just repeat for each cost and your done...
    Does that help get you on the right track?
    Jason

  • ASO OTL Formula Question

    I am attempting to create a scenario that presents lagged data (ie in march show the data for February). Sample of formula.
    CASE
    WHEN IS ([Jan],[Time].CurrentMember)
    THEN ( ([Dec],[2008 Actual]))
    WHEN IS ([Feb],[Time].CurrentMember)
    THEN ( ([Jan],[2009 Actual]))
    WHEN IS ([Mar],[Time].CurrentMember)
    THEN ( ([Feb],[2009 Actual]))
    WHEN IS ([Apr],[Time].CurrentMember)
    THEN ( ([Mar],[2009 Actual]))
    WHEN IS ([May],[Time].CurrentMember)
    THEN ( ([Apr],[2009 Actual]))
    WHEN IS ([Jun],[Time].CurrentMember)
    THEN ( ([May],[2009 Actual]))
    WHEN IS ([Jul],[Time].CurrentMember)
    THEN ( ([Jun],[2009 Actual]))
    WHEN IS ([Aug],[Time].CurrentMember)
    THEN ( ([Jul],[2009 Actual]))
    WHEN IS ([Sep],[Time].CurrentMember)
    THEN ( ([Aug],[2009 Actual]))
    WHEN IS ([Oct],[Time].CurrentMember)
    THEN ( ([Sep],[2009 Actual]))
    WHEN IS ([Nov],[Time].CurrentMember)
    THEN ( ([Oct],[2009 Actual]))
    WHEN IS ([Dec],[Time].CurrentMember)
    THEN ( ([Nov],[2009 Actual]))
    END

    Question 1: Is there a problem with what you have? Does it work? Is it slow? are you looking to do it better?
    Question 2: Do you have Year and Scenario in the Same dimension? If you do, you should change that and break them out, that is not a good design methodology
    If they were separate you could do something simple like
    CASE
    WHEN IS ([Time].CurrentMember, [Jan])
    THEN ([Actual], [Dec], [Year].CurrentMember.lag(1))
    ELSE ([Actual], [Time].CurrentMember.lag(1)
    END

  • DTP - Formula - Question

    Hello,
    I want to create a new formula in DTP (DSO to Cube).
    The new formula should fill new key figure. In long description the formula should look like:
    = summation ((If(.....
    The question is about "summation". The only area where I can change is in key figure directly.
    Question:
    Is it not possible in formula? Is it even necessary in formula?
    Thanks for input.

    .

  • Countif formula and checkbox

    Hey guys, I don't know if this can be done but I'm guessing you guys can help me. I have a table with a description (with 4 different types of description) on column B and a checkbox on column H. I need to count how many items of each description that are not checked are there in my table. Is this possible?

    GaToRMade wrote:
    I have a table with a description (with 4 different types of description) on column B and a checkbox on column H. I need to count how many items of each description that are not checked are there in my table. Is this possible?
    Hi G,
    Yes, but the function you're looking for is COUNTIFS, which matches the count to more than a single condition.
    Formulas:
    E2:  =COUNTIFS(A,FALSE,B,D2)
    F2:  =COUNTIFS(A,TRUE,B,D2)
    You'll find details on COUNTIFS on page 248 of the iWork Formulas and Functions User Guide, in Chapter 10, Statistical Functions.
    The guide, and the Numbers '09 User Guide are both available for download through the Help menu in Numbers '09. Both are useful to have around.
    Regards,
    Barry

  • Formula Question for calculating % Revenue Share in Webi Report

    I am trying to calculate the % Revenue Share for a given month as a % of the total revenue for that month in the report.  This should be across all sales divisions for a given month.  I'm using the formula "=Sum([Invoiced Product Revenue]) ForEach ([Calendar Year/Month]", but it's not calculating correctly. It works fine when my report only includes 1 month, but I'm running the report for a full year and the report breaks down the Invoiced Product Revenue by month.  I've tried adding "In Report" at the end of my formula but that is not working either.  I would expect that the % Revenue Share would not re-calculate the monthly % Revenue Share every time I add additional months in the input control.  I would expect that the January 2013 % Revenue Share should remain constant even if I select additional months to be added to my report.
    This product of this calcuation is setup to reflect as a percentage.  Any thoughts on what I need to tweak?

    Hi,
    What is your output when you create vertical table as below
    Col1   ||                  Col2                 ||                          Col3                               |
    Month || [Invoiced Product Revenue] || Sum([Invoiced Product Revenue]) In Block  |
    You can try using In Block , Break , Section or Report .
    Or
    if you have year then use year in report & use for each with year .

  • Formula Question.. Perhaps obvious

    Hi All,
    I believe I seen something of what I'm looking for in excel so I'm not sure the probability of it working in numbers (hope it does). I'm current developing my own account spreadsheet and trying to figure out a formula where;
    Cell A3 is a balance (or entered) value $10.00
    Cell C3 has a recurring value .50¢
    What I would like or looking for is the formula that takes into account what is entered (A3) plus the value of C3, without the use of another cell. The formula would be in A3. Is this possible?
    Trying to avoid additional cell computations especially as Numbers can not lock or protect cell content.
    Ann

    Ann G wrote:
    Cell A3 is a balance (or entered) value $10.00
    Cell C3 has a recurring value .50¢
    What I would like or looking for is the formula that takes into account what is entered (A3) plus the value of C3, without the use of another cell. The formula would be in A3. Is this possible?
    No.
    Two issues:
    Whatever you enter into a cell replaces what was there before. If A3 contained a formula, then the entered value would replace that formula.
    A cell cannot reference itself, nor can it reference a cell whose value depends on it.
    Regards,
    Barry

  • RPD Formula question

    I am trying to create a logical column that returns a % value. I can get the math to work correctly in Answers, but I am having a difficult time converting the formula to the RPD layer.
    Example:
    Assume data as below:
    Geography Channel Sales
    NYC A 100
    NYC B 200
    NYC C 300
    NYC D 400
    I want to take Sales at the Channel Level, and divide that by total of all Sales at the City Level (Regardless of Channel)
    Result would be like:
    Geography Channel Sales Index (Channel level sales, divided by sum of all sales for that city)
    NYC A 100 10% (100/1000)
    NYC B 200 20% (200/1000)
    NYC C 300 30% (300/1000)
    NYC D 400 40% (400/1000)
    In Answers, this is easy. Basic formula is:
    Sales / SUM(Sales BY City)
    How would I go about achieving this in the RPD, as it does not allow the SUM BY construct.
    I tried using FILTER, but I am getting confused with the syntax.
    Any help appreciated.

    You have to create a level based measure for this. Create a geography level sales metrics. what you need to is duplicate the sales metric rename to geography sales, and set the level as Geography. SO it will always return the sum(sales) at geography level. to set the level you need to have Dimensional hierarchy for geography dim.
    then create a new logical column saying sales/geography sales.

  • Group on a formula question

    Hi everyone!!
    What I have so far is: 
    NCM-Formula
    If isnull {Billing_Data22.NCM Name} Then False
    So I want to group on {@NCM-Formula}, and make sure that if {Billing_Data22.NCM Name} is a null value then no records show up on the report.
    Advice..?
    Thanks!

    Abhilash,
    I'm probably not describing this accurately.   I'm grouping on {Billing_Data22.NCM Name}.  This field has null values sometimes in the raw data in Access.  There are still records showing up for rows that do not have a value in {Billing_Data22.NCM Name}.  I'm trying to just show records when there are values for {Billing_Data22.NCM Name}.  So I'd like the report to only SELECT records when there is a value for {Billing_Data22.NCM Name}. 
    Thanks!!
    Rich

  • Parameter based on formula question

    Post Author: mmishkin
    CA Forum: Formula
    I have a formula that calculates a date, I want to create a parameter based on this formula. When I go through adding a new parameter it only shows me my table fields and not my formulas. Can you make a parameter in crystal based on a formula??

    Post Author: mmishkin
    CA Forum: Formula
    Sorry, I don't think I was very clear.
    I have a formula field that is a date/time field . I want to create a parameter to select this formula. When I make a parameter it will not let me select any fields other then my database fields (all of my formulas are not listed).  Can I use a formula in a paramenter? I don't remember having this issue before so i'm sure I must be missing something. I made sure the parameter data type was date/time.

Maybe you are looking for

  • Mapping of Loan to Vendor Account

    Dear Experts, As per my issue, I have created Vendor Account, mapped it with employee number as well. I have done all the configuration settings. When an employee has single loan, in that case, this works perfectly fine, going to a specific clearing

  • Change Computer Network Name

    Hi all, I'm trying to change the network name of my computer that windows pcs use to connect. Currently, to connect to my computer, I have to type "\\new-host.linksys\" in explorer to connect to my macbook. I've found where to change the "workgroup"

  • Need Help Synching 2 playlist w/o deleting songs

    i went to http://docs.info.apple.com/article.html?artnum=61148 i have ituns 7.0.1.8 and from the link below it says in like step 3 to go to the "source" pane and i caouldntfind it. were is it at? also this is a friends ipod hat i am putting some song

  • How can change the Public IP in SAP

    Hi, How can I change New Public IP address  in PRD/DEV server for remote access. Thanks in Advance Rgds Tapovardhan Singh

  • Preparing for Encore

    I am using CS4. My computer has very little else on it as it is fairly new. I have a quad processor and 8 gig RAM. I have a timeline of 60 minutes. Still with motion background and music. I made 6 timelines, rendered them and put them in a master tim