Need to Track Calories, Need to Sum by Time Periods

Bob McCusker

New Member
Joined
Oct 24, 2009
Messages
42
Unfortunately I was put on a strict diet and have to reduce my calories. Long story short I am inputting them in an Excel file (Sheet 1). I have another sheet (Sheet 2) where I would like to be able to view the amount of calories consumed by time period, such as 24 hours, week, month, etc. I was wondering if anyone could help me come up with a template formula I could use to just switch the time on.

I don't know if this is pertinent but I log the entries with the top being the most recent. I know inserting rows like this can be an issue. Thanks.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi Bob,

Could you please attach the worksheet so that I may take a look at it?

Thanks,

Michael Shope
 
Upvote 0
It appears that you are asking for a tracker to be put together for you. If so, I'll be happy to do that for you if you want to inbox me your email address. I also need to know what version of Excel you're using.
 
Upvote 0
Here is an example, 2 sheets below:

<table border="1" cellpadding="0" cellspacing="0"><tbody><tr style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"> <td>
</td> <td>A</td> <td>B</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</td> <td style="FONT-WEIGHT: bold">TIME</td> <td style="TEXT-ALIGN: left; FONT-WEIGHT: bold">CAL</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</td> <td>24 hour</td> <td>
</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</td> <td>3 day</td> <td>
</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">4</td> <td>week</td> <td>
</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">5</td> <td>month</td> <td>
</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">6</td> <td>total</td> <td style="TEXT-ALIGN: right">910</td></tr></tbody></table>
<table border="1" cellpadding="0" cellspacing="0"><tbody><tr style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"> <td>
</td> <td>A</td> <td>B</td> <td>C</td> <td>D</td> <td>E</td> <td>F</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</td> <td style="FONT-WEIGHT: bold">ENTRY</td> <td style="FONT-WEIGHT: bold">DATE</td> <td style="FONT-WEIGHT: bold">TIME</td> <td style="FONT-WEIGHT: bold">MEAL</td> <td style="FONT-WEIGHT: bold">ITEM</td> <td style="FONT-WEIGHT: bold">CALORIES</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">00003</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">09/03/11</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">05:00 PM</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">lunch</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">salad</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">320</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">00002</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">09/03/11</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">04:00 PM</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">snack</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">bagel
</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">145</td></tr> <tr style="HEIGHT: 18px"> <td style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">4</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">00001</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">09/03/11</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">09:00 AM</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">breakfast</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">pb&j</td> <td style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccccff">445</td></tr></tbody></table>
 
Upvote 0
Is there a way I could do this without a tracker? A formula that just looks up the dates and sums the numbers would be fine if a tracker is too much effort.
 
Upvote 0
Is there a way I could do this without a tracker? A formula that just looks up the dates and sums the numbers would be fine if a tracker is too much effort.

What are you planning on, enter daily calories under each date or are you wanting it to be meal by meal or something to include snacks? You can also have it colour red or whatever if you exceed your daily max, or not if you choose just to have a constnnt daily input

sample below

Excel Workbook
BCDEFGHIJKLMNO
401/01/201102/01/201103/01/201104/01/201105/01/201106/01/201107/01/201108/01/201109/01/201110/01/201111/01/201112/01/201113/01/201114/01/2011
512371913209415431461247010671778139224067732218
6Start & End dates
701/01/201108/01/2011
813563
9
10Month to Date
1120352
Sheet3
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,513
Members
452,921
Latest member
BBQKING

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top