Only in column B and D
Excel 2010 | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | Melissa | George | 4 | |||||
2 | Melissa | |||||||
3 | Paul | |||||||
4 | Paul | Melissa | Melinda | |||||
5 | John | |||||||
6 | Melissa | |||||||
7 | Melissa | |||||||
8 | Jack | |||||||
9 | Melissa | |||||||
10 | ||||||||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F1 | =SUM(COUNTIF(B1:B10,"Melissa"),COUNTIF(D1:D10,"Melissa")) |
=SUMPRODUCT((MOD(COLUMN($A$1:$D$10), 2)=0)*($A$1:$D$10="Melissa"))
[/QUOTE]Not just to row 10 I have =countif(B:D,"MELISSA*") but if Melissa is mistakenly put in column c it is counting it and I don't want it to
Code:=SUMPRODUCT((MOD(COLUMN($A$1:$D$10), 2)=0)*($A$1:$D$10="Melissa"))
There is likely some other, more elegant solutions.