+ Reply to Thread
Results 1 to 2 of 2

delete data in horizontal table based on a cells value

  1. #1
    Registered User
    Join Date
    12-08-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    37

    delete data in horizontal table based on a cells value

    Hi

    I am trying to delete data in a horizontal table based on a cells value. bellow is a basic setup of how the table is.

    ----A--B--C--D--E--F--G
    1---10
    2
    3---1--2--3--4--5--6--7
    4---a--c--e--g--i--k--m
    5---b--d--f---h--j--l--n
    6
    7---8--9--10--11--12--13
    8---o--q--s---u---w---y
    9---p--r---t---v---x---z

    Basicly I would like to delete the data
    - i to z if 4 is entered in cell A1 (ijklmnopqrstuvwxyz)
    - u to z if 10 is entered in cell A1 (uvwxyz)
    - and so on
    I can do this using if statements and clearcontents however the code goes on and on forever as the table is quite large.
    once again any help/ideas will be appreciated.
    Last edited by grantastley; 01-22-2013 at 11:27 PM.

  2. #2
    Registered User
    Join Date
    12-08-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: delete data in horizontal table based on a cells value

    So this is what I have

    Please Login or Register  to view this content.
    and this is only 2 cases out of 7 and 2 tests out of 5.
    Is there any way of condencing this?
    P.S this code does not relate to the above table. But is for the same question, the table above was only a quick thing I put together as I can not upload an attachment from the work computer.

+ 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