Lola
New Member
My issue is this: I have a table that I need to pull some data from [filter, extract some values, and do some basic counting (sample with dummy data attached)].
Specifically, I need to identify the unique values in the ID column, count the number of "encounters" per unique ID (especially those with more than 3), find the most recent encounter and extract values from the other columns corresponding to that encounter for other basic functions (e.g. "for most recent visit, did patient have a PCP yes or no").
I took a VBA course around 10 years ago during graduate school but I'm afraid I've forgotten too much to figure this out quickly (I've tried). Is there anyone who can tell me #1) if this is feasible using VBA and #2) how to do it...?
I'll take help from anyone willing to offer it!
Specifically, I need to identify the unique values in the ID column, count the number of "encounters" per unique ID (especially those with more than 3), find the most recent encounter and extract values from the other columns corresponding to that encounter for other basic functions (e.g. "for most recent visit, did patient have a PCP yes or no").
I took a VBA course around 10 years ago during graduate school but I'm afraid I've forgotten too much to figure this out quickly (I've tried). Is there anyone who can tell me #1) if this is feasible using VBA and #2) how to do it...?
I'll take help from anyone willing to offer it!