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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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