Missing Numbers from a Custom Sequence According to Multiple Unique Identiers

JJohnson07

New Member
Joined
Aug 28, 2017
Messages
2
I am using Excel 10. If I have multiple reps that have scheduled visits, and the scheduled visits I want to track are identified with the numbers 2-51. How do I identify the missing visits according to the rep? I have found a few great VBAs for the missing numbers, have not found a solution tying the missing numbers to the rep's name. I would greatly appreciate any support! Below is an example of the data:

[TABLE="width: 250"]
<tbody>[TR]
[TD]Reps
[/TD]
[TD]Visit
[/TD]
[/TR]
[TR]
[TD]Jim
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]Jim
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]Jim
[/TD]
[TD]4
[/TD]
[/TR]
[TR]
[TD]Jim
[/TD]
[TD]6
[/TD]
[/TR]
[TR]
[TD]Jim
[/TD]
[TD]7
[/TD]
[/TR]
[TR]
[TD]Beth
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]Beth
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]Beth
[/TD]
[TD]4
[/TD]
[/TR]
[TR]
[TD]Josh
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]Josh
[/TD]
[TD]5
[/TD]
[/TR]
[TR]
[TD]Josh
[/TD]
[TD]6
[/TD]
[/TR]
[TR]
[TD]Josh
[/TD]
[TD]7
[/TD]
[/TR]
</tbody>[/TABLE]

The output I need is as follows:

[TABLE="width: 250"]
<tbody>[TR]
[TD]Jim[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Josh[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Josh[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
A
[/TD]
[TD]
B
[/TD]
[TD]
C
[/TD]
[TD]
D
[/TD]
[TD]
E
[/TD]
[TD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[/TD]
[TD]Josh[/TD]
[TD]
2​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
11
[/TD]
[TD]Josh[/TD]
[TD]
5​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
12
[/TD]
[TD]Josh[/TD]
[TD]
6​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
13
[/TD]
[TD]Josh[/TD]
[TD]
7​
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


f2=
SUM(IF(FREQUENCY(IF($A$2:$A$13=$F2,$B$2:$B$13),$B$2:$B$13),1)) control+shif +enter copy down

After you type in the formula, don't just press enter.
Instead, press CTRL + SHIFT + ENTER


If you've already entered the formula, then highlight the cell with the formula and press F2.
Then press CTRL + SHIFT + ENTER




When entered correctly, the formula will be enclosed in {brackets}


 
Upvote 0
Thank you for your reply Marziotullio! However, it's not the a visit count based on the rep's name that I'm looking for. It's the missed visits according to the reps name. Note that in my output example Beth does not show up because there are no missing numbers between 2 and 4. I am actually able to use your array for another need though. :)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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