I am having an issue with a particular formula and wanted to get someone to 
see where the error is in my formula.  


Essentially what I am trying to do with this formula is this:

C2=1 --due date
E29 3/14/2014 (pay period_end)
A55 =2/28/14 (pay period start)

if the day of the due date is less than the day of the pay period end then 
set the due date to March instead of February.  If it isn't less than pay 
period end date then set it to February.

Hopefully that quick statement helps a little.  Formula is below.  I think 
I am just missing parentheses, but maybe I can't embed these functions 
together like I thought I could.

=IF(then(C2<day(E29), 
IF(AND(DATE(YEAR($E$29),MONTH($E$29),DAY($C2))>=$A$55,DATE(YEAR($A$55),MONTH($A$55),DAY($C2))<$A$55),$B2,""),IF(AND(DATE(YEAR($A$55),MONTH($A$55),DAY($C2))>=$A$55,DATE(YEAR($E$29),MONTH($E$29),DAY($C2))<$E$29),$b2,""))

I am hoping I have come to the right place.

Thanks everyone. 

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to