Technology Get the latest on technology, electronics and software…

Urgent: MS Excel question

Thread Tools
 
Old Jul 3, 2008 | 10:30 AM
  #1  
AcuraKidd's Avatar
Thread Starter
The Talk of New York
iTrader: (1)
 
Joined: Jul 2006
Posts: 687
Likes: 0
From: Queens, NYC
Exclamation Urgent: MS Excel question

I have an excel document with about 16,000 lines of data. The problem is that the data is on every other line. Is there a fast way to get rid of all the blank lines?
Reply
Old Jul 3, 2008 | 10:34 AM
  #2  
GIBSON6594's Avatar
My Garage
 
Joined: Nov 2004
Posts: 13,386
Likes: 11
From: NY
sort it?
Reply
Old Jul 3, 2008 | 10:38 AM
  #3  
Beelzebub's Avatar
Race Director
20 Year Member
Photogenic
Liked
Loved
 
Joined: Jan 2003
Posts: 10,935
Likes: 1,052
From: Long Island, NY
Originally Posted by GIBSON6594
sort it?
Might work

but other than that
I know of no quick way in excel to do that.

I would convert it to csv file and then use grep -v to get rid of the blank lines.
Reply
Old Jul 3, 2008 | 10:41 AM
  #4  
AcuraKidd's Avatar
Thread Starter
The Talk of New York
iTrader: (1)
 
Joined: Jul 2006
Posts: 687
Likes: 0
From: Queens, NYC
Originally Posted by Beelzebub
Might work

but other than that
I know of no quick way in excel to do that.

I would convert it to csv file and then use grep -v to get rid of the blank lines.
can u please be a bit more specific on this method
Reply
Old Jul 3, 2008 | 10:50 AM
  #5  
65 Fury Convert's Avatar
Drifting
 
Joined: Feb 2002
Posts: 2,637
Likes: 21
Just sort it
Reply
Old Jul 3, 2008 | 10:53 AM
  #6  
Beelzebub's Avatar
Race Director
20 Year Member
Photogenic
Liked
Loved
 
Joined: Jan 2003
Posts: 10,935
Likes: 1,052
From: Long Island, NY
Well

You need to have unix tools on your machine, or there might be a freeware grep utility out there.


convert to CSV as long as there isn't special formatting in the file you will be ok

grep , filename.csc > newfilename.csv

re-import back into excel.
Reply
Old Jul 3, 2008 | 10:54 AM
  #7  
AcuraKidd's Avatar
Thread Starter
The Talk of New York
iTrader: (1)
 
Joined: Jul 2006
Posts: 687
Likes: 0
From: Queens, NYC
Originally Posted by 65 Fury Convert
Just sort it
can u give exact directions, cause I have 4 columns of info and it can't be mixed up
Reply
Old Jul 3, 2008 | 10:55 AM
  #8  
NSXNEXT's Avatar
Senior Moderator
25 Year Member
Liked
Loved
Community Favorite
iTrader: (2)
 
Joined: May 2000
Posts: 27,921
Likes: 1,080
From: where the weather suits my clothes
If you want to keep the rows in the order they are in now (without the blank rows)

Add a new column A
Number it sequentially (1 - n)
Sort on column B
Now the the blank rows will be at the bottom (depending if you choose ascending or descending - doesn't really matter either way)
Delete blank rows
Resort by column A
Delete column A
Done
Reply
Old Jul 3, 2008 | 11:07 AM
  #9  
svtmike's Avatar
Team Owner
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Oct 2003
Posts: 37,706
Likes: 3,904
From: Chicago
Originally Posted by NSXNEXT
If you want to keep the rows in the order they are in now (without the blank rows)

Add a new column A
Number it sequentially (1 - n)
Sort on column B
Now the the blank rows will be at the bottom (depending if you choose ascending or descending - doesn't really matter either way)
Delete blank rows
Resort by column A
Delete column A
Done
Reply
Old Jul 3, 2008 | 11:10 AM
  #10  
NSXNEXT's Avatar
Senior Moderator
25 Year Member
Liked
Loved
Community Favorite
iTrader: (2)
 
Joined: May 2000
Posts: 27,921
Likes: 1,080
From: where the weather suits my clothes
Originally Posted by svtmike

Thanks.

I spend probably 6 hours a day manipulating Excel spreadsheets.
Reply
Old Jul 3, 2008 | 11:11 AM
  #11  
Billiam's Avatar
Big Block go VROOOM!
 
Joined: Oct 2003
Posts: 8,578
Likes: 1
From: Chicago Burbs
Sounds like another classic case of Excel being used as a database.
Reply
Old Jul 3, 2008 | 11:17 AM
  #12  
AcuraKidd's Avatar
Thread Starter
The Talk of New York
iTrader: (1)
 
Joined: Jul 2006
Posts: 687
Likes: 0
From: Queens, NYC
Originally Posted by NSXNEXT
If you want to keep the rows in the order they are in now (without the blank rows)

Add a new column A
Number it sequentially (1 - n)
Sort on column B
Now the the blank rows will be at the bottom (depending if you choose ascending or descending - doesn't really matter either way)
Delete blank rows
Resort by column A
Delete column A
Done
AMAZING

this method worked, thank you very much

but now I have another dilema...

I'm in MS Word, I imported that excel doc into mail merge, everything came out fine, and I have 291 pages of labels. Now my dilema is that I gotta insert "Queens, NY" into each label right before the zip code. Any fast way of doing that?
Reply
Old Jul 3, 2008 | 11:19 AM
  #13  
NSXNEXT's Avatar
Senior Moderator
25 Year Member
Liked
Loved
Community Favorite
iTrader: (2)
 
Joined: May 2000
Posts: 27,921
Likes: 1,080
From: where the weather suits my clothes
Originally Posted by AcuraKidd
AMAZING

this method worked, thank you very much

but now I have another dilema...

I'm in MS Word, I imported that excel doc into mail merge, everything came out fine, and I have 291 pages of labels. Now my dilema is that I gotta insert "Queens, NY" into each label right before the zip code. Any fast way of doing that?

Insert a new column?
You'll have to rerun the mail merge to grab the new column.
Reply
Old Jul 3, 2008 | 11:20 AM
  #14  
#1 STUNNA's Avatar
Sanest Florida Man
Photogenic
Photoriffic
Shutterbug
Community Influencer
 
Joined: Aug 2007
Posts: 46,058
Likes: 11,814
From: Florida
find and replace zip code with queens ny + zip code?
Reply
Old Jul 3, 2008 | 11:26 AM
  #15  
AcuraKidd's Avatar
Thread Starter
The Talk of New York
iTrader: (1)
 
Joined: Jul 2006
Posts: 687
Likes: 0
From: Queens, NYC
Originally Posted by #1 DOUCHER
find and replace zip code with queens ny + zip code?
problem is that the zip code is on the same line with the address, cause in excel the zip was in the same column with the address
Reply
Old Jul 3, 2008 | 11:34 AM
  #16  
#1 STUNNA's Avatar
Sanest Florida Man
Photogenic
Photoriffic
Shutterbug
Community Influencer
 
Joined: Aug 2007
Posts: 46,058
Likes: 11,814
From: Florida
I think it should still work if you don't include the rest of the address. It should leave the rest of the field alone. Try it on one field and see if it works.
Reply
Old Jul 3, 2008 | 11:37 AM
  #17  
gr8ness97's Avatar
Quarterlife Crisis....
iTrader: (5)
 
Joined: Jun 2004
Posts: 2,952
Likes: 108
From: Texas
sort?
Reply
Old Jul 3, 2008 | 11:46 AM
  #18  
NSXNEXT's Avatar
Senior Moderator
25 Year Member
Liked
Loved
Community Favorite
iTrader: (2)
 
Joined: May 2000
Posts: 27,921
Likes: 1,080
From: where the weather suits my clothes
Originally Posted by AcuraKidd
problem is that the zip code is on the same line with the address, cause in excel the zip was in the same column with the address

Redo the mail merge so the address is on one line and Queens and the zip is on the other.
Reply
Old Jul 3, 2008 | 12:57 PM
  #19  
AcuraKidd's Avatar
Thread Starter
The Talk of New York
iTrader: (1)
 
Joined: Jul 2006
Posts: 687
Likes: 0
From: Queens, NYC
what I did do far was go back to he excel doc and added a new column with Queens ,NY.

now when I crest a new mail merge, I insert all the fields, but when I try to insert the queens ny field between the address and zip, I hit the button to update all labels, and it doesnt include the queens ny field

what now??
Reply
Old Jul 3, 2008 | 01:00 PM
  #20  
Shalooby's Avatar
Secret Agent
 
Joined: Aug 2006
Posts: 4,298
Likes: 31
From: N Va
Use Access.
Reply
Old Jul 3, 2008 | 01:02 PM
  #21  
AcuraKidd's Avatar
Thread Starter
The Talk of New York
iTrader: (1)
 
Joined: Jul 2006
Posts: 687
Likes: 0
From: Queens, NYC
Originally Posted by Shalooby
Use Access.
right now thats not an option
Reply
Old Jul 3, 2008 | 01:14 PM
  #22  
meaphool's Avatar
Advanced
 
Joined: Feb 2005
Posts: 79
Likes: 0
From: New Jersey
Originally Posted by AcuraKidd
right now thats not an option

Are you familiar with TEXTPAD (freeware, though if you look you can register it...)?

Using textpad you could do it 1 of 2 ways:

1) Block copy.
2) Find and Replace using Regular Expressions.
Reply
Old Jul 3, 2008 | 02:16 PM
  #23  
Shalooby's Avatar
Secret Agent
 
Joined: Aug 2006
Posts: 4,298
Likes: 31
From: N Va
Originally Posted by Shalooby
Should have Used Access to begin with.
fixed.

Don't use a screwdriver to hammer a nail.
Reply
Old Jul 3, 2008 | 04:14 PM
  #24  
moeronn's Avatar
is learning to moonwalk i
 
Joined: Feb 2004
Posts: 15,520
Likes: 3
From: SoCal
Split the current address into two cells:
Code:
A                                B                                C
1234 Main Street 01101           =(LEFT($A1,(LEN($A1)-6)))        =(RIGHT($A1,5))
That should give you the stree address in column B and the zip code in column C
Reply
Old Jul 3, 2008 | 04:52 PM
  #25  
AcuraKidd's Avatar
Thread Starter
The Talk of New York
iTrader: (1)
 
Joined: Jul 2006
Posts: 687
Likes: 0
From: Queens, NYC
Originally Posted by moeronn
Split the current address into two cells:
Code:
A                                B                                C
1234 Main Street 01101           =(LEFT($A1,(LEN($A1)-6)))        =(RIGHT($A1,5))
That should give you the stree address in column B and the zip code in column C
this is exactly what I was looking for at the time, but me and a few other co workers figured out an alternate solution that worked out very well

thanks alot for all your help guys, you're the best
Reply
Old Jul 3, 2008 | 04:56 PM
  #26  
moeronn's Avatar
is learning to moonwalk i
 
Joined: Feb 2004
Posts: 15,520
Likes: 3
From: SoCal
You'll get the bill in the mail.
Reply
Old Jul 3, 2008 | 08:44 PM
  #27  
JS + XES's Avatar
I drive a Subata.
iTrader: (1)
 
Joined: Apr 2005
Posts: 20,301
Likes: 2,603
From: Socal
wow, AZ FTW again. great job guys...
Reply
Old Jul 3, 2008 | 09:27 PM
  #28  
#1 STUNNA's Avatar
Sanest Florida Man
Photogenic
Photoriffic
Shutterbug
Community Influencer
 
Joined: Aug 2007
Posts: 46,058
Likes: 11,814
From: Florida
Do people actually use access? I thought it wasn't that popular of a database program.
Reply
Old Jul 3, 2008 | 11:16 PM
  #29  
svtmike's Avatar
Team Owner
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Oct 2003
Posts: 37,706
Likes: 3,904
From: Chicago
Originally Posted by #1 DOUCHER
Do people actually use access? I thought it wasn't that popular of a database program.
I use it all the time... and I can get things done much faster than those who are bound by Excel. I can also do analytics with Access that are simply impossible with Excel.

It handles much larger data sets than Excel, is consistent with types, and can of course do the relational database things that Excel can't.
Reply
Old Jul 3, 2008 | 11:51 PM
  #30  
#1 STUNNA's Avatar
Sanest Florida Man
Photogenic
Photoriffic
Shutterbug
Community Influencer
 
Joined: Aug 2007
Posts: 46,058
Likes: 11,814
From: Florida
Well I know it's better than excel but I mean compared to other db programs, is access the most popular? If so is that cause it's actually the best or because it comes with some versions of Office?
Reply
Old Jul 4, 2008 | 12:01 AM
  #31  
svtmike's Avatar
Team Owner
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Oct 2003
Posts: 37,706
Likes: 3,904
From: Chicago
Originally Posted by #1 DOUCHER
Well I know it's better than excel but I mean compared to other db programs, is access the most popular? If so is that cause it's actually the best or because it comes with some versions of Office?
The interoperation with the other Office applications is a huge benefit for the type of work I do with it.

I don't know of another desktop relational database that is as easy to use, much less one that offers the integration with Office that Access has.

Note that I use it on my desktop for the relational engine, and never implement a GUI front end or any kind of multiuser access / security.
Reply
Old Jul 4, 2008 | 07:06 AM
  #32  
rza49311's Avatar
Drifting
iTrader: (1)
 
Joined: Feb 2006
Posts: 3,072
Likes: 8
From: Southern VA
Originally Posted by AcuraKidd
I have an excel document with about 16,000 lines of data. The problem is that the data is on every other line. Is there a fast way to get rid of all the blank lines?
Just an FYI here but there's another way to get rid of the blank rows that doesn't require any new columns or formulas.

1. Highlight the affected area only
2. Click Edit > Go To
3. Click "Special" button
4. Tick "Blanks" and hit OK
5. You should see all the blank row highlighted now.
6. Edit > Delete > Shift cells up
7. Done. Blanks gone! Used this many times.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
navtool.com
3G MDX (2014-2020)
32
Jan 20, 2016 11:43 AM
navtool.com
5G TLX Audio, Bluetooth, Electronics & Navigation
31
Nov 16, 2015 08:30 PM
navtool.com
1G RDX Audio, Bluetooth, Electronics & Navigation
1
Sep 25, 2015 05:15 PM
rboller
3G TL Audio, Bluetooth, Electronics & Navigation
0
Sep 23, 2015 02:49 PM




All times are GMT -5. The time now is 09:21 PM.