1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

IF Calculation with Date

Discussion in 'Business Applications' started by carole_chalmers, Jan 21, 2011.

Thread Status:
Not open for further replies.
Advertisement
  1. carole_chalmers

    carole_chalmers Thread Starter

    Joined:
    Jan 21, 2011
    Messages:
    3
    I need to create a formula that will calculate a column based on another column of dates. e.g. add c1,c2,c3 if the corresponding columns date falls within the year 2010. Any ideas?? :eek:
     
  2. OBP

    OBP

    Joined:
    Mar 8, 2005
    Messages:
    19,895
    This tests if column a has the year 2010 in the date, it puts a 1 if it is and a 0 if not, you can do your addition instaed of putting in the 1, just copy iy down the column.
    =IF(YEAR(A1) = 2010, 1,0)

    You can then sum the new column.
    I expect you can also use SumIf, it has it's own Help Topic with this example
    =SUMIF(A2:A5,">160000",B2:B5)
     
  3. carole_chalmers

    carole_chalmers Thread Starter

    Joined:
    Jan 21, 2011
    Messages:
    3
    Ok mega I get that, thank you. Ok what about taking it a stage further so that it falls between two dates, e.g. if a date in one cell falls between two other dates take the financial year then total up some figures!!
     
  4. OBP

    OBP

    Joined:
    Mar 8, 2005
    Messages:
    19,895
    If you look at the Excel help on the IF Worksheet Function it shows using IF between 2 values.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/975990

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice