Solution for large data set

Pappeh

New Member
Joined
Nov 24, 2015
Messages
1
Hey everyone,

I am working with a spreadsheet of a huge amount of data. I generated it from a .txt file by pasting the text into Word, generating a spreadsheet using space as the field separator, and pasting it into Excel. However, some fields were separated by multiple spaces, so a lot of my data is offset by one or two cells. I had been going through deleting the empty cells and shifting cells accordingly, but there are about 12,000 rows of cells. Is there a smarter way to go about this? Is there a way to have excel do this for me?

ZsaoCx.png
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
In your text file (or word) use the find/replace feature and replace the double-space with a single-space. Repeat until the program cannot find any more double-spaces. Then import into Excel.
 
Upvote 0
Nice approach, pplstuff. Wish I'd thought of that. ;)

And to Pappeh, if you really want an Excel solution, you might try the following macro...

Code:
Sub DeleteBlankCells()
  On Error Resume Next
  ActiveSheet.UsedRange.SpecialCells(xlCellTypeBlanks).Delete shift:=xlToLeft
End Sub

Cheers,

tonyyy
 
Upvote 0

Forum statistics

Threads
1,216,116
Messages
6,128,930
Members
449,479
Latest member
nana abanyin

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