Show remaining and received monthly figures, based on dates?

jjrrcc11

Board Regular
Joined
Apr 11, 2016
Messages
53
Part 1

I have a total yearly salary figure in cell C4, and I wish to have a remaining salary figure in cell C10, always based on today's date.
Salary is paid on the last day of the month, with the first payment having made on April 30th and the last one being due on March 31st 2024. Therefore, at present, this remaining salary figure should show total minus 1 month as there has been 1 out of the 12 payments. What formula can I use for this?


Part 2

Linking to Part 1 above, I also wish to have a Received to Date Salary figure in cell E3 which I would like to automatically update based on the current date. e.g. say the monthly salary is 2000, as there has only been 1 payment so far, it should show 2000, but in another month's time, it will show 4000, and so on.


Thanks in advance
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try

Book3
ABCDEFGHI
1
2Received to Date Salary
32000
4
5
6
7
8
9Remaining Salary as on TodayFirst PaymentLast Payment
10220004/30/20233/31/2024
1122000
12
13
14
15
16
17
18
19
20
21
22
23
2424000
25
26
27
Sheet1
Cell Formulas
RangeFormula
E3E3=C24-C10
C10C10=C24/DATEDIF(F10,EOMONTH(G10,1),"m")*(DATEDIF(F10,EOMONTH(G10,1),"m")-(MONTH(TODAY())-MONTH(F10)))
C11C11=C24/DATEDIF(F10,EOMONTH(G10,1),"m")*(DATEDIF(F10,EOMONTH(G10,1),"m")-(DATEDIF(EOMONTH(F10,-1),TODAY(),"m")))
 
Last edited:
Upvote 0
Solution
Try

Book3
ABCDEFGHI
1
2Received to Date Salary
32000
4
5
6
7
8
9Remaining Salary as on TodayFirst PaymentLast Payment
10220004/30/20233/31/2024
1122000
12
13
14
15
16
17
18
19
20
21
22
23
2424000
25
26
27
Sheet1
Cell Formulas
RangeFormula
E3E3=C24-C10
C10C10=C24/DATEDIF(F10,EOMONTH(G10,1),"m")*(DATEDIF(F10,EOMONTH(G10,1),"m")-(MONTH(TODAY())-MONTH(F10)))
C11C11=C24/DATEDIF(F10,EOMONTH(G10,1),"m")*(DATEDIF(F10,EOMONTH(G10,1),"m")-(DATEDIF(EOMONTH(F10,-1),TODAY(),"m")))

Amazing, thanks so much!
Are you able to explain how the C10 and C11 formula's work so I know for future, and also the difference between them? They produce the same result, so is it just a different way of achieving it?
Thanks again.
 
Upvote 0
You're welcome.
they are just different way of achieving it.

The difference between them is just last part

=C24/DATEDIF(F10,EOMONTH(G10,1),"m")*(DATEDIF(F10,EOMONTH(G10,1),"m")-(MONTH(TODAY())-MONTH(F10)))

=C24/DATEDIF(F10,EOMONTH(G10,1),"m")*(DATEDIF(F10,EOMONTH(G10,1),"m")-(DATEDIF(EOMONTH(F10,-1),TODAY(),"m")))

We have used below formulas together to achieve the result

DATEDIF
EOMONTH
MONTH
TODAY

You can do a google search for each formula, so you will have better idea for each one.
 
Upvote 1

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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