+ Reply to Thread
Results 1 to 17 of 17

Remove an account range form a column with account numbers.

  1. #1
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Remove an account range form a column with account numbers.

    Hi All,

    I am not sure if this is possible i was thinking maybe it would need to be a find/remove macro or a filter remove.

    In column A there is about 6000 accounts (No Duplicates). Below is a sample of accounts and i want to remove all account that start with 997 or not move then to the new sheet.

    1234567890
    2345678910
    3456789012
    4567890123
    9970000001
    9971234567
    9972223457

    I already have a macro that moves the data but i want to eith filter out the 997 accounts of delete them once i have moved the data to a new sheet.

    Here is the macro i am using so far that i want to enhance:

    Please Login or Register  to view this content.
    I am not a great code writer so forgive me...

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Remove an account range form a column with account numbers.

    Use this line

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Remove an account range form a column with account numbers.

    Hi AB33,

    That did not work it filtered out all accounts. Not sure if that is due to the other filter i have, but i dont see how that would effect it:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Remove an account range form a column with account numbers.

    Just tested it with out the other one and still same result it filters out all accounts.

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Remove an account range form a column with account numbers.

    Please attach the sample, so we can easily see what is going.

  6. #6
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Remove an account range form a column with account numbers.

    Here you go
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Remove an account range form a column with account numbers.

    Sorry!
    It was my mistake,
    should be

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Remove an account range form a column with account numbers.

    No worries AB33...

    Do you see anything else that i could do better? I am just a hacker a use others code to make my macros and they do work but are maybe not the best way of doing things.....

  9. #9
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Remove an account range form a column with account numbers.

    I will be offset of the site and will be back in the evening. I will have a look. I have got your data, just need explanation what are trying to do and will come up with a solution.

  10. #10
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Remove an account range form a column with account numbers.

    Sorry still does not filter out the 997 accounts...

  11. #11
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Remove an account range form a column with account numbers.

    I hope you see this... as i still can't get it to work

  12. #12
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Remove an account range form a column with account numbers.

    Any chance someone else can help me out with this one?

  13. #13
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Remove an account range form a column with account numbers.

    I have tried to search for anything on this tyoe of filter and not having any luck.

  14. #14
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Remove an account range form a column with account numbers.

    So my guess is that the no reponse means that this might not be possible thru code? really dont want to add a column and do the =left....

  15. #15
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Remove an account range form a column with account numbers.

    Never mind if figured another way of doing this.... TY

  16. #16
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Remove an account range form a column with account numbers.

    I have not forgotten or ignored you. I was off site for the last 3 days.
    Attached Files Attached Files

  17. #17
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Remove an account range form a column with account numbers.

    LOL AB33

    I can to the same solution you did.... filter for all account less then 9970000000....

+ 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. Search account numbers and paste into new column
    By cudane in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-03-2013, 11:14 AM
  2. [SOLVED] How to censor account numbers based on how many characters are in the account number
    By Mcorydon in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-25-2013, 01:06 PM
  3. Replies: 1
    Last Post: 09-07-2012, 12:00 PM
  4. Replies: 9
    Last Post: 03-12-2012, 05:30 AM
  5. Match account numbers to 2nd column (vlookup?)
    By Xx7 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-01-2011, 11:11 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