Results 1 to 3 of 3

Excel 2007 : Excel date formula (tricky)

Threaded View

  1. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,677

    Re: Excel date formula (tricky)

    Theoretically if the invoice date is in the category <=30 (days ago) then that date could be in the current month, last month or even the month before that (e.g. invoice date 31st Jan 2010, today's date 1st March 2010), so I don't know how you want to handle the latter case (if it's 2 months back should it be in 61-90?) but, ignoring that for a moment you could use this sort of approach:

    This formula for <=30

    =AND($L257<=30,MONTH(TODAY())=MONTH($A257))*$F257

    and for 31-60

    =AND($L257<=60,OR($L257>30,MONTH(TODAY())<>MONTH($A257)))*$F257

    where column A contains the invoice dates

    Note: if you don't need column L for other reasons then you could eliminate that column altogether and use =TODAY()-$A257 in the formulas in place of $L257

    Edit: simplified suggested formulas
    Last edited by daddylonglegs; 08-03-2010 at 08:02 AM.
    Audere est facere

Thread Information

Users Browsing this Thread

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

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