VBA to match large blocks of data?

zakynthos

Board Regular
Joined
Mar 28, 2011
Messages
169
I have:

Briefings ID Tracker.xlsx


  • About 10,000 (variable, 9 digit) employee no’s in cols A, K and U
  • 25 unique briefing no’s in col F (5 variable, 5 digit)

Briefings ID Tracker.xlsm

I need to :


  • check each briefing no. against each employee no in the Briefings ID Tracker.xlsx worksheet
  • return a ‘1’ in Col C in this (.xlsm) worksheet and a ‘0’ in column D if employee no.s in A and K match
  • return a ‘00’ in Cols C and D if the if the employee no.s in A and K do not match.
So each of these 25 unique (variable) briefing no’s will need to be tested against the full list of approximately 10000 employee no’s – i.e 250,000 rows of data!
I have compiled a programme in VBA which will input all the vlookups etc to match the results from the xlsm worksheet to avoid the problem of refreshing all these vlookups!

My problem is: What would be the program steps to run the above checks?


Many thanks
:confused:
 
Last edited:

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,)
Can you upload some example of your workbook?
 
Upvote 0
A C D K L U
702950849 1 0 702950849 36451 702950849


Where:
A = employee no
C = 1 (or blank) - read and understood briefing (=1) not read briefing (blank)
D = 0 (or blank) - read and not understood briefing (0), not read briefing (blank)

K = employee no (=A)
L = briefing no
U = employee no (=A and K)

Example: there may be say 5,000 rows for briefing no 36451 in Col L
I need to test each of these rows against all employee no's (the list will vary, but will be between 10000-15000).

There could be, say 6500 rows for briefing no, say 36452, again to be tested against all 10000-15000 employee no's.

I need to return (somewhere on this sheet in 2 columns: 'read+understood', 'read and not understood'

a '1' if A=K and C = 1
a '0' if A=K and D = 0
a '00' if A=K and C= blank and D = blank (ie briefing was not looked at)

I hope this makes it clearer:)
 
Upvote 0
And where's the list of 15000 Employees? Where it's located?
 
Upvote 0
The list of employees (variable, up to 15000 max) is located in Cols A, K and U

The 9 digit no's given in my example represent the 'employee list'
 
Upvote 0
So, I take employee in A and extract all his briefings marks? Correct?
 
Upvote 0
Could you upload some excerpt of your data?
 
Upvote 0
I'm not sure how I could upload data to the site. I would if I knew how to :confused:

The example above:

A - C- D- K- L- U

702950849 - 1 - 0 - 702950849 - 36451 - 702950849

A employee no (702950849)
C read and understood - (1)
D read and not understood (0)
C/D blanks represent not read the briefing
K -employee no (702950849)
L briefing ID no (36451)
(column U can be ignored was used previously, not relevant to this query)
 
Upvote 0

Forum statistics

Threads
1,224,516
Messages
6,179,231
Members
452,898
Latest member
Capolavoro009

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