Formula Help Needed.

DarrenF

Board Regular
Joined
Jun 9, 2014
Messages
90
If I want to count how many days someone worked based off the name in column B and the Day of the Month in Column C what kind of formula would I need?

A B C
Ticket NumberNameDay of the Month
11501679Jimmy Johns2
11514116Jimmy Johns2
11514524Jimmy Johns2
11514782Jimmy Johns2
11515051Jimmy Johns3
11515282Jimmy Johns4
11515549Jimmy Johns4
11516527Jimmy Johns4
11517261Jimmy Johns5
11520796Jimmy Johns5
11520849Jimmy Johns5
11524429Jimmy Johns6
11525140Jimmy Johns6
11525675Jimmy Johns6
11525787Jimmy Johns9
11527125Jimmy Johns9
11527223Jimmy Johns9
11389189Magic Johnson10
11392994Magic Johnson10
11393375Magic Johnson10
11393776Magic Johnson10
11394171Magic Johnson10
11396216Magic Johnson11
11397851Magic Johnson11
11398554Magic Johnson11
11398898Magic Johnson11
11399327Magic Johnson11
11399546Magic Johnson11
11400425Magic Johnson11
11406878Magic Johnson11
11406966Magic Johnson11
11407147Magic Johnson11
11408630Magic Johnson11
11409083Magic Johnson12
11409302Magic Johnson12

<colgroup><col span="3"></colgroup><tbody>
</tbody>

<colgroup><col span="3"></colgroup><tbody>
</tbody>
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
try PowerQuery

NameDay of the MonthDaysNameDays
Jimmy Johns
2​
4​
Jimmy Johns
17​
Jimmy Johns
3​
1​
Magic Johnson
18​
Jimmy Johns
4​
3​
Jimmy Johns
5​
3​
Jimmy Johns
6​
3​
Jimmy Johns
9​
3​
Magic Johnson
10​
5​
Magic Johnson
11​
11​
Magic Johnson
12​
2​

for bigger table
Code:
[SIZE=1]let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Grouped Rows" = Table.Group(Source, {"Name", "Day of the Month"}, {{"Days", each Table.RowCount(_), type number}})
in
    #"Grouped Rows"[/SIZE]

or

for smaller table
Code:
[SIZE=1]let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Grouped Rows" = Table.Group(Source, {"Name"}, {{"Days", each Table.RowCount(_), type number}})
in
    #"Grouped Rows"[/SIZE]
 
Last edited:
Upvote 0
=SUMPRODUCT( --(B2:B36="Jimmy Johns"), 1/COUNTIF(C2:C36, C2:C36))
 
Upvote 0
one more possibility

NameCount
Jimmy Johns
6​
Magic Johnson
3​
Code:
[SIZE=1]
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Grouped Rows" = Table.Group(Source, {"Day of the Month", "Name"}, {{"Count", each Table.RowCount(_), type number}}),
    #"Grouped Rows1" = Table.Group(#"Grouped Rows", {"Name"}, {{"Count", each Table.RowCount(_), type number}})
in
    #"Grouped Rows1"[/SIZE]
 
Upvote 0

Forum statistics

Threads
1,215,758
Messages
6,126,702
Members
449,331
Latest member
smckenzie2016

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