Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have been trying to figure out how to create a formula in Excel 2003 that
will sum only if 2 variables are met. An example would be if you had 5000 rows of data. Columns are NAME, AGE, CITY. Let's say I wanted to sum how many people are in Seattle and are 25 can Excel do this? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
One way ..
Assuming City in col C, Age in col B data from row2 to 5000 we could put in say E1: =SUMPRODUCT(($C$2:$C$5000="Seattle")*($B$2:$B$5000 =25)) Alternatively, we could point to cells instead of hardcoding so if we input in D1: Seattle, in D2: 25, then in E1: =SUMPRODUCT(($C$2:$C$5000=D1)*($B$2:$B$5000=D2)) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "B Akers" <B wrote in message ... I have been trying to figure out how to create a formula in Excel 2003 that will sum only if 2 variables are met. An example would be if you had 5000 rows of data. Columns are NAME, AGE, CITY. Let's say I wanted to sum how many people are in Seattle and are 25 can Excel do this? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Use function. DSUM
-- M.A. "B Akers" <B wrote in message ... I have been trying to figure out how to create a formula in Excel 2003 that will sum only if 2 variables are met. An example would be if you had 5000 rows of data. Columns are NAME, AGE, CITY. Let's say I wanted to sum how many people are in Seattle and are 25 can Excel do this? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating a formula for down and distance | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
Creating a specific formula | New Users to Excel | |||
How do you display the values of variables within an Excel formula | Excel Discussion (Misc queries) |