Excel 2007 Gurus

Tsaico

Platinum Member
Oct 21, 2000
2,669
0
0
I have two columns. The first one is a sale's person's name and the second is their ability to flip a customer, yes (no is a blank cell). I want to count how many times the same sales person joe was able to flip a customer (the "y"). So the condition would be many cell rows, but only count the instance where both column 1 and column 2 were Joe AND "y".

I know it should be a simple thing, but for some reason, i just can't get the syntax down.

example:

Joe |"y"
Joe |
Joe |
Sally |
Joe |"Y"
Sally |"y"
_______
Total Joe =2 ; sally = 1


Where did I go wrong?

---

Moved to SfW.

Zim Hosein

Off Topic Moderator.
 

KLin

Lifer
Feb 29, 2000
30,951
1,079
126
Originally posted by: Tsaico
I have two columns. The first one is a sale's person's name and the second is their ability to flip a customer, yes (no is a blank cell). I want to count how many times the same sales person joe was able to flip a customer (the "y"). So the condition would be many cell rows, but only count the instance where both column 1 and column 2 were Joe AND "y".

I know it should be a simple thing, but for some reason, i just can't get the syntax down.

example:

Joe |"y"
Joe |
Joe |
Sally |
Joe |"Y"
Sally |"y"
_______
Total Joe =2 ; sally = 1


Where did I go wrong?

You posted in the wrong forum. That's where you went wrong.

http://forums.anandtech.com/ca...tid=33&flcache=6850508
 

tontod

Diamond Member
Oct 12, 1999
3,244
0
71
Originally posted by: Tsaico
I have two columns. The first one is a sale's person's name and the second is their ability to flip a customer, yes (no is a blank cell). I want to count how many times the same sales person joe was able to flip a customer (the "y"). So the condition would be many cell rows, but only count the instance where both column 1 and column 2 were Joe AND "y".

I know it should be a simple thing, but for some reason, i just can't get the syntax down.

example:

Joe |"y"
Joe |
Joe |
Sally |
Joe |"Y"
Sally |"y"
_______
Total Joe =2 ; sally = 1


Where did I go wrong?

I had to do something similar at work, use the COUNTIF function. Should be like this:

COUNTIF(AX:AY,"y")

Where AX and AY would be your cell range.

 

AreaCode707

Lifer
Sep 21, 2001
18,447
133
106
Originally posted by: Tsaico
I have two columns. The first one is a sale's person's name and the second is their ability to flip a customer, yes (no is a blank cell). I want to count how many times the same sales person joe was able to flip a customer (the "y"). So the condition would be many cell rows, but only count the instance where both column 1 and column 2 were Joe AND "y".

I know it should be a simple thing, but for some reason, i just can't get the syntax down.

example:

Joe |"y"
Joe |
Joe |
Sally |
Joe |"Y"
Sally |"y"
_______
Total Joe =2 ; sally = 1


Where did I go wrong?

Pivot Table with sales person name in the first row, the customer in the second row and sales person name or some other element as data.
 

arcenite

Lifer
Dec 9, 2001
10,660
7
81
macro? pseudocode...

create a 2-d array of size (#unique names, 1)

x = 0
for each unique name
namesAndCounts(x, 0) = name
namesAndCounts(x, 1) = 0

x = x + 1
next

x2 = x
x = 0

for each name in column(a)
while x < x2
if namesAndColumns(x, 0) = column(a) and column(b) = "y" then
namesAndColumns(x, 1) = namesAndColumns(x, 1) + 1
x = x2
else
x = x + 1
end if
wend
x = 0
next


...or something like that
 

rayray2

Senior member
Sep 12, 2002
871
0
76
just get rid of all the rows containing deadbeats who can't flip a customer leaving only the y's, then just sort by name and do a subtotal (in the data tab) by name.
 

NeoV

Diamond Member
Apr 18, 2000
9,504
2
81
countif function would do the trick

pivot table would also work - use 'count' instead of sum
 

Billb2

Diamond Member
Mar 25, 2005
3,035
70
86
Originally posted by: Tsaico
I have two columns. The first one is a sale's person's name and the second is their ability to flip a customer, yes (no is a blank cell). I want to count how many times the same sales person joe was able to flip a customer (the "y").

You should be using Access, not Excel.