Management & CommerceVery hardBusiness analyst · Excel test
B2:D5 is a table with four rows and three columns (B, C, D). What does =SUM(INDEX(B2:D5, 0, 2)) add up?
- A. The single value in C2 (row 0 treated as row 1)
- B. All four values in column B (B2:B5)
- C. The second row of the table (B3:D3)
- D. All four values in column C (C2:C5)
Correct answer: D. All four values in column C (C2:C5)
When INDEX is given 0 as the row number, it returns the whole column of the array. Column 2 of B2:D5 is C2:C5, so SUM adds those four values. A row number of 0 with a column of 0 would return the whole table.
Practise more Operations, Supply Chain & Business Analytics questionsOperations, Supply Chain & Business Analytics: notes and key points
More Operations, Supply Chain & Business Analytics questions
- A1 contains 5, A2 is empty, A3 contains the formula ="" (which shows nothing) and A4 contains the text x. What do =COUNTBLANK(A1:A4) and…
- B2:B4 hold unit prices 120, 80 and 50; C2:C4 hold quantities sold 10, 30 and 60. Which formula gives the quantity-weighted average price…
- Table a has key values 1, NULL and 2; table b has key values 1, NULL and 3. How many rows does SELECT FROM a JOIN b ON a.k = b.k return?
- Customers: Asha (1), Ravi (2), Meena (3). Orders (cid, amt): (1, 300), (1, 700), (2, 450), (3, 520), (3, 100). Which names does SELECT…
- Table r(region, rev) has N 200, S 300, E 500. What does ROUND(100.0 rev / SUM(rev) OVER (), 1) return for region S?
- A January cohort of 1,000 sign-ups has 600 active users in month 1 and 450 in month 2. An analyst reports 'month-2 retention of 75%'. What…