and/or formulas



In our payroll we have pay numbers that falls into biweekly pays.

ex: pay 1 Dec 25 Jan 7/17

      Pay 2 Jan 8 Jan 21/17

I want a formulas that says:

if someone worked between Dec 25 and Jan 7/17 give me 2 (for pay)

if someone worked between Jan 8 and Jan 21/17 give me 3 and so on and on


something like this - but without the * before the secon if




Next time add your updates to the original question. When you add an answer, like you did, it looks like the question was already answered.
don (rep: 1685) Jan 6, '17 at 3:19 am
Add to Discussion



To nest IF statements you need to follow this format:


So each IF statement goes into the "value_if_false" argument of the previous IF statement.

To fix your IF statement, it would look like this:


Here is our tutorial on nesting IF statements and on Vlookups for ranges and Vlookup on dates and times

The last two links might work well with your situation if you have a large list of dates/times.


Answer the Question

You must create an account to use the forum. Create an Account or Login