简体   繁体   中英

Excel Array Formula Assistance

I'm after a bit of Excel help and was hoping one of you might be able to oblige. I have a sheet of data (exported from Apple Health) that essentially contains columns for date, hour, number of steps. Sample data...

样本数据

I've managed to create an array formula that calculates the max number of steps in a single day, using the following...

{=MAX(SUMIF(Table1[DATE],Table1[DATE],Table1[STEPS]))}

I now want to create another formula that tells me which date that was.

I'm familiar with Index and Match, but not having much luck.

Any help and assistance appreciated.

Thanks :)

To add to my comment in the OP:

This formula will show the maximum number of steps for the required date, where the required date is entered in cell I6 .
{=MAX(IF(Table1[Date]=$I$6,Table1[Steps]))}

This formula will return the date:
{=INDEX(Table1[Date],MATCH(MAX(IF(Table1[Date]=$I$6,Table1[Steps])),Table1[Steps],0))}

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