Hello.
I am trying to do a count and a vlookup at the same time in Excel.
I have a worksheet (info):
ID Date Server
Leader 1 1/8/2010 EG
Leader 3 1/8/2010 EG
Leader 1 1/9/2010 GoM
Leader 1 1/10/2010 GoM
Leader 2 1/11/2010 EG
Leader 4 1/12/2010 EG
There is another worksheet (Leader):
id version
Leader 1 TRUE
Leader 2 TRUE
Leader 3 FALSE
Leader 4 FALSE
these are obviously simplified for my question. What I want to do is:
Find the count of instances in Sheet Info where Server = EG and corresponding leader = True (from leader sheet). In this case it should be 2. I started with sumproduct, but I need to use Vlookup for each leader to get the Version value but I can't figure out how to combine them to get a count.
This is what I have so far:
=SUMPRODUCT(--(Info!C:C="EG"), --(Leader!B:B = "TRUE"))
obviously the leader portion is wrong. The vlookup should be: =VLOOKUP(Info!A2, Leader!A:B, 2, 0) for the first value which would return TRUE, but I need the count of all VLOOKUPS that return a TRUE for EG"
I am trying to do a count and a vlookup at the same time in Excel.
I have a worksheet (info):
ID Date Server
Leader 1 1/8/2010 EG
Leader 3 1/8/2010 EG
Leader 1 1/9/2010 GoM
Leader 1 1/10/2010 GoM
Leader 2 1/11/2010 EG
Leader 4 1/12/2010 EG
There is another worksheet (Leader):
id version
Leader 1 TRUE
Leader 2 TRUE
Leader 3 FALSE
Leader 4 FALSE
these are obviously simplified for my question. What I want to do is:
Find the count of instances in Sheet Info where Server = EG and corresponding leader = True (from leader sheet). In this case it should be 2. I started with sumproduct, but I need to use Vlookup for each leader to get the Version value but I can't figure out how to combine them to get a count.
This is what I have so far:
=SUMPRODUCT(--(Info!C:C="EG"), --(Leader!B:B = "TRUE"))
obviously the leader portion is wrong. The vlookup should be: =VLOOKUP(Info!A2, Leader!A:B, 2, 0) for the first value which would return TRUE, but I need the count of all VLOOKUPS that return a TRUE for EG"