+ Reply to Thread
Results 1 to 4 of 4

Delete rows containing ""

Hybrid View

  1. #1
    Registered User
    Join Date
    11-23-2011
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    7

    Exclamation Delete rows containing ""

    Hi guys,

    The problem seems more complex than it really is but here I go

    I've attached my file so you can have a closer look at it. If you open the file you will notice a column called "volgnum", this is the id of the dataset. Beside the volgnum there are 32 columns ranging from a, bel_a to p, bel_p. These columns (the lettre and bel_lettre) belong together.

    The desired output I need is a table that contains the following:
    volgnum (this is the id) - measure - choice - importance

    At the moment I've got the volgnum folowed by 32 columns. 2 tasks:
    1. What I need is that these 32 COLUMNS are transformed into 16 ROWS with the above structure: volgnum - measure - choice - importance.
    2. But as you can see, in my spreadsheet there are a lot of blank cells so I need them deleted to.

    I started another spreadsheet and tried to define a formula to create these separate columns, however I'm not able to solve it and it seems a bit too simplistic. The code:

    volgnum measure choice importance
    613
    837
    1029
    1136
    1146
    ...
    1399 a 2
    1437
    833
    1348

    An example of the code in the cell 613 - measure is: =IF(ISNUMBER([Buspotentie.xlsx]Sheet2!$B2);$B$1;"")

    As you can see, volgnum 1399 has got a value in the spreadsheet. So it's obvious that the code returns a value.

    I hope you guys can help me, further explanation is off course no problem.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Delete rows contaiing ""

    Could you provide an example, maybe on the second sheet, of exactly what you would expect the output to look like?

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Delete rows containing ""

    The desired output I need is a table that contains the following:
    volgnum (this is the id) - measure - choice - importance
    How do we calculate the measure, choice and importance?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    11-23-2011
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Delete rows containing ""

    Thanks for the replies guys, thanks.

    Well the output I opt for isn't a calculation or that sort of thing but is merely a copy of cells from the file I added in the first place. What I ended up with is attached in this reply.

    I managed to do it with a few shorter formulas that are related to the other sheet I posted in my first message. But it would be nice if it were possible to write this into one big formula or a VBA script. I'm completely new to VBA but I understand the basics of programming.

    Thanks in advance!
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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