Welcome to my website!

All my tutorials are here to teach you how to use a few lines of codes to automate repetitive tasks which will save us tremendous amount of time.

#3: Assigning site names based on assigned site numbers

Clinical Research Data 101

Tools/Languages: Excel VBA Macro

This tutorial shows you how to automatically delete the unused column, loop through all rows to assign site names based on assigned site numbers.


It's super helpful if you have more than 100 participants from more than 1 site.
Or when you need to generate daily participant reporting.
You can use this template to assign column values based on column values (numbers) from another column.

First of all, here's the link to learn how to turn on the "Developer Mode" in your Excel.

What happened?

In clinical research, we often need to track participants' status. Usually we would have a spreadsheet of participants IDs with previously assigned site numbers. For example, UCLA is site 01 and UC Santa Cruz is site 02, etc. In the electronic data capture system (REDCap), the site numbers should be used as the best indicator for sites, since it's easy to mispell the site names and there're multiple ways to write the same site names. This tutorial is to simulate the situation when you export the report data to Excel spreadsheet as raw data.

What should I do now?

Please leave me a message if it doesn't work for you.