简体   繁体   中英

Extracting numbers from a list in a cell in Excel

Could anyone tell me how to extract a list of numbers from a field in an MS Excel Spreadsheet in to separate cells please? The numbers are delimited by commas. EG 506, 507, 508, 509

Thanks

  1. Select the number cells, and click Data > Text to Columns .
  2. In the Step 1 of the Convert Text to Columns Wizard , check Delimited .
  3. Click Next to go to step 2 of the Wizard, and select the "Comma" symbol.
  4. Click Next and choose "General" type.
  5. Click Finish , and then the selected numbers are split into columns.

Ready!

With data in A1 , in B1 enter:

=IFERROR(--TRIM(MID(SUBSTITUTE($A1,",",REPT(" ",999)),COLUMNS($A:A)*999-998,999)),"")

and copy across.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM