简体   繁体   中英

Excel formula to find Max and return a column from the matching row

My data looks some thing like this:

Product 1 Date Site1_Sales Site2_Sales Site2_Sales
x1 1-Jan 100 200 300
x2 2-Jan 60 51 150
X1 2- Jan 110 30 40

There will be 1000s of rows with repeated Product but with unique dates. This is what I would like to find:

  1. What was the Max sales for a product? and on which date? I tried using Maxifs but it ends up with value error it looks it can handle only continuous ranges.
  2. What was the sum of sales for a product for specific period eg first 10 days?

Any help is really appreciated. Thank you

  1. see “Remarks” about #value error:

https://support.microsoft.com/en-us/office/maxifs-function-dfd611e6-da2c-488a-919b-9b6376b28883

  1. SUMIF works in the same way as MAXIF (eg you could use a start date and end date as multiple criteria)

  2. FILTER should help you to find the date(s) of max. Sales as well

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM