Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have two varialbles, I want to sum the second based on criteria from both.
So I want to count all the 1s in variable two if variable 1 is 2. I have a couple formulas but none seem to work. This is what my data looks like V1 v2 1 1 1 2 1 1 2 3 2 2 1 4 1 1 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
With your posted data in columns A and B,
this formula sums the Col_B items where the corresponding Col_A item is 2: =SUMIF(A2:A10,2,B2:B10) Does that help? Regards, Ron Coderre Microsoft MVP (Excel) "mparker" wrote in message ... I have two varialbles, I want to sum the second based on criteria from both. So I want to count all the 1s in variable two if variable 1 is 2. I have a couple formulas but none seem to work. This is what my data looks like V1 v2 1 1 1 2 1 1 2 3 2 2 1 4 1 1 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=SUMPRODUCT((C2:C9=2)*(D2:D9=1))
Regards, Stefi €˛mparker€¯ ezt Ć*rta: I have two varialbles, I want to sum the second based on criteria from both. So I want to count all the 1s in variable two if variable 1 is 2. I have a couple formulas but none seem to work. This is what my data looks like V1 v2 1 1 1 2 1 1 2 3 2 2 1 4 1 1 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional SUMPRODUCT or SUMPRODUCT with Filters | Excel Worksheet Functions | |||
SUMPRODUCT | Excel Worksheet Functions | |||
sumproduct? sumif(sumproduct)? | Excel Worksheet Functions | |||
hlp with sumproduct! | Excel Worksheet Functions | |||
sumproduct | Excel Worksheet Functions |