+ Reply to Thread
Results 1 to 8 of 8

Charting weight loss over time

  1. #1
    Registered User
    Join Date
    04-04-2012
    Location
    Provo, UT
    MS-Off Ver
    Excel 2011 Mac
    Posts
    11

    Charting weight loss over time

    Hey!
    I am trying to create a weight loss worksheet to show weight loss a couple of years ago for a presentation and I would like to keep it set up the way I have it but need help with some of the functions. I have a large table with each day of the experiment comprising a row. On the day I entered the "Weight", The calorie intake, and exercise performed. I have several entries and am trying to create a table that summarizes the results by weeks. I would like that table to be a weekly tally and have the information written from the Saturday of each week. I have been trying to do it with "Index" and "Match" and weekday but haven't been able to.

    Can someone please help?! Thanks!

    I attached a copyWeight Loss.xlsx

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Charts question

    Try this in L3:

    =SUMPRODUCT(Table1[Weight],(Table1[Week]=$K3)*1) and copy down.

    You may have to change , to ; depending on your delimiters.
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    Registered User
    Join Date
    04-04-2012
    Location
    Provo, UT
    MS-Off Ver
    Excel 2011 Mac
    Posts
    11

    Re: Charts question

    That gave me huge numbers. I'm looking more for a lookup. That will take the current weight on each saturday and put it in the other table and so on with the other data. So I can condense it from a huge table with a lot of days to a simpler weekly format.

  4. #4
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Charts question

    Ahh, yes... I took the sum of the whole week. I guess that is unfair to the person in question. This should give you the weight on sunday:

    =SUMPRODUCT((WEEKDAY(Table1[Date])=1)*1,Table1[Weight],(Table1[Week]=$K3)*1)

    Or?

  5. #5
    Registered User
    Join Date
    04-04-2012
    Location
    Provo, UT
    MS-Off Ver
    Excel 2011 Mac
    Posts
    11

    Re: Charts question

    Thank you! That worked perfectly. I'm also trying to figure out the average intake calories (InCal) per day for the week and also the total exercise calories (ExCalories) . . . ?

  6. #6
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Charts question

    For total ExCal use:

    =SUMPRODUCT(Table1[Weight],(Table1[Week]=$K3)*1) which was the first formula I supplied and change "Week" to "ExCalories"

    For avg. InCal:

    Same approach as for ExCal, and divide by 7.

  7. #7
    Registered User
    Join Date
    04-04-2012
    Location
    Provo, UT
    MS-Off Ver
    Excel 2011 Mac
    Posts
    11

    Re: Charts question

    I just put ExCalories where week is and it gave me nearly 8000 for the 0 week and 0 for the rest . . . am i doing something wrong?

  8. #8
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Charts question

    Sorry, it's not "Week" but "Weight" that should be changed.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1