Help needed with weight loss calculation

cdpaul

New Member
Joined
Sep 2, 2005
Messages
41
Office Version
  1. 365
Platform
  1. Windows
Im trying to do a simple weight loss sheet that would show the loss/gain since the last weigh in and an overall.

I want to show the results in pounds but enter the data in stones and pounds, ie 13:12 (not sure wot i should put between the 13 and 12)

Something like this:

DATE WEIGHT LOSS/GAIN OA. LOSS/GAIN
31 jan 13:12
06 feb 13:10 (sum=-2) (sum=-2)
13 feb 13:08 (sum=-2) (sum=-4)

I realise this is probably very easy for u guyz but although i think i can do the sum i dont know how to do the stones and pounds part.

Hope ive made sense and some one can help.

Thanx
Paul
 
Hi Paul
Welcome to the board

You can enter the weight with the ":" between the stones and pounds and use the time functions to calculate the loss/gain (I used 1 stone = 14 pounds that I found on the web).

In C4:

=(HOUR(B4)*14+MINUTE(B4))-(HOUR(B3)*14+MINUTE(B3))
Copy down

In D4:

=(HOUR(B4)*14+MINUTE(B4))-(HOUR($B$3)*14+MINUTE($B$3))
Copy down

Hope this helps
PGC
Book1
ABCDE
1DATEWEIGHTLOSS/GAINOA.LOSS/GAIN
2
331-Jan13:12
406-Feb13:10-2-2
512-Feb13:08-2-4
618-Feb13:1240
724-Feb14:0133
802-Mar13:13-21
908-Mar13:10-3-2
1014-Mar13:08-2-4
1120-Mar13:07-1-5
12
Sheet3
 
Upvote 0
Thanx pcg01

Ive done wot u said but where i havent yet inputted any data the sum is coming up with:

Date Weight Loss/Gain Overall Loss/Gain

-190 -195
0 -195
0 -195
0 -195



Can i stop this happening?

Paul
 
Upvote 0
Hi Paul

Yes, you have to add a test if you already entered data in that row.

In C4:

=IF(B4="","",(HOUR(B4)*14+MINUTE(B4))-(HOUR(B3)*14+MINUTE(B3)))

In D4:

=IF(B4="","",(HOUR(B4)*14+MINUTE(B4))-(HOUR($B$3)*14+MINUTE($B$3)))

Copy down

This way the rows that still have no data will display blank cells.

Hope this solves the problem
PGC
Book1.xls
ABCDE
1DATEWEIGHTLOSS/GAINOA.LOSS/GAIN
2
331-Jan13:12
406-Feb13:1311
512-Feb13:11-2-1
618-Feb13:09-2-3
724-Feb  
802-Mar  
908-Mar  
1014-Mar  
1120-Mar  
12
Sheet3
 
Upvote 0
You could also do this by using the DOLLARDE function from Analysis ToolPak. You'd have to input weights as 13.13 (with a decimal point) rather than 13:13 with a colon and then you'd use this formula in C4

=IF(B4="","",(DOLLARDE(B4,14)-DOLLARDE(B3,14))*14)

and this one in D4

=IF(B4="","",(DOLLARDE(B4,14)-DOLLARDE(B$3,14))*14)
 
Upvote 0

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