Need some help with IF statements

MrCrimmy

New Member
Joined
Sep 26, 2014
Messages
14
Hello All,

I'm having trouble with some IF statements, effectively what I need to do is report peoples time logged in the office. So from 20th of October people should have logged 39 hours, the next week people should have logged 78 hours and so on. Lets say this information is held in cell C54. That's the easy part, I have this formula for that:

=IF(TODAY()>DATE(2014,10,27),(($C$54/B58)*100),A5)

The data is displayed as follows:

DateHours To DateCompliance
20Oct143967
27Oct147833
03Nov1411722
10Nov141560
17Nov141950
24Nov142340
01Dec142730

<tbody>
</tbody>
What I want to do is report the most up to date (based on date of start of the week) percentage to a separate sheet called meeting, so say when it passed the 27th of october it will no longer report the information for the previous week, code example:

=IF(TODAY()>DATE(2014,10,20),Meeting!N40 = CumulativeData!C57, IF(TODAY()>DATE(2014,10,27),Meeting!N40 = CumulativeData!C58, IF(TODAY()>DATE(2014,10,27),Meeting!N40 = CumulativeData!C59,......

I just can't get this to work no matter how many iterations i try

Can anyone help me with this? I hope I have made this clear hahah!

Kind Regards,

Bryan
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
It appears that you are trying to populate another cell (Meeting!N40) based on an if condition. Excel formulas can not do that. Your formula must be in cell N40 to get a result in that cell.
 
Upvote 0
I think I may understand what you are trying to do. Does this in cell N40 work? =OFFSET(CumulativeData!C56,INT((TODAY()-(DATE(2014,10,20)))/7),0) Working with offset will prevent the need for changing the formula as additional weeks are added
 
Upvote 0
Glad to have helped. If the last number in c57:c1000 would give you the same result, you might try =LOOKUP(9.99999999999999E+307,C57:C1000)
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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