The_Grudge
Mar 9th, 2006, 09:18 AM
Firstly, let me apologize for all of my "macro" posts the last few days. I could have merged them all into one but I had no idea that I was going to need more than one! If your out there DKenny you may be able to help since your solution yesterday is VERY similar to today's issue.
Okay, hopefully this is it.
I'm using Excel so I need a macro to do the following.
Lets' say I have the following data (Name, Patient ID, and Date)...
DAVID, 01251, 20051214
DAVID, 01251, 20051214
JOE, 05564, 20051215
ERIC, 06498, 20051215
ERIC, 06498, 20051216
Well, wherever the Patient and Date are the same I need to create an index.
So it would end up looking like...
DAVID, 01251, 20051214 ----> 1
DAVID, 01251, 20051214 ----> 2
JOE, 05564, 20051215 ----> 1
ERIC, 06498, 20051215 -----> 1
ERIC, 06498, 20051216 ------> 1
The index only increments if both the PATIENTID and NAME are the same.
Got me?
Thanks in advance for the help guys & gals.
Okay, hopefully this is it.
I'm using Excel so I need a macro to do the following.
Lets' say I have the following data (Name, Patient ID, and Date)...
DAVID, 01251, 20051214
DAVID, 01251, 20051214
JOE, 05564, 20051215
ERIC, 06498, 20051215
ERIC, 06498, 20051216
Well, wherever the Patient and Date are the same I need to create an index.
So it would end up looking like...
DAVID, 01251, 20051214 ----> 1
DAVID, 01251, 20051214 ----> 2
JOE, 05564, 20051215 ----> 1
ERIC, 06498, 20051215 -----> 1
ERIC, 06498, 20051216 ------> 1
The index only increments if both the PATIENTID and NAME are the same.
Got me?
Thanks in advance for the help guys & gals.