+ Reply to Thread
Results 1 to 3 of 3

combining dates with nested if statements

  1. #1
    Registered User
    Join Date
    03-08-2010
    Location
    hamilton, canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Smile combining dates with nested if statements

    I want to do a formula in G2 that states if E2 is between 2 dates then add E2 +85 and if it isn't between those two dates check if F2 is between same 2 dates. if F2 is then add F2 +85. if not, then leave G2 blank.

    On top of that i want it to go to the next worksheet if it is the end of 2010 (i.e., put the same things in the 2011 worksheet so it carries on)
    thanks

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,593

    Re: combining dates with nested if statements

    Something like this:

    =IF(AND(E2>$A$1,E2<$B$1),formula+85,IF(AND(F2>$A$1,F2<$B$1),formula+85,""))

    Where A1 and B1 are your dates

  3. #3
    Registered User
    Join Date
    03-08-2010
    Location
    hamilton, canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: combining dates with nested if statements

    thanks i will try that i just am not sure if i keep the $ or not

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1