Suppose you have data for products, sales and regions.You are asked to figure out the maximum sales generated by Product B. The data is shown in the image below.
Download the workbook
Assuming you have data in range B3:D14. (See the image below)
To calculate the maximum sales generated by Product B.
Download the workbook
Assuming you have data in range B3:D14. (See the image below)
To calculate the maximum sales generated by Product B.
=MAX(IF(B3:B14="Product B",D3:D14))Since the above formula is an array formula, press CTRL SHIFT ENTER to confirm it.
After pressing CTRL SHIFT ENTER, the formula will look like :
{=MAX(IF(B3:B14="Product B",D3:D14))}
Multiple Criteria
To calculate the maximum sales generated by Product B in East region .
=MAX(IF((B3:B14="Product B")*(C3:C14="East"),D3:D14))Since the above formula is an array formula, press CTRL SHIFT ENTER to confirm it.
After pressing CTRL SHIFT ENTER, the formula will look like :
{=MAX(IF((B3:B14="Product B")*(C3:C14="East"),D3:D14))}
Download the workbook
Post a Comment