How might I do this

R

Rich

I have a spreadsheet I use to calculate total hours worked per day, I then
record those hours in another column by date so I can track total hours by
week and still retain the hours each day.
A B
1/03/04 7.5
1/04/04 7.8
Total 16.3 (where total would be the weekly total)

and so on.

Is there a way to have the the hours appear in the appropriate cell in
column B based on the date in column A?
I can get the hours to record properly using an "If A=today()" type formula
but cannot get the hours in B to be retained if "A" isn't today's date.

Thanks,
Rich
 
P

Peter Atherton

-----Original Message-----
I have a spreadsheet I use to calculate total hours worked per day, I then
record those hours in another column by date so I can track total hours by
week and still retain the hours each day.
A B
1/03/04 7.5
1/04/04 7.8
Total 16.3 (where total would be the weekly total)

and so on.

Is there a way to have the the hours appear in the appropriate cell in
column B based on the date in column A?
I can get the hours to record properly using an "If A=today()" type formula
but cannot get the hours in B to be retained if "A" isn't today's date.

Thanks,
Rich
You can use the fact that the date has not been entered.
e.g. =IF(A5>0,7.5,"")
But then you would need another column for overtime. If
you only want to add the hours on say Friday use the
formula =IF(WEEKDAY(TODAY())=6,SUM(B5:B9),"") or to link
it to a cell date =IF(WEEKDAY(A9)=6,SUM(B5:B9),"")

Regards
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top