Formula question

Sportschamp

New Member
Joined
Dec 11, 2014
Messages
5
I need a little help on a formula. I am trying to calculate leave time. So if your hire date is greater than 5yrs add 20hrs, if its greater then 10yrs add 60, and if greater than 20yrs add 98. Hopefully this makes sense. Any help would be great.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
If Hire Date is in A1 cell, please apply following formula in B1 cell,
=IF(TODAY()>=EDATE(A1,20*12),98,IF(TODAY()>=EDATE(A1,10*12),60,IF(TODAY()>=EDATE(A1,5*12),20,0)))

Regards,
 
Upvote 0
Ok I have another formula I'm trying to figure out. Any help would be appreciated. I'm going to try my best to describe it. If in cell A1 through A10 are dollar amounts and in cell B1 through B10 are dates. I want a formula that will find the matching dates in the B column and then add the corresponding dollar amounts from the A column to get a total for each date. Hopefully this makes sense.
 
Upvote 0
Ok I have another formula I'm trying to figure out. Any help would be appreciated. I'm going to try my best to describe it. If in cell A1 through A10 are dollar amounts and in cell B1 through B10 are dates. I want a formula that will find the matching dates in the B column and then add the corresponding dollar amounts from the A column to get a total for each date. Hopefully this makes sense.

see if this works for ya
=VLOOKUP((TODAY()-B1)/365,{0,0;5,20;10,60;20,98},2)+A1
Cheers
 
Upvote 0
Ok I have another formula I'm trying to figure out. Any help would be appreciated. I'm going to try my best to describe it. If in cell A1 through A10 are dollar amounts and in cell B1 through B10 are dates. I want a formula that will find the matching dates in the B column and then add the corresponding dollar amounts from the A column to get a total for each date. Hopefully this makes sense.

If you want to add for one selected date then use =SUMIF(
With the date you want to sum for in B15 the =SUMIF(B1:B10,B15,A1:A10)

If you want a list giving the total for every date in B then use a pivot table
 
Upvote 0

Forum statistics

Threads
1,215,418
Messages
6,124,793
Members
449,189
Latest member
kristinh

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