+ Reply to Thread
Results 1 to 18 of 18

Remain with data of 1 branch rest delete

  1. #1
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Remain with data of 1 branch rest delete

    This is a fully working program by jaslake

    It highlight yellow on stock gaps and does pink highlight on the rest of zero stocks

    I have 22 branches , reading data for that can be long

    I want an add on to the macro do do the following

    I will write on AC1 say 18 ,
    I want the macro to search 18 on cells X Y Z AA and AB
    If it does correctly on store 18 , then 2 tables will remain
    A12:AC17 and A:24:AC26
    With an empty row between the two tables
    Attached Files Attached Files
    Last edited by makinmomb; 11-07-2015 at 08:21 PM.

  2. #2
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Remain with data of 1 branch rest delete

    The logic behind this is to read data per branch
    instead of reading one branch with data of 22 branch

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Remain with data of 1 branch rest delete

    Hi makinmomb

    Please include in your Sample File your anticipated results; please explain why.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Remain with data of 1 branch rest delete

    Reason ( a ) stock patches on yellow highlights is by store wise
    Reason ( b ) reading by store wise is easier

    Attached the file see sheet2 sample for store 18
    Attached the file see sheet3 sample for store 11

    If it creates all files by stores wise on drive C:\CONSO
    ( Better option , but the above will do too , only that I will do it 22 times )

  5. #5
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Remain with data of 1 branch rest delete

    Attached , skipped attache above
    Attached Files Attached Files

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Remain with data of 1 branch rest delete

    Hi makinmomb

    I don't understand...

    Store 11.jpg

    Store 18.jpg

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Remain with data of 1 branch rest delete

    Hi makinmomb

    I'm getting a handle on it. Do you want the Stores separated AFTER the Sub Find_Yellow() Code is executed?

  8. #8
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Remain with data of 1 branch rest delete

    11 and 18 means that that stock is in more than one location at store number 11 and 18

    Yes I want the data separated by stores , you got me closer

  9. #9
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Remain with data of 1 branch rest delete

    Those are 18 because there is stock in store number 18

  10. #10
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Remain with data of 1 branch rest delete

    Look at the header 1 2 3 4 and so , those are store numbers , and that 11 and 18 ,
    I have pulled with formula to tell me where the goods are
    In the sample data you have seem one goods at 2 locations ,
    in my real data , some stock can be in more than one location that is the reason that SH headers are 5

  11. #11
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Remain with data of 1 branch rest delete

    I am already using the awesome program of yours , only that I am using
    SAVE AS and doing the cleanup of delete rows

    This is little lengthy , I have around more than 20 models of shoes types
    Last edited by makinmomb; 11-09-2015 at 09:59 AM.

  12. #12
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Remain with data of 1 branch rest delete

    The save as taking long , i will wait the macro to strip the data

  13. #13
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Remain with data of 1 branch rest delete

    Hi makinmomb

    This Code has been added to "Separate" each Store into it's own Workbook in C:\CONSO. Ctrl + x will execute the Code.

    It may take a while to run...

    Please Login or Register  to view this content.
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Remain with data of 1 branch rest delete

    Jake Thank you very much

    It will save so much time
    22 x 25 brands and that deleting rows was long

  15. #15
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Remain with data of 1 branch rest delete

    Hi Jake , program working too cool

    Only one last wish , if you can edit the code
    to highlight stock greater than 1 as green

    Please

  16. #16
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Remain with data of 1 branch rest delete

    Hi makinmomb

    Replace the Find_Yellow Code with this...
    Please Login or Register  to view this content.

  17. #17
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Remain with data of 1 branch rest delete

    Hi makinmomb

    I looked at and reran the Code this evening...doesn't quite work does it?

  18. #18
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Remain with data of 1 branch rest delete

    Hi makinmomb

    Try replacing the Find_Yellow Code with this...appears to work...
    Please Login or Register  to view this content.

+ 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. how to delete unwanted cells & delete the rest
    By annux08 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2015, 05:34 AM
  2. [SOLVED] How to delete some data, but keep rest via macro
    By interested in forum Excel General
    Replies: 21
    Last Post: 10-30-2013, 01:19 PM
  3. Macro : To find word and Select rest after this cell and delete rest
    By Zortabello in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2010, 08:06 AM
  4. Delete text while numbers remain intact
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 05:05 PM
  5. [SOLVED] Delete text while numbers remain intact
    By Sugar_grrl in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  6. Delete text while numbers remain intact
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM
  7. Delete text while numbers remain intact
    By Sugar_grrl in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 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