Help With Tricky Formula?

laxcat73

Board Regular
Joined
Aug 5, 2011
Messages
143
Background:

I am creating a spreadsheet for bonus payments. These bonus payments are structured based on experience of the referred candidate. I am trying to creat a formula that will give me a result of the Pay Period for which that bonus is due. I was thinking something along the lines of rounding a date up to the paydate (pay period end + 7 days) which is every 2 weeks.

I cannot find any formula to help so I'm guessing it's a combination of simpler formulas given certain conditions. This is my current formula:

=VLOOKUP(IF(M4="",I4,IF(S4="",O4,IF(Y4="",U4,IF(AE4="",AA4,"")))),Paydate,1,TRUE)

However, using the VLOOKUP True condition, it simply rounds to the nearest paydate, not the succeeding one. Is there anything that could have that round up to the next?

Thank you in advance.
 

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.
Nevermind the nested if statements, it's simply finding the most recent structured payment that has not been met.
 
Upvote 0
Could you let us know what is each column?

AMAS

Ah, in the formula above
Code:
=VLOOKUP(IF(M4="",I4,IF(S4="",O4,IF(Y4="",U4,IF(AE4="",AA4,"")))),Paydate,1,TRUE)

M4, S4, U4, AA4 are the 4 scheduled payouts, chronologically (Date of hire, +60 days, +180 days, +1 year). It's a tiered payment schedule based on how long the referred employee stays with the organization. The nested IF statments are currently setup so it displays the most recent unpaid liability without the lookup function.

Also, in the "Paydate" Named range is a list of the paydates - every 2 weeks according to payroll.
 
Last edited:
Upvote 0
So I4, O4, U4 and AA4 would contain the figure that you want to use in the VLookup. Correct?

And column 1 in the Paydate is what you want to retrieve.

AMAS
 
Upvote 0
So I4, O4, U4 and AA4 would contain the figure that you want to use in the VLookup. Correct?

And column 1 in the Paydate is what you want to retrieve.

AMAS

Correct. The formula I use now using TRUE in the lookup brings up the nearest paydate in retreival. I would like to get the next paydate rather than closest.
 
Upvote 0
Is this what you are looking for?

Code:
=VLOOKUP(IF(M4="",O4,IF(S4="",U4,IF(Y4="",AA4,IF(AE4="","Don't know","")))),Paydate,1,TRUE)

AMAS
 
Upvote 0
Sorry, Amas, I think you are approaching my question in a different manner than I am asking.

You need to ignore the nested if statement. Formula again is as follows, edited slightly to simplify my point

Code:
=VLOOKUP([Date],Paydate,1,TRUE)

Is there any way for the lookup function to round UP to the NEXT paydate in the "Paydate" named range? Currently, it just rounds to the CLOSEST paydate including one that has already passed. That is useless to me.
 
Upvote 0
Sorry, Amas, I think you are approaching my question in a different manner than I am asking.

You need to ignore the nested if statement. Formula again is as follows, edited slightly to simplify my point

Code:
=VLOOKUP([Date],Paydate,1,TRUE)

Is there any way for the lookup function to round UP to the NEXT paydate in the "Paydate" named range? Currently, it just rounds to the CLOSEST paydate including one that has already passed. That is useless to me.
What is the exact range Paydate refers to?
 
Upvote 0

Forum statistics

Threads
1,224,531
Messages
6,179,379
Members
452,907
Latest member
Roland Deschain

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