Excel formula in the calculation of month-wise annual basic pay

baidya91

Board Regular
Joined
Jun 1, 2016
Messages
147
Suppose, an employee has a basic pay of Rs. 72600/- in the month of March, 2021.
He will get his annual increment in the month of July, 2021.
He will get a promotion increment in the month of November, 2021 on 30-10-2021 in the following way.:-

MONTHBASIC PAYRemark
Mar-21​
72600​
Apr-21​
72600​
May-21​
72600​
Jun-21​
72600​
Jul-21​
74800​
Aug-21​
74800​
Sep-21​
74800​
Oct-21​
74800​
Nov-21​
74873​
As he will receive promotional benefit w.e.f. 30-11-21, he will enjoy only 1 day's benefit in that month
Dec-21​
77000​
Jan-22​
77000​
Feb-22​
77000​

Now which single excel formula shall I use to prepare his month-wise annual basic pay with or without all the increments.
I want to mean a single excel formula (may be nested) that applies to all if they get one or two increments as mentioned above or not a single one of the increments.
Please help. Thanks in advance.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
You will have to edit the formula if you use multiple different factors.
Try either of the Lookup formulas. Column A has real dates.

Cell Formulas
RangeFormula
B3:B14B3=LOOKUP(MONTH(A3),{1,1.06060606060606;3,1;7,1.03030303030303;11,1.0313085399449;12,1.06060606060606})*$B$1
C3:C14C3=LOOKUP(MONTH(A3),$E$3:$F$7)*$B$1
A4:A14A4=EDATE(A3,1)
 
Upvote 0
Solution
Upvote 0
Try using Choose

T202105a.xlsm
ABCDEF
172,600Version2
2MONTHBASIC PAY
31-Mar-2172,60011.06060606
41-Apr-2172,60031.00000000
51-May-2172,60071.03030303
61-Jun-2172,600111.03130854
71-Jul-2174,800121.06060606
81-Aug-2174,800
91-Sep-2174,800Version 10.00000000
101-Oct-2174,800Version 2
111-Nov-2174,873
121-Dec-2177,000
131-Jan-2277,000
141-Feb-2277,000
3a
Cell Formulas
RangeFormula
B3:B14B3=CHOOSE(MATCH($D$1,{1,2},0),$B$1*1,LOOKUP(MONTH(A3),$E$3:$F$7)*$B$1)
A4:A14A4=EDATE(A3,1)
Thanks. It works wonderfully.
 
Upvote 0
Now what will be formulas if following conditions are set:-
Condition 1:-
Basic Pay in March, 202172600
If annual increment received in the month of July, 2021Yes
After Annual Increment, Basic Pay in the month of July, 202174800
If promotional increment received in the month of July, 2021Yes
After Promotional Increment, Basic Pay in the month of July, 202177000
Condition 2:-
Basic Pay in March, 202172600
If annual increment received in the month of July, 2021No
AfterNo Annual Increment, Basic Pay in the month of July, 202173600
If promotional increment received in the month of July, 2021No
After No Promotional Increment, Basic Pay in the month of July, 202172600
Condition 3:-
Basic Pay in March, 202172600
If annual increment received in the month of July, 2021Yes
AfterNo Annual Increment, Basic Pay in the month of July, 202173600
If Promotional increment received but on a certain dateYes
After Promotional Increment, Basic Pay on that certain dateat the rate of 77000
The date may be variable like30/08/2021 or 08/02/2021 etc
How to combine these three conditions in the given excel formula?
 
Upvote 0
Sir, I have edited the formula as I am using multiple different factors. But promotional increment is bothering me as its date is variable. How to revise the following edited formula if the promotional increment date is variable from 1st July to 31st December? Please Help:-

=IF(AND($H$3="Yes",$H$5="Yes"),LOOKUP(MONTH(A3),{1,1.06060606060606;3,1;7,1.03030303030303;11,1.0313085399449;12,1.06060606060606})*$B$1,IF(AND($H$3="No",$H$5="No"),$B$1,IF(AND($H$3="Yes",$H$5="No"),LOOKUP(MONTH(A3),{1,1.06060606060606;3,1;7,1.03030303030303;11,1.0313085399449;12,1.06060606060606})*$B$1)))
 
Upvote 0
How many different results (Options) do you require?
What is the arithmetic for each option?
Did you try using the Choose method that I suggested?

If you have many different and variable criteria, you may want to build a User Defined Function UDF.

Cell Formulas
RangeFormula
B3:B14B3=CHOOSE(MATCH($D$1,{"Option 1","Option 2"},0),$B$1*1,LOOKUP(MONTH(A3),rOption2)*$B$1)
A4:A14A4=EDATE(A3,1)
Named Ranges
NameRefers ToCells
rOption2='3a'!$E$3:$F$7B3:B14
 
Upvote 0
I have tried the CHOOSE method. That particular option you have mentioned works fine. But I have the following options:-
72600​
72600​
72600​
72600​
MONTHBASIC1BASIC2BASIC3BASIC3
Mar-21​
72600​
72600​
72600​
72600​
Apr-21​
72600​
72600​
72600​
72600​
May-21​
72600​
72600​
72600​
72600​
Jun-21​
72600​
72600​
72600​
72600​
Jul-21​
74800​
72600​
74800​
77000​
Aug-21​
74800​
72600​
74800​
77000​
Sep-21​
74800​
72600​
74800​
77000​
Oct-21​
74800​
72600​
74800​
77000​
Nov-21​
74873​
72600​
74800​
77000​
Dec-21​
77000​
72600​
74800​
77000​
Jan-22​
77000​
72600​
74800​
77000​
Feb-22​
77000​
72600​
74800​
77000​

But I cannot find out what will be $E$3:$F$7 in each case. Moreover, if the promotional increment date (as in the first case) changes, what will be $E$3:$F$7? Maybe, I am bothering you. But I cannot help doing it, Sir. Excuse me if I am wrong.
 
Upvote 0
How many different results (Options) do you require?
What is the arithmetic for each option?
Did you try using the Choose method that I suggested?

If you have many different and variable criteria, you may want to build a User Defined Function UDF.
I changed the example to agree to the last names and order in your post. The lookup information was shown in previous posts.
Try experimenting with Lookup so that you understand how that formula works.
Work out the arithmetic for the options that you require.
Add additional Lookup ranges for your options. It is not necessary to name the ranges, but the formula will be easier to read if you name the ranges.
Add the additional options to the formula.
N.B. You can paste the post to a clean sheet. See the icon below the f(x)
You can post an extract with the forum's tool XL2BB.

T202105a.xlsm
ABCDEF
172,600Option requiredBasic1
2MONTHPay
31-Mar-2172,600Basic111.06060606
41-Apr-2172,60031.00000000
51-May-2172,60071.03030303
61-Jun-2172,600111.03130854
71-Jul-2174,800121.06060606
81-Aug-2174,800
91-Sep-2174,800Basic21.0
101-Oct-2174,800
111-Nov-2174,873
121-Dec-2177,000
131-Jan-2277,000
141-Feb-2277,000
3a
Cell Formulas
RangeFormula
B3:B14B3=CHOOSE(MATCH($D$1,{"Basic1","Basic2"},0),LOOKUP(MONTH(A3),rBasic1)*$B$1,$B$1*1)
Named Ranges
NameRefers ToCells
'3a'!rBasic1='3a'!$E$3:$F$7B3:B14


T202105a.xlsm
ABCDEF
172,600Option requiredBasic2
2MONTHPay
31-Mar-2172,600Basic111.06060606
41-Apr-2172,60031.00000000
51-May-2172,60071.03030303
61-Jun-2172,600111.03130854
71-Jul-2172,600121.06060606
81-Aug-2172,600
91-Sep-2172,600Basic21.0
101-Oct-2172,600
111-Nov-2172,600
121-Dec-2172,600
131-Jan-2272,600
141-Feb-2272,600
3a
Cell Formulas
RangeFormula
B3:B14B3=CHOOSE(MATCH($D$1,{"Basic1","Basic2"},0),LOOKUP(MONTH(A3),rBasic1)*$B$1,$B$1*1)
Named Ranges
NameRefers ToCells
'3a'!rBasic1='3a'!$E$3:$F$7B3:B14
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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