+ Reply to Thread
Results 1 to 2 of 2

Using Dates in the Fomula

  1. #1
    Registered User
    Join Date
    09-21-2017
    Location
    Columbus, Ohio
    MS-Off Ver
    2016
    Posts
    1

    Using Dates in the Fomula

    I am to write a formula that will move or update as the date of an item changes.

    For example, if you have a payment that is do on 1/3/2017 for $100.00 in cells A1 & B1 respectively, I am using the formula =IF(AND(A1<=1/01/2017,A1>=1/7/2017),B1,0) but no values are calculating.
    I've also tried =IF(AND(A1<=DATE(2017,1,1),A1>=DATE(2017,1,31)),B1,0) and again it doesn't give me the right calculation.

    Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,585

    Re: Using Dates in the Fomula

    Formula

    =IF(AND(A1<=DATE(2017,1,1),A1>=DATE(2017,1,31)),B1,0)

    Condition is A1 ashould be earlier to 1/1/17 simultaniously it should be after 31/1/17, which is not possible.

    Try this
    It may be like this

    =IF(AND(A1>=DATE(2017,1,1),A1<=DATE(2017,1,31)),B1,0)

    This formula puts the condition that A1 should be betweem 1/1/17 and 31/1/17.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] If Then fomula
    By Ron Purpura in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-01-2017, 10:44 PM
  2. [SOLVED] IF/AND/OR Fomula
    By hkbhansali in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-09-2016, 11:34 PM
  3. Need a fomula for this
    By ssuman1010 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-11-2015, 12:42 PM
  4. Fomula:Need Help
    By anthshort in forum Excel General
    Replies: 3
    Last Post: 07-30-2009, 02:38 AM
  5. Need fomula
    By kenzo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-21-2006, 01:35 PM
  6. Fomula (if?)
    By Jules in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-08-2006, 02:15 PM
  7. Fomula
    By Steve in forum Excel General
    Replies: 2
    Last Post: 12-08-2005, 03:35 PM

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