Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Let say, that your data are in columns A and B, the headers Days and Type
are in row 1: I suggest you to first define names Days and Type. In Excel 2007 you first select the range A1 :B1, then select whole database by pressing CTRL+SHIFT+DOWN ERROR. On the Formulas tab in the Defined Names group click on Create From selection and then chose Top Row. You have now the range A2: A6 named as Days and the range B2:B6 As Type. Let say that you would like to begin your "Count matrix" in cell D2. Then write in the cell as it is writen bellow: D1 = "Day" E1 = "Lunch" F1 = "Dinner" D2 = "Saurday" D3 = "Sunday" Now put in the cell E2 the formula: =COUNTIFS(Days,$D2,Type,E$1) and copy the cell E2 into the cells F2, E3 and F1. You will get the result you expect: D E F 1 Day Lunch Dinner 2 Saturday 0 2 3 Sunday 2 1 Ivan "keerthyV" wrote in message ... Hi, I have a query, My data : Days Type Sunday Lunch saturday Dinner sunday Dinner Saturday Dinner sunday Lunch without a Pivot, I want a 2x2 matrix like(Count) Lunch Dinner saturday 1 2 sunday 2 1 Please can anyone sort it out for me???????? Keerthy |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
conditional count | Excel Worksheet Functions | |||
Multi-conditional count | Excel Worksheet Functions | |||
Please help me with a Conditional Count... | Excel Discussion (Misc queries) | |||
Conditional Count | Excel Worksheet Functions | |||
conditional count | Excel Worksheet Functions |