if (date....issue

bluepenink

Well-known Member
Joined
Dec 21, 2010
Messages
585
hello guys

any idea how i can patch my formula up?

i tried this formula in column I14, but dont know how to declare for 175, for the 3rd month and make all remaning months be 200

=IF(AND($J$5>=I$10,$J$5<=I$11),"125",IF(MONTH($J$5)-J$11<=60,"150","175"),"200")
^giving an error!

basically, J5 = hire date
I10 = beginning on month
I11 = end of month

so im saying, if hire date is between the "beginning" and "end" of month, the person's quota should be $125, for their second month with the company, it should be $150, third month of the company, it should be $175, all earlier months or others should be $200.

can someone pls help!
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi Bluepenink,

Try this;
Code:
=IF(AND($J$5>=I$10,$J$5<=I$11),125,IF(MONTH(I10)-MONTH(J5)=1,150,IF(MONTH(I10)-MONTH(J5)>1,200)))
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,275
Members
452,902
Latest member
Knuddeluff

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