nostradamus
Board Regular
- Joined
- Aug 9, 2010
- Messages
- 143
- Office Version
- 365
- Platform
- Windows
Hello dear all,
(I am using this table just for reference, so the Formula will be typed in Cell D2)
I have a complex question - I need a formula for:
1) Calculate Unique occurrences from Col.C that belong to "Texas" from Col.A. So, here the answer will be 8.
2) If I do not have any data entered in Columns A,B,C, Cell D2 should remain blank with nothing in it.
3) I need the formula to be able to cover range from Col.C2:Col.C1000. Caveat here is that sometimes data entered may be from 50 to 200 cells, and not the complete 1000 cell range in formula. So I want this formula to be able to cover the range of blank cells too if possible.
I am trying to make my requests as clear as possible, please ask if you need any more clarifications, or feel free to make suggestions to improve my solution.
Thanks!!!
(I am using this table just for reference, so the Formula will be typed in Cell D2)
I have a complex question - I need a formula for:
1) Calculate Unique occurrences from Col.C that belong to "Texas" from Col.A. So, here the answer will be 8.
2) If I do not have any data entered in Columns A,B,C, Cell D2 should remain blank with nothing in it.
3) I need the formula to be able to cover range from Col.C2:Col.C1000. Caveat here is that sometimes data entered may be from 50 to 200 cells, and not the complete 1000 cell range in formula. So I want this formula to be able to cover the range of blank cells too if possible.
I am trying to make my requests as clear as possible, please ask if you need any more clarifications, or feel free to make suggestions to improve my solution.
Thanks!!!
Excel Workbook | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | State | County | Area | Pop. | StateFreq | CountyFreq | AreaFreq | expectedAreaFreq | ||
2 | Texas | Travis | Bee Cave | 55 | 11 | 7 | 1 | 1 | ||
3 | Texas | Travis | Cele | 23 | 1 | 1 | ||||
4 | Texas | Travis | Littig | 33 | 1 | 1 | ||||
5 | Texas | Travis | Elroy | 8 | 4 | 1 | ||||
6 | Texas | Travis | Elroy | 15 | ||||||
7 | Texas | Travis | Elroy | 23 | ||||||
8 | Texas | Travis | Elroy | 34 | ||||||
9 | Texas | Gonzales | Smiley | 22 | 2 | 1 | 1 | |||
10 | Texas | Gonzales | Pilgrim | 31 | 1 | 1 | ||||
11 | Texas | Bell | Holland | 14 | 1 | 1 | 1 | |||
12 | Texas | Bexar | San Antonio | 5124 | 1 | 1 | 1 | |||
13 | Colorado | Douglas | Lone Tree | 11 | 8 | 6 | 1 | 1 | ||
14 | Colorado | Douglas | Castle Pines | 12 | 3 | 1 | ||||
15 | Colorado | Douglas | Castle Pines | 31 | ||||||
16 | Colorado | Douglas | Castle Pines | 14 | ||||||
17 | Colorado | Douglas | Pinery | 26 | 1 | 1 | ||||
18 | Colorado | Douglas | Larkspur | 56 | 1 | 1 | ||||
19 | Colorado | Denver | Glendale | 25 | 2 | 1 | 1 | |||
20 | Colorado | Denver | Bow Mar | 224 | 1 | 1 | ||||
21 | Florida | Sarasota | Sarasota Springs | 456 | 9 | 5 | 1 | 1 | ||
22 | Florida | Sarasota | Venice | 600 | 1 | 1 | ||||
23 | Florida | Sarasota | Plantation | 221 | 1 | 1 | ||||
24 | Florida | Sarasota | North Port | 75 | 1 | 1 | ||||
25 | Florida | Sarasota | Meadows | 23 | 1 | 1 | ||||
26 | Florida | Palm Beach | Wellington | 32 | 4 | 4 | 1 | |||
27 | Florida | Palm Beach | Wellington | 45 | ||||||
28 | Florida | Palm Beach | Wellington | 46 | ||||||
29 | Florida | Palm Beach | Wellington | 12 | ||||||
Sheet1 |