+ Reply to Thread
Results 1 to 5 of 5

Deleting Blank Rows than Organize Data from A to Z

  1. #1
    Forum Contributor
    Join Date
    03-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    491

    Deleting Blank Rows than Organize Data from A to Z

    Hello,

    Attached is a Macro I am writing that will look at Basketball Data.

    On sheet 1 I wrote a code to find all the PGs (point guards) in the list and copy only the PGs to Sheet 2
    this is code is in module 1

    then in module 2
    I attempt to erase all the blank rows... But i run into to the problem where there is one blank row remaining.

    I want to write a third module that would organize the data from the Point Guard with the most points at the top down to the lowest scoring point guard.

    Can anyone give me any insight on why that last row won't delete from module 2 or How I can write a macro that would organize the higher points & player from top to bottom?
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,288

    Re: Deleting Blank Rows than Organize Data from A to Z

    Hi swade,

    I don't think you need VBA code for this problem. I've done it using Pivot Tables. See the attached to see if it makes sense to you. Change the Filter from All to PG and see if it gives the results you want. You could also drag over lots of other stats into the PT and sort by them.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    03-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    491

    Re: Deleting Blank Rows than Organize Data from A to Z

    Actually, I would need it for VBA not Pivot tables...
    I am attempting to understanding the logic more or less through a Macro.

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Deleting Blank Rows than Organize Data from A to Z

    One macro to rule them all

    Please Login or Register  to view this content.
    PS. Send me a pm if you want to know what is going on in the macro. You seemed to indicate you wanted macro knowledge

  5. #5
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Deleting Blank Rows than Organize Data from A to Z

    or this too.. see comments in code for explanation of what is happening

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by apo; 11-25-2013 at 06:18 AM.

+ 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. Deleting blank rows
    By Geordie in forum Excel General
    Replies: 5
    Last Post: 05-09-2013, 09:24 AM
  2. Changing code from deleting rows to cut/paste rows into another sheet and delete blank row
    By kmarshall6576 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-18-2013, 01:54 AM
  3. How to organize and insert blank cells between a huge number of data?
    By tareq in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-20-2011, 11:04 AM
  4. [SOLVED] Deleting Blank Rows
    By Nigel Bennett in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2005, 09:06 PM
  5. [SOLVED] Deleting blank rows
    By Alan M in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-26-2005, 10:06 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