+ Reply to Thread
Results 1 to 4 of 4

How to delete empty columns

  1. #1
    Registered User
    Join Date
    03-14-2016
    Location
    Oslo
    MS-Off Ver
    2013 Student Package
    Posts
    47

    How to delete empty columns

    Hi guys!
    Does anyone know how to delete the empty columns between the four different rows in the excel sheet?
    See excel sheet where you have an example of how it should look like. I want all the numbers in (b70,B30,b20,s80) to stay next to each other without spaces between.

    Thank you very much! :D
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to delete empty columns

    Select the area, do Ctrl+G (Find), leave Find What: empty, and press Find All.

    Select all of the rows in the Find list, Delete > Delete Cells, tick Shift cells up

    C
    D
    E
    F
    3
    b70 s70 b20 s80
    4
    0.089915
    -0.1526
    -0.05657
    -0.10935
    5
    -0.02474
    0.018406
    0.162562
    -0.14284
    6
    0.052706
    -0.05223
    0.09116
    0.06289
    7
    -0.03377
    0.034475
    0.14149
    -0.16938
    8
    -0.02707
    0.016557
    0.173996
    0.035122
    9
    -0.01526
    0.01194
    -0.11154
    0.361866
    10
    -0.17575
    0.201487
    -0.12612
    0.056958
    11
    0.09019
    -0.09447
    -0.34282
    0.358934
    12
    0.057136
    -0.05616
    -0.36807
    0.062048
    13
    -0.26656
    0.341679
    -0.21708
    -0.3234
    14
    -0.06945
    0.069374
    -0.30621
    0.226127
    15
    0.041574
    -0.04517
    -0.31278
    0.017102
    16
    -0.00491
    0.003601
    0.003015
    -0.38467


    ...
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-14-2016
    Location
    Oslo
    MS-Off Ver
    2013 Student Package
    Posts
    47

    Re: How to delete empty columns

    Hmm. SHould be easy. But does not seem to work for me. I just receive: Did not find any empty cells.
    Can you or anyone else try and maybe post the excel sheet for me? :D Thanks!

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to delete empty columns

    Read carefully what shg said. It works. Really

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using a Macro to Delete Empty Columns
    By PleaseHelpMe3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2016, 06:59 PM
  2. [SOLVED] Really Delete Blank Empty Columns
    By WmBarth in forum Excel General
    Replies: 2
    Last Post: 08-26-2015, 01:37 PM
  3. Delete Empty Columns
    By ajocius in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-10-2014, 10:05 AM
  4. Delete Empty Rows and empty columns from the word table
    By mvneema in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2014, 10:51 AM
  5. Delete row if multiple columns empty
    By amadman114 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2013, 06:53 AM
  6. [SOLVED] Delete rows when two columns are empty
    By Musoguy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-29-2013, 09:00 AM
  7. Macro to Delete empty columns
    By Darth Cor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2005, 10:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1