Extracting useful data using a macro

broca

New Member
Joined
Mar 6, 2019
Messages
1
Hi everyone!

I work in medicine and have a data analysis project I'm trying to work on. The basic premise is that I have an excel workbook that's the output of a database search of our radiology records system (submitted a keyword search to radiology system, it output all results to this workbook). Now I want to look in my workbook and find every instance that a particular keyword was used (for example every time the radiologist used the word "heterotopia" in their report). For every instance that my keyword was found, I want to output the patient's information to a new clean workbook. A complicating factor of this is that the radiology system output the data into 17 sheets, each with about 60,000 rows.

Here's an example screenshot of what this looks like: https://imgur.com/a/HTO93J0

The patient info is always the row above the report, but the report is in those big merged cells.

This seemed like a perfect time to use a macro, but I have no experience writing them, much less dealing with things like big blocks of text in merged cells. Any help would be appreciated!
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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