Formula???

mermar

New Member
Joined
Aug 23, 2011
Messages
30
I am creating a self-adding absentee calendar for employees. I am having a problem with a formula; =SUMIF((I7>(TODAY))(Y26*M$8)). This means that if the date entered in I7 is greater then today, vacation should accrue for hours worked times rate.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I am creating a self-adding absentee calendar for employees. I am having a problem with a formula; =SUMIF((I7>(TODAY))(Y26*M$8)). This means that if the date entered in I7 is greater then today, vacation should accrue for hours worked times rate.
Maybe this...

=(I7>TODAY())*(Y26*M$8)
 
Upvote 0
Why are you using a SUMIF, wouldn't a simple IF do
Code:
=IF(I7>TODAY(),Y26*M$8,"")
 
Upvote 0
Yes the =IF would be easier. However I did find that my error lies with the fact the I7 will never be greater then today, since I7 represents the employees 90 days waiting period. So I tried, =IF(I7>E7())*(Y26*M8), where E7 represents hire date.
 
Upvote 0
So, did you resolve the problem ??
 
Upvote 0
Keeping it simple, try:
=IF(I7>TODAY,Y26*M$8,0)

Function will return zero if the condition is false.
 
Upvote 0
Yes the =IF would be easier. However I did find that my error lies with the fact the I7 will never be greater then today, since I7 represents the employees 90 days waiting period. So I tried, =IF(I7>E7())*(Y26*M8), where E7 represents hire date.

It would seem to me that if I7 = the date 90 days from the hire date and E7 is the hire date, the result of any If would always be true.

If you don't want to start accruing vacation until the date in I7, shouldn't the formula be
Code:
=IF(I7<=TODAY,Y26*M$8,0)
 
Upvote 0

Forum statistics

Threads
1,224,541
Messages
6,179,418
Members
452,912
Latest member
alicemil

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