Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8128685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:59:16+00:00 2026-06-06T07:59:16+00:00

I am trying to work out an IF statement and getting lost. I am

  • 0

I am trying to work out an IF statement and getting lost. I am sure I’ve been up too long now but I just can’t see it.

Here is the scenario:

I have a given date in E1, say June 21st (my payday).
I have a day of the month in C22 say the 11th of the month (the day a bill is due).
I have a $value in D22 (the value of the bill).

I need an if statement that is true if the bill is due on or after the date in E1 AND before the date in E1 + 14 days (my next payday).

Here is what I tried (note its a bit mangled from experimenting):

=IF(AND(DATE(YEAR(E$1),MONTH(E$1),DAY($C22))>=E$1,DATE(YEAR(E$1),MONTH(E$1),DAY(E$1)+14))>DATE(YEAR(E$1),MONTH(E$1),DAY($C22)),$D22,"")

Can anyone help me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T07:59:18+00:00Added an answer on June 6, 2026 at 7:59 am

    Maybe:

    =IF(AND(DATE(YEAR(E$1),MONTH(E$1),DAY($C22))>=E$1,DATE(YEAR(E$1),MONTH(E$1),DAY($C22))<E$1+14)),$D22,"")
    

    (which will show D22, with your example, if 11-Jun >= 21-Jun AND 11-Jun < 21-Jun + 14 days)

    Now if you want to show D22 if 11-Jul >= 21-Jun AND 11-Jul < 21-Jun + 14 days, it is more complicated because you need to check if 11 is before or after 21, and increment the month if it is before. You could do it that way:

    =IF(AND(DATE(YEAR(E$1),MONTH(E$1)+IF($C22<DAY(E$1),1,0),DAY($C22))>=E$1,DATE(YEAR(E$1),MONTH(E$1)+IF($C22<DAY(E$1),1,0),DAY($C22))<E$1+14),$D22,"")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to work out why I can not access the nested function
I am trying to work out how I can insert the string End into
I'm trying to use an if statement to work out which of 2 strings
So I was trying to work this out but it seems that the last
Bah, vbscript. I'm trying to figure out how to get this statement to work:
I started off this morning trying to work out what the 'when' statement is
I am trying work out with MERGE statment to Insert / Update Dimension Table
Im trying to work out how to get the value from one setting in
I trying to work out what regex will match filenames in quotes. Eg. blah
i am trying to work out the following problem in Java (although it could

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.