date offset

bluepenink

Well-known Member
Joined
Dec 21, 2010
Messages
585
Hello

how can i use offset in the following instance

=IF(AND($J$5>=D$10,$J$5<=D$11),"125",IF(MONTH($J$5)-E$11<=20,OFFSET($R$9,1,),IF(MONTH($J$5)-E$11<=30,OFFSET($R$9,1,),"200")))

basically, J5 = hire date
I10 beginning of the month
I11 = end of month
R9 = 125
R10 = 150
R11 = 175

if person hire date falls between beginning or end of month, then his quota is $125

if first month is 125, then second month is $150, third month is $175 (i tried to use offset) all other months i want to be 200

currently with my formula, everything is coming out to $150 after the first month :S

pls help!!!! thx u
 
Last edited:

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
The OFFSET function offsets a range, not a date. Can you explain in words what you want your formula to do please?
 
Upvote 0
hello

thx you for your feedback.

basically,
row 10 contains beginning on the month
row 11 contains end of the month

i have employee hire date in J5

if John Doe is hired in the month of June
i want june = 125 (quota)
July = 150
August = 175

all other months to be 200

that is what i tried to achieve by my offset, but everything after the first month is showing 150.

can u pls help, thx u sir!
 
Upvote 0
Based on the information you have given us, try

=IF(I11>$J$5,100+(LOOKUP(DATEDIF($J$5,I11,"M")+1,{1,2,3,4})*25),"")
 
Upvote 0
Based on the information you have given us, try

=IF(I11>$J$5,100+(LOOKUP(DATEDIF($J$5,I11,"M")+1,{1,2,3,4})*25),"")

hey bud

thxs so much...wow, i was stuck on this for the past few hours....i truely appreciate the help.

i changed the formula (per requirement to)

=IF(I11>$J$5,100+(LOOKUP(DATEDIF($J$5,I11,"M")+1,{1,2,3,4})*25),"200")

also, real quick, is it possible to condition format row 12 (where it says P1, P2...P12) to highlight in yellow) for the first three months only?

thxs so much

i tried placing this in the conditional format....but getting an error...can u help out

=datedif($J$5,I12,"M")="1","="2","="3"
 
Last edited:
Upvote 0
Try

=IF(I11>$J$5,100+(LOOKUP(DATEDIF($J$5,I11,"M")+1,{1,2,3,4})*25),200)
 
Upvote 0
thxs alot bud!

also, real quick, is it possible to condition format row 12 (where it says P1, P2...P12) to highlight in yellow) for the first three months only?

thxs so much

i tried placing this in the conditional format....but getting an error...can u help out

=datedif($J$5,I12,"M")="1","="2","="3"
 
Upvote 0
What's in I12? Assuming the formula I gave you then use

=I12<200 for the conditional format.

Also, change the formula I gave you to

=IF(I11<$J$5,200,100+(LOOKUP(DATEDIF($J$5,I11,"M")+1,{1,2,3,4})*25))

The original one gave the wrong results if the hire date was the last day of the month.
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,544
Members
452,925
Latest member
duyvmex

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