Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...It's fun to see others going through the same stuff I did and be able to help. It's also a way for me to stay sharp and not lose the stuff I've learned..."

Geography

Where in the world do Tek-Tips members come from?

Excel Move Data to Next Avaliable CellHelpful Member! 

kcoleman26 (TechnicalUser)
10 Aug 12 15:54
Excel 2007.
I need to find a way to move data in a row to the next available cell in that row. Not sure if that makes sense so here is an example.

A B C D E F G
C1003 LF NX NP
C1004 NP
C1005 NS NX
C1006 NS NP
C1007 NS LF NX NP



Below is what I want the end result to look like
A B C D E F G
C1003 LF NX NP
C1004 NP
C1005 NS NX
C1006 NS NP
C1007 NS LF NX NP


Any help on if this is even possible would be great....

Thanks,
KC
mintjulep (TechnicalUser)
10 Aug 12 15:57
Well, since your before and after samples look to be identical the easiest thing to do would be nothing.
kcoleman26 (TechnicalUser)
10 Aug 12 16:25
Fantastic that is what I wanted it to do in excel was to take out my spaces. Anyway does hopefully this makes more sense. Sorry

A__________B_________C________D_________E__________
C1003 ______________LF________NX________NP
C1004 __________________________________NP
C1005 ____NS _________________NX
C1006 ____NS ___________________________NP
C1007 ____NS________LF _______NX________NP



Below is what I want the end result to look like
A_____B__C__D__E__F__G
C1003_LF NX NP
C1004_NP
C1005_NS NX
C1006_NS NP
C1007_NS LF NX NP
mintjulep (TechnicalUser)
10 Aug 12 16:38
If this is a one-time operation I'd be inclined to:

Concatenate everything in each row together with a delimiter between cells and trim the result. =Trim(Concatenate(A1,",",A2,",",A3,",",A4.......))
Paste-special, values the results into a clean place.
Apply Data | Text to columns with "treat multiple delimiters as one" to that.
kcoleman26 (TechnicalUser)
10 Aug 12 16:46
It is a one time operation. I was hoping to avoid doing that mostly because I have 88 columns that I would have to Concatenate. Unless there is an easier way to Concatenate 88 columns with a delimiter between each cell.
Helpful Member!  mintjulep (TechnicalUser)
10 Aug 12 17:04
Save as csv.
kcoleman26 (TechnicalUser)
10 Aug 12 17:50
The .CSV got me thinking
I saved as a .txt file then opened in Excel I had a comma for every column there is a check box in excel that says Treat consecutive delimiters as one so that worked

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close