Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Jan 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Formula Date (Excel 97)

    In am trying to have excel read a date range if the effective date is less than or equal to 6/15/2001 (F2) and the termination date is greater than or equal to 6/15/2001 (G2) then the amount is $141.92 if not N/A.

    How can I write this formula?

    Thanks

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Dublin, Ireland, Republic of
    Posts
    2,697
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Formula Date (Excel 97)

    If you have teh date you are checking for (6/15/2001) in a cell, say A1, then the following formula should work <pre><big> =IF(AND(F2=$A$1,G2=$A$1),141.92, "n/a")</big></pre>

    You could hardcode the date into the formula but would be better located in a cell. And the actual value 141.92 might also be better placed in a cell. Should you ever need to amend either it would just be a matter of entering a new value in the relevant cells and your formulas would still work without need for editing.

    I assume you just want the abreviation N/A instead of the error value, in which case lowercase is probably best to avoid visual confusion.

    Andrew C

  3. #3
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Formula Date (Excel 97)

    This should do what you want:

    <pre>=IF(AND(F2<=DATEVALUE("6/15/02"),G2>=DATEVALUE("6/15/02")),141.92,"N/A")
    </pre>

    Legare Coleman

Posting Permissions

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