We read your photo as:
If your teacher wants Gold and Cobalt, rather than just 165 and 138, use: =VSTACK(INDEX(A4:A6,MATCH(MAX(F4:F6),F4:F6.0)).INDEX(A4:A6.MATCH(MIN(F4:F6).F4:F6,0)))
ScanSolve AI Answer
Answer
Step-by-step solution
5 stepsThis Excel formula uses several functions to identify the mineral names corresponding to the highest and lowest sales figures.
Understand the goal.
The formula aims to retrieve the names of the minerals that have the maximum and minimum sales from a list, assuming mineral names are in cells A4:A6 and their corresponding sales figures are in F4:F6.
Identify maximum and minimum sales values.
MAX(F4:F6)finds the largest sales value within the range F4 to F6.MIN(F4:F6)finds the smallest sales value within the range F4 to F6.
Find the position of these values.
MATCH(MAX(F4:F6), F4:F6, 0)finds the relative position (row number) of the maximum sales value within the F4:F6 range. The0ensures an exact match.MATCH(MIN(F4:F6), F4:F6, 0)finds the relative position (row number) of the minimum sales value within the F4:F6 range.
Retrieve the corresponding mineral names.
INDEX(A4:A6, MATCH(MAX(F4:F6), F4:F6, 0))uses the position of the maximum sales value to return the mineral name from the A4:A6 range (e.g., "Gold").INDEX(A4:A6, MATCH(MIN(F4:F6), F4:F6, 0))uses the position of the minimum sales value to return the mineral name from the A4:A6 range (e.g., "Cobalt").
Combine the results vertically.
VSTACK(result_for_max, result_for_min)stacks the two mineral names found in Step 4 into a single vertical array. This means if you enter this formula into a cell, it will spill the two results into two consecutive cells below the initial cell.
The formula:
=VSTACK(INDEX(A4:A6,MATCH(MAX(F4:F6),F4:F6,0)),INDEX(A4:A6,MATCH(MIN(F4:F6),F4:F6,0)))This formula will output a vertical array containing the name of the mineral with the most sales, followed by the name of the mineral with the least sales.
The final output of the formula will be:
(assuming Gold is the most sold and Cobalt is the least sold mineral, as implied by the image).
Try one yourself
A new problem that tests the same skill.
Still stuck on this one?
Ask a follow-up, and the answer starts from this question.