Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have two columns of unique data, and I am trying to have Excel count the
number of instances that a cell from Column A = X and the cell from the same Row in Column B = Y (without adding columns). In other words, if Column A = Local or National and Column B = Paid or Unpaid, is there a formula that will evaluate both columns and show me how many Local Unpaid accounts I have? -- Thanks for your thoughts! |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
See the formula
=SUM(IF($B$4:$B$8="lokal",IF($A$4:$A$8="unpaid",1, 0),0)) When you apply this formula click ctrl+shift+enter (in the status bar) assuming column A = pmt, Col B=Lokal/national range:A3:b8 Eva "The Goose" wrote: I have two columns of unique data, and I am trying to have Excel count the number of instances that a cell from Column A = X and the cell from the same Row in Column B = Y (without adding columns). In other words, if Column A = Local or National and Column B = Paid or Unpaid, is there a formula that will evaluate both columns and show me how many Local Unpaid accounts I have? -- Thanks for your thoughts! |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
One way...
=SUMPRODUCT(--(A1:A10="local"),--(B1:B10="unpaid")) Better to use cells to hold the criteria. D1 = local E1 = unpaid =SUMPRODUCT(--(A1:A10=D1),--(B1:B10=E1)) If you're using Excel 2007... =COUNTIFS(A1:A10,"local",B1:B10,"unpaid") =COUNTIFS(A1:A10,D1,B1:B10,E1) -- Biff Microsoft Excel MVP "The Goose" wrote in message ... I have two columns of unique data, and I am trying to have Excel count the number of instances that a cell from Column A = X and the cell from the same Row in Column B = Y (without adding columns). In other words, if Column A = Local or National and Column B = Paid or Unpaid, is there a formula that will evaluate both columns and show me how many Local Unpaid accounts I have? -- Thanks for your thoughts! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Comparing data in two columns | Excel Worksheet Functions | |||
Comparing data in columns | Excel Discussion (Misc queries) | |||
Comparing columns of data | Excel Discussion (Misc queries) | |||
Comparing two columns of data | Excel Discussion (Misc queries) | |||
Comparing Data in 2 columns | Excel Worksheet Functions |