date formula

aivijardin_09

New Member
Joined
Mar 26, 2010
Messages
37
Good day,

I was trying to get the total used leaves per year. Below is my formula. The result should be 4.5 and 3.5

=SUMIF(L4:L12,"2011",N4:N12)

Table1
Start Date Regularization Date Year End No. of Months FC FF Earned Used
December 1, 2011 June 1, 2012 December 31, 2011 1 1.25 4.50
January 1, 2012 June 30, 2012 December 31, 2012 12 0.00 1.25 15.00 3.50
January 1, 2013 June 30, 2013 December 31, 2013 12 5.00 10.00 15.00 0.00

Table 2

Date Leave Type Day/s
July 12, 2011 Vacation Leave 1 4.5
November 28, 2011 Vacation Leave 0.5
November 29, 2011 Vacation Leave 1
November 30, 2011 Vacation Leave 1
December 1, 2011 Vacation Leave 1
January 16, 2012 Vacation Leave 1 3.5
February 6, 2012 Vacation Leave 1
December 6, 2012 Vacation Leave 0.5
December 7, 2012 Vacation Leave 1

Thanks :)
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
i hope i explained it clearly. for the used column in table 1 i need to get the correct formula. when i used the sumif that stated above it reflects a 0 value. how am i supposed to correct my formula?:)
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,517
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