increment every june a fixed amount

PKBrahma

New Member
Joined
Nov 26, 2017
Messages
28
Sir,
I've a column(A) having months from January 2014 to January 2018. In column(B), I have my salary. Every year in June, I get an increment of 100 rupees which is added to my salary. if in January 2014, my salary is 2000, from June 2014, it is 2100 till May 2015. From June 2015 to May 2016, my salary will be 2200, from June 2016 to May 2017, it is 2300 like this. Can if be made through programming? Or should I do it manually by adding 100 rupees every June? I will be happy to get a reply for this. Thanks very much.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Are your entries in column A actual dates, or text?
If you aren't sure, go to one of the entries, and see what formatting is applied to that cell and let us know (General, Text, or some Custom Date format).
 
Upvote 0
Assuming you have a date formatted "Jan 2014" in A2 then;

In B2 put the number 2000

In B3 put the formula;

Code:
=IF(MONTH(A3)=6,B2+100,B2)

And drag it down.
 
Upvote 0
Sir, it worked fantastic. Thank you. But, in place of fixed 100 rupees in increment, if I make an increment of 10% of the salary of May every year in June, how to write to write it?
 
Upvote 0
sir,
I am again stuck with a new problem. Every June when I get increment i.e. salary*3%, the amount comes to say 7582. 7582 should be the next number of multiple of 10 i.e.7590. If it is 7581 or less, it should be 7580. If it is more than 7581.01, then it will be 7590. Perhaps, ceiling or floor function will be used with mod. if mod(cell no),10)>1, ceiling(cell no,10), floor(cell no,10). But, I don't know where to write it inside the above code:
=IF(MONTH(A3)=6,B2+100,B2)
Please guide me. Thanks.
 
Upvote 0
Try this:
Code:
=IF(MONTH(A3)=6,IF(MOD(B2*1.03,10)>1,ROUNDUP(B2*1.03,-1),ROUNDDOWN(B2*1.03,-1)),B2)
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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