3 methods to quickly extract data from multiple rows


Extracting data is a common task for many office workers. Everyone has their own tips. Today we introduce three methods, from the simplest shortcut techniques to tried-and-true classic formulas.

The data source is in column A and contains many items. We need to extract name, height and weight. You can see the items to extract follow a pattern: they are the data that follow the second and third commas in the source.

When we face a problem, finding the pattern is the key to solving it. Now that the pattern is identified, the solutions follow. Here are three methods, from simple keyboard shortcuts to powerful classic formulas; each is introduced below.

3 methods to quickly extract data from multiple rows

  1. Enter John in B2.
  2. Enter Mary in B3.
  3. Excel will automatically fill the data below.
  4. Press Enter to finish.
  1. Select the data → Data → Text to Columns.
  2. Delimiters
  3. Comma (use whatever delimiter applies to your data)
  4. Completed
Formula: =TRIM(MID(SUBSTITUTE($A2,",",REPT(" ",99)),(COLUMN(A:A)-1)*99+1,99))
  • SUBSTITUTE($B34,",",REPT(" ",99)) replaces the ',' with 99 spaces, resulting in "John………………………………………………………………………………………165cm………………………………………………………………………………………74kg" (spaces shown as '.' for clarity).
  • (COLUMN(A33)-1)*99+1 is (1-1)*99+1=1. When dragged to the right, the 1st value is 1, the 2nd value is 99×1, the 3rd value is 99*3.
  • MID(SUBSTITUTE($B34,",",REPT(" ",99)),(COLUMN(A33)-1)*99+1,99) extracts 99 characters starting from the 1st character, producing "John………………………………………………………………………………………165cm………………………………………………………………………………………74kg" (spaces shown as '.' for clarity).
  • Finally, use TRIM to remove the extra spaces.

Comprehensive Technical Support Solutions

We provide a range of technical support solutions to meet your needs.
Explore our core services:

man and woman wearing headphones while working in the office

Get on-demand assistance with Microsoft Excel, Word and PowerPoint. Send your question via WhatsApp, and we will help you resolve it promptly.

serious diverse students looking at laptop

Join our Online Learning Group Facebook page. Explore more than 200 tutorials and a comprehensive library of instructional videos at your own pace.

woman in yellow blazer doing a presentation

Build your team’s skills with tailored corporate training programmes. Our courses are designed around your organisation’s needs and equip employees with practical, up-to-date tools.