If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 Function to sum values across rows with certain features
 Author Name Remember Me? Password
 Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

## Function to sum values across rows with certain features

 Thread Tools Display Modes
#1
June 25th 12, 09:19 PM posted to microsoft.public.excel.worksheet.functions
 David Tannenbaum external usenet poster Posts: 7
Function to sum values across rows with certain features

So let's say I have a table like this:

ID Date Value
2 6/2 2432
2 6/2 1322
3 6/2 3534
3 6/2 6431
2 6/3 2421
2 6/2 6251
3 6/3 9870
3 6/2 3534

I want a function that will find every row with an ID "2" and a date
"6/2", and then add together all the "Values". So if I ran the
function with those parameters it would return 3754.

I can do this with a pivot table but I would love a formula to do it
instead. Any ideas?

 Ads
#2
June 25th 12, 09:30 PM posted to microsoft.public.excel.worksheet.functions
 Claus Busch external usenet poster Posts: 927
Function to sum values across rows with certain features

Hi David,

Am Mon, 25 Jun 2012 13:19:56 -0700 (PDT) schrieb David Tannenbaum:

> ID Date Value
> 2 6/2 2432
> 2 6/2 1322
> 3 6/2 3534
> 3 6/2 6431
> 2 6/3 2421
> 2 6/2 6251
> 3 6/3 9870
> 3 6/2 3534
>
> I want a function that will find every row with an ID "2" and a date
> "6/2", and then add together all the "Values". So if I ran the
> function with those parameters it would return 3754.

what excel version do you use?
xl2007 or xl2010:
=SUMIFS(C:C,A:A,2,B:B,DATE(2012,6,2))
An earlier version:
=SUMPRODUCT(--(A1:A100=2),--(B1:B100=DATE(2012,6,2)),C1:C100)

Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts vB code is On Smilies are On [IMG] code is On HTML code is Off
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Excel Newsgroups     Excel Discussion (Misc queries)     Setting up and Configuration of Excel     New Users to Excel     Excel Worksheet Functions     Links and Linking in Excel     Charts and Charting in Excel     Excel Programming About ExcelBanter     About this forum

 Similar Threads Thread Thread Starter Forum Replies Last Post Displaying Multiple Values without using Macros or ROWS function ltzhao Excel Worksheet Functions 4 March 16th 09 04:13 PM frequency function and list features Johnny Jebel Excel Worksheet Functions 5 August 18th 07 01:14 PM Match Values in Rows with Partial Values in Columns ryguy7272 Excel Worksheet Functions 3 August 8th 07 05:14 PM Hiding Specific Rows Based on Values in Other Rows Chris Excel Worksheet Functions 1 November 2nd 06 08:21 PM Delete rows with numeric values, leave rows with text GSpline Excel Programming 5 October 11th 05 12:44 AM

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

 - Contact Us - ExcelBanter forum home - FAQ - Links - Privacy Statement - Top

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