Microsoft® Excel® based database addin

 

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Thomp Guest

    Default Delete Range of cells and move left based on Cell value

    Hi..I am trying to delete a range of cells in a column and move them
    left based on whether or not a certain cell = 0. Any help would be
    great,

    thanks,
    Bill

  2. #2
    Don Guillett Guest

    Default Re: Delete Range of cells and move left based on Cell value

    details


    --
    Don Guillett
    Microsoft MVP Excel
    SalesAid Software
    dguillett@gmail.com
    "Thomp" <williamthomp@gmail.com> wrote in message
    news:5ff00479-4448-4767-aaaa-8923370249b4@o3g2000yqb.googlegroups.com...
    > Hi..I am trying to delete a range of cells in a column and move them
    > left based on whether or not a certain cell = 0. Any help would be
    > great,
    >
    > thanks,
    > Bill



  3. #3
    Thomp Guest

    Default Re: Delete Range of cells and move left based on Cell value

    Wow this might be a little hard. I have a copied set of data for some
    filtered data that puts the data in the columns D thru P. As the data
    refresh and changes alot I can't just say delete these cells at this
    location as the data in the row changes every time I make a new
    selection. Once the selection is made and new data is copy to the
    sheet they are often times a column with blank data that really isn't
    blank because the column contains a header and formulas so I can't
    look for and delete the blank cells. I need to be able to say if Cell
    B13 = 0 then delete the chosen range of cells in the column above only
    up 12 cells then delete and move data left to put in all together in
    side by side columns. Can't write a macro to delete said cells as the
    empty rows can change due to them being a new set of data. In this
    example below what would happen is the "AE,AGOL.Ocean and INS columns
    would deleted and only the CHB and NAT/DIST columns would remain net
    to each other

    AE AGOL CHB OCEAN INS NAT/DIST
    May $18,627.00
    Feb $25,938.00 $244.62
    Apr $20,739.00
    Jan $28,112.19
    Mar $27,717.00 $300.00
    Nov $30,645.00 $550.89
    Jun $33,276.00 $739.95
    Aug $30,157.50 $686.64
    Sept $30,279.00 $1,965.06
    Oct $34,194.00 $1,763.82
    Dec $38,268.00 $195.00
    Jul $36,861.00 $744.00
    $0.00 $0.00 $354,813.69 $0.00 $0.00 $7,189.98

    On Mar 10, 12:30*pm, "Don Guillett" <dguille...@gmail.com> wrote:
    > details
    >
    > --
    > Don Guillett
    > Microsoft MVP Excel
    > SalesAid Software
    > dguill...@gmail.com"Thomp" <williamth...@gmail.com> wrote in message
    >
    > news:5ff00479-4448-4767-aaaa-8923370249b4@o3g2000yqb.googlegroups.com...
    >
    >
    >
    > > Hi..I am trying to delete a range of cells in a column *and move them
    > > left based on whether or not a certain cell = 0. Any help would be
    > > great,

    >
    > > thanks,
    > > Bill- Hide quoted text -

    >
    > - Show quoted text -



  4. #4
    Don Guillett Guest

    Default Re: Delete Range of cells and move left based on Cell value

    If desired, send your file to my address below. I will only look if:
    1. You send a copy of this message on an inserted sheet
    2. You give me the newsgroup and the subject line
    3. You send a clear explanation of what you want
    4. You send before/after examples and expected results.


    --
    Don Guillett
    Microsoft MVP Excel
    SalesAid Software
    dguillett@gmail.com
    "Thomp" <williamthomp@gmail.com> wrote in message
    news:dc1f3849-f110-4452-b0cb-19154b2a5147@t20g2000yqe.googlegroups.com...
    Wow this might be a little hard. I have a copied set of data for some
    filtered data that puts the data in the columns D thru P. As the data
    refresh and changes alot I can't just say delete these cells at this
    location as the data in the row changes every time I make a new
    selection. Once the selection is made and new data is copy to the
    sheet they are often times a column with blank data that really isn't
    blank because the column contains a header and formulas so I can't
    look for and delete the blank cells. I need to be able to say if Cell
    B13 = 0 then delete the chosen range of cells in the column above only
    up 12 cells then delete and move data left to put in all together in
    side by side columns. Can't write a macro to delete said cells as the
    empty rows can change due to them being a new set of data. In this
    example below what would happen is the "AE,AGOL.Ocean and INS columns
    would deleted and only the CHB and NAT/DIST columns would remain net
    to each other

    AE AGOL CHB OCEAN INS NAT/DIST
    May $18,627.00
    Feb $25,938.00 $244.62
    Apr $20,739.00
    Jan $28,112.19
    Mar $27,717.00 $300.00
    Nov $30,645.00 $550.89
    Jun $33,276.00 $739.95
    Aug $30,157.50 $686.64
    Sept $30,279.00 $1,965.06
    Oct $34,194.00 $1,763.82
    Dec $38,268.00 $195.00
    Jul $36,861.00 $744.00
    $0.00 $0.00 $354,813.69 $0.00 $0.00 $7,189.98

    On Mar 10, 12:30�pm, "Don Guillett" <dguille...@gmail.com> wrote:
    > details
    >
    > --
    > Don Guillett
    > Microsoft MVP Excel
    > SalesAid Software
    > dguill...@gmail.com"Thomp" <williamth...@gmail.com> wrote in message
    >
    > news:5ff00479-4448-4767-aaaa-8923370249b4@o3g2000yqb.googlegroups.com...
    >
    >
    >
    > > Hi..I am trying to delete a range of cells in a column �and move them
    > > left based on whether or not a certain cell = 0. Any help would be
    > > great,

    >
    > > thanks,
    > > Bill- Hide quoted text -

    >
    > - Show quoted text -



Similar Threads

  1. Conditional formating of a range of cells based on the left-most c
    By Bob Arnett in forum General Excel Discussion
    Replies: 3
    Last Post: 04-17-2009, 06:06 PM
  2. Move selected range to left
    By Gene Augustin in forum Programming (VBA, VB, C# etc)
    Replies: 5
    Last Post: 03-15-2009, 08:16 PM
  3. Delete row of cells in range based on condition
    By Kirsty in forum Programming (VBA, VB, C# etc)
    Replies: 4
    Last Post: 03-15-2009, 07:59 PM
  4. Delete/clear a cell based on another cells contents
    By jademaddy in forum Programming (VBA, VB, C# etc)
    Replies: 3
    Last Post: 01-22-2009, 05:42 AM
  5. Replies: 1
    Last Post: 01-06-2009, 12:32 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