Management & CommerceVery hardBusiness analyst · Excel test
A2:A100 hold regions. What does =COUNTIFS(A2:A100, "North", A2:A100, "South") return, and which formula counts rows that are North or South?
- A. The number of North or South rows; no change is needed
- B. 0; use =COUNTIF(A2:A100, "North") + COUNTIF(A2:A100, "South")
- C. 0; use =COUNTIFS(A2:A100, "North" & "South")
- D. #VALUE!, because COUNTIFS cannot use the same range twice; use COUNTIF
Correct answer: B. 0; use =COUNTIF(A2:A100, "North") + COUNTIF(A2:A100, "South")
COUNTIFS joins its criteria with AND, and no cell can equal both North and South, so it returns 0. OR logic across values of one column is done by adding separate COUNTIFs (or with SUM(COUNTIF(range, {"North","South"}))).
Practise more Operations, Supply Chain & Business Analytics questionsOperations, Supply Chain & Business Analytics: notes and key points
More Operations, Supply Chain & Business Analytics questions
- A2:A5 hold Ramesh, Rakesh, Suresh and Rahul; B2:B5 hold 10, 20, 30, 40. What does =VLOOKUP("Ra", A2:B5, 2, FALSE) return?
- Cell A1 contains a single space character (it looks empty). What does =IF(A1="", "Blank", A12) return?
- A1 contains the text '5' (a number stored as text) and A2 contains 3. What do =SUM(A1:A2) and =SUM("5", 3) return?
- Table v(cust, city, amt) has rows (A, Pune, 100), (B, NULL, 200), (C, Pune, 50), (D, Goa, NULL), (E, NULL, 80). What does SELECT…
- Using the same table v, what does CASE WHEN amt >= 100 THEN 'High' WHEN amt >= 50 THEN 'Mid' ELSE 'Low' END return for customers C and D?
- Using table v, how many rows do these return? P: SELECT FROM v WHERE amt > 60; Q: SELECT city, SUM(amt) FROM v GROUP BY city HAVING…