count if name appears in column if not check next column and count if not check next column etc.

confused in Frankfurt

Board Regular
Joined
Oct 11, 2010
Messages
53
Hi there,
I have a set of data where the sales rep. creates a visit report. His name can appear in one of 6 fields.

I want to count the number of visits and only once per sales rep. per visit. The name can appear on one of 6 columns and not always in the first.

How can I count the first and move on to the next until reaching the last column without counting more than once per line? I also have a date span to query as well in order to count per quarter.

I am not using VBA and need a formula for Excel in the 2010 version.

Regards
and thanks in advance.

[TABLE="width: 500"]
<tbody>[TR]
[TD]Report Creator
[/TD]
[TD]Attendee 1
[/TD]
[TD]Attendee 2
[/TD]
[TD]attendee3
[/TD]
[TD]attendee 4
[/TD]
[TD]attendee 5
[/TD]
[TD]Visit Date

[/TD]
[/TR]
[TR]
[TD]John Black
[/TD]
[TD]Mary Jones
[/TD]
[TD]John Black
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]21.01.2014
[/TD]
[/TR]
[TR]
[TD]John Black
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]15.01.2014
[/TD]
[/TR]
[TR]
[TD]Mary Jones
[/TD]
[TD][/TD]
[TD]Mary Jones
[/TD]
[TD]John Black
[/TD]
[TD][/TD]
[TD][/TD]
[TD]11.01.2014
[/TD]
[/TR]
[TR]
[TD]James Green
[/TD]
[TD]James Green
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11.01.2014
[/TD]
[/TR]
[TR]
[TD]James Green
[/TD]
[TD]James Green
[/TD]
[TD]Mary Jones
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]01.04.2014
[/TD]
[/TR]
</tbody>[/TABLE]

Results: Q1 Q2
John Black 3 0
Mary JOnes 2 1
James Green 1 1
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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