1

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...

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 :)

4
  • make a pivot table to summarize your table 1 and set it up so you can read what you ask for from there Commented Sep 9, 2016 at 9:31
  • I was hoping to do it without having to create a pivot or any additional columns. Personal challenge as much as anything to further my knowledge in Excel. :) Commented Sep 9, 2016 at 9:34
  • 2
    I see, and I guess you will learn that the hard way in due time as you will be given old near-impossible-to-read excel workbooks were the user have build it all from scratch with his or her own excel formula. Take the opportunity to learn how to buid stuff with standardized Tools that are fast, and easy to understand and maintain! Commented Sep 9, 2016 at 9:42
  • Won't that formula return the total number of steps for the day rather than the maximum? i.e. using your sample data it returns 4711 (total of visible data) rather than 3383 (maximum value in 04/07/2016). You could remove the MAX and array formula part and still get the same result. Commented Sep 9, 2016 at 12:32

1 Answer 1

1

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))}

Sign up to request clarification or add additional context in comments.

1 Comment

Many thanks... my original formula returned the number of steps for the day which had the greatest sum. I've also sussed out the second bit that I was after too - finding which day that was. The answer was staring me in the face in the end. Ta :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.