Which formula?

Mary7903

New Member
Joined
Dec 27, 2017
Messages
8
I Have a spreadsheet with following:

Column A = site names (x,y...)
Column B = staff name (Mary....)
Column C = dates
Column D =?
Column E =?


I need to show on column D how many times any staff travelled to site x

Then on column E, I would like to show how many times Mary travelled to any of the sites.

I’m trying to use countif formula but is not working ?. Could someone please provide the formula. Thank you
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
I need to show on column D how many times any staff travelled to site x
---- just for X or it would be changing depending upon situation.

And why you don't just use PivotTable and GETPIVOTDATA?

How you are using formula , can you post it.


Regards,
Mukesh Y

 
Last edited:
Upvote 0

Excel 2016 (Windows) 32 bit
ABCDE
1SiteStaffDatesSite TotalStaff Total
2CWilliam16
3LJohn37
4NJim12
5VJohn27
6ZJohn37
7PJim22
8ZMary33
9DSioux16
10KSioux16
11OSioux26
12IJohn17
13HSioux16
14JJohn17
15EMary43
16SJohn27
17SJames25
18GJames25
19LWilliam36
20GWilliam26
21VWilliam26
22QSioux16
23EWilliam46
24PMary23
25LJames35
26ESioux46
27BJohn17
28OJames25
29ZJames35
30EWilliam46
Sheet5
Cell Formulas
RangeFormula
D2=SUMPRODUCT(--($A$2:$A$30=A2))
E2=SUMPRODUCT(--($B$2:$B$30=B2))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,817
Messages
6,121,720
Members
449,050
Latest member
MiguekHeka

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