Lookup based on Person in top row

monkeyharris

Active Member
Joined
Jan 20, 2008
Messages
368
Office Version
  1. 365
Platform
  1. Windows
Hi, I have a table that works OK but i want to add another criteria to count the number of events per person. It's the last table in the below mini sheet.
I want B29 to lookup a sheet called YTD_Figures and return the number of Sales-i or Sales Quotes against the persons name (top row of that table). In this case the first person is Alina, the Harriet etc.

Woodford Proactive Call Stats.xls
ABCDEFGHIJKLM
2EmployeeQ1 ContactedQ1 Not ContactedQ1 PerformanceQ2 ContactedQ2 Not ContactedQ2 PerformanceQ3 ContactedQ3 Not ContactedQ3 PerformanceQ4 ContactedQ4 Not ContactedQ4 Performance
3Alina739643.20%01690.00%01690.00%01690.00%
4Harriet704163.06%01110.00%01110.00%01110.00%
5Jemma486343.24%01110.00%01110.00%01110.00%
6Jo288225.45%01100.00%01100.00%01100.00%
7Mita153132.61%0460.00%0460.00%0460.00%
8Paul575351.82%01100.00%01100.00%01100.00%
9Tendayi486343.24%01110.00%01110.00%01110.00%
10Zoe426838.18%01100.00%01100.00%01100.00%
11Overall38149743.39%08780.00%08780.00%08780.00%
12
13
14
15CONTACT TYPE (Sales-I / Quotation / Sales Order)
16EmployeeQ1 ContactedQ1 Not ContactedQ1 PerformanceQ2 ContactedQ2 Not ContactedQ2 PerformanceQ3 ContactedQ3 Not ContactedQ3 PerformanceQ4 ContactedQ4 Not ContactedQ4 Performance
17Alina739643.20%01690.00%01690.00%01690.00%
18Harriet704163.06%01110.00%01110.00%01110.00%
19Jemma486343.24%01110.00%01110.00%01110.00%
20Jo288225.45%01100.00%01100.00%01100.00%
21Mita153132.61%0460.00%0460.00%0460.00%
22Paul575351.82%01100.00%01100.00%01100.00%
23Tendayi486343.24%01110.00%01110.00%01110.00%
24Zoe426838.18%01100.00%01100.00%01100.00%
25Overall38149743.39%08780.00%08780.00%08780.00%
26
27
28AlinaHarrietJemmaJoMitaPaulTendayiZoe
29Sales-i34
30Sales Quote102
31Sales Order245
32Telephone Call0
33Visit - Pre-made appointments0
34Visit - Proactive / Cold Call0
35Visit - Reactive0
Statistics
Cell Formulas
RangeFormula
B3:B10,B17,B19:B24B3=SUMPRODUCT(--(WO_Bronze!J:J=Statistics!A3)*(WO_Bronze!N:N="Complete"))
C3:C10,C17:C24C3=SUMPRODUCT(--(WO_Bronze!J:J=Statistics!A3)*(WO_Bronze!N:N="No"))
D3:D10,D17:D24D3=B3/COUNTIF(WO_Bronze!J:J,Statistics!A3)
E3:E10,E17:E24E3=SUMPRODUCT(--(WO_Bronze!J:J=Statistics!A3)*(WO_Bronze!R:R="Complete"))
F3:F10,F17:F24F3=SUMPRODUCT(--(WO_Bronze!J:J=Statistics!A3)*(WO_Bronze!R:R="No"))
G3:G10,J3:J10,M3:M10,G17:G24,J17:J24,M17:M24G3=E3/F3
H3,H17H3=SUMPRODUCT(--(WO_Bronze!J:J=Statistics!A3)*(WO_Bronze!V:V="Complete"))
I3:I10,I17:I24I3=SUMPRODUCT(--(WO_Bronze!J:J=Statistics!A3)*(WO_Bronze!V:V="No"))
K3:K10,K17:K24K3=SUMPRODUCT(--(WO_Bronze!J:J=Statistics!A3)*(WO_Bronze!Z:Z="Complete"))
L3:L10,L17:L24L3=SUMPRODUCT(--(WO_Bronze!J:J=Statistics!A3)*(WO_Bronze!Z:Z="No"))
H4:H10,H18:H24H4=SUMPRODUCT(--(WO_Bronze!N:N=Statistics!F4)*(WO_Bronze!R:R="Complete"))
B11:C11,E11:F11,H11:I11,K11:L11,B25:C25,E25:F25,H25:I25,K25:L25B11=SUM(B3:B10)
D11,G11,J11,M11,D25,G25,J25,M25D11=B11/SUM(B11:C11)
B18B18=SUMPRODUCT(--(WO_Bronze!J:J=Statistics!A18)*(WO_Bronze!N:N="Complete"))
B29:B35B29=SUMPRODUCT(--(YTD_Figures!E:E=Statistics!A29)*(WO_Bronze!N:N="Complete"))
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
In the worksheet YTD_Figures where are Sales-i or Sales Quotes? where are the names in reference to the data? I mini worksheet of that would be very helpful.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top