LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sumifs with data and dates - I can not figure out the dates

One way...

=SUMIF(B1:B10,"="&DATE(2010,1,1),C1:C10)-SUMIF(B1:B10,""&DATE(2010,12,31),C1:C10)

Better to use cells to hold the date boundaries:

E1 = 1/1/2010
F1 = 12/31/2010

=SUMIF(B1:B10,"="&E1,C1:C10)-SUMIF(B1:B10,""&F1,C1:C10)

Another way...

=SUMPRODUCT(--(YEAR(B1:B10)=2010),C1:C10)

--
Biff
Microsoft Excel MVP


<gary davis wrote in message ...

I need a formula for each item in col A that was added during 2010 only.
the spreadsheet will have years of data.

A B
Expense Date Amount
Furniture 1/12/2010 $326.00
Inventory 1/15/2010 $250.00
Utilities 1/15/2010 $98.00
Rent 1/29/2010 $1,000.00
Rent 1/30/2010 $536.00

how can I Sumif with Critera in Col A and only for a specific year?

Gary



Submitted via EggHeadCafe - Software Developer Portal of Choice
Silverlight, WPF, XAML and InnerWorkings Coding Challenge
http://www.eggheadcafe.com/tutorials...f-xaml-an.aspx



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUMIFS formula using dates and text as criteria Trish Excel Discussion (Misc queries) 4 May 21st 23 07:46 PM
sumifs between 2 specific dates entered. GEO Excel Worksheet Functions 4 September 2nd 09 05:40 PM
SUMIFS and dates JLR-Mart Excel Worksheet Functions 3 April 17th 09 01:59 AM
sumifs, sumif with dates Richard Manor Excel Worksheet Functions 6 November 13th 08 12:19 AM
SUMIFS with dates Chinni Krishna Reddy[_2_] Excel Worksheet Functions 2 April 16th 07 10:02 PM


All times are GMT +1. The time now is 07:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"