IF Calculation with Date

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

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:
 

OBP

Joined
Mar 8, 2005
Messages
19,896
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)
 

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!!
 

OBP

Joined
Mar 8, 2005
Messages
19,896
If you look at the Excel help on the IF Worksheet Function it shows using IF between 2 values.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Members online

Top