+ Reply to Thread
Results 1 to 3 of 3

Formula questions related to dates

  1. #1
    Registered User
    Join Date
    06-18-2004
    Posts
    15

    Formula questions related to dates

    Two questions

    1) I need a formula that says if prior to 02/01/2002 multiply by 42. If after February 1, 2002 multiply by 36.

    2) I also need to use a column going down that starts with 1969 and than the next row down in the same column would be 1970, next row down, 1971. Not sure how to do this. I don't want to spend hours typing in dates.....

    Thanks in advance!

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Two Answers:

    1) =IF(B1<DATE(2002,2,1),A1*42,A1*36) where B1 is the date to check and A1 is the cell to calculate

    2) Enter 1969 in one cell, enter 1970 in the next cell down. Hightlight both cells and drag down (use the 'drag handle' which is the small black square in the lower right corner of the active cell). Excel will AutoFill 1971, 1972...

    HTH

    Bruce
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Quote Originally Posted by blueglass74
    1) I need a formula that says if prior to 02/01/2002 multiply by 42. If after February 1, 2002 multiply by 36.
    Assuming that A1 contains the date being compared, and B1 contains the amount being multiplied by either 42 or 36, try...

    =IF(A1<DATE(2002,2,1),B1*42,B1*36)

    2) I also need to use a column going down that starts with 1969 and than the next row down in the same column would be 1970, next row down, 1971.
    Enter 1969 in, let's say, A1

    Enter 1970 in A2

    Then, select/highlight A1 and A2, move your cursor over the lower right corner of A2 until the cursor changes, click and drag down the column as far as you need.

    Hope this helps!

+ Reply to Thread

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