+ Reply to Thread
Results 1 to 2 of 2

Transpose and Manipulate Data - Exclude Blank cells

  1. #1
    Registered User
    Join Date
    12-22-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    12

    Transpose and Manipulate Data - Exclude Blank cells

    I need some help with the attached Excel spreadsheet that contains a macro which exports data into a fixed width format ready for importing into an ERP system. A member of this forum Mehmetcik wrote the code for me and I have since made some minor amendments but I need some further help with changing it still further.

    The Export Macro works but I need help with amending the code as follows;

    The user wants to leave blank rows between records when they input the stock codes and quantities (why oh why I hear you all say, and yes that's exactly what I said but without boring you with the details it would be helpful if this is achievable). I understand that the last row may need to be indicated so that the system knows when it has reached the final records so perhaps this could be indicated with a single defined letter or the word END in column A.

    Also the end user finds it cumbersome to enter zero values (as there are lots of them) where they dont have a quantity but the current code requires a zero otherwise it exports the stock code together with null value for the quantity which causes an error when importing it into the ERP system. Again if the last column needs to be indicated to tell the system when it has reached the last value then perhaps a single character or word to define the end of the row.

    I really hope someone can help me or that 'Mehmetcik' sees this post.

    Caz
    Attached Files Attached Files
    Last edited by Snowflake68; 03-21-2016 at 01:11 PM.

  2. #2
    Registered User
    Join Date
    12-22-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    12

    Re: Transpose and Manipulate Data - Exclude Blank cells

    Mehmetcik if you are looking at this post as per my message to you earlier today I think I have managed to sort this out myself. Cant believe how simple it was.

    I have amended the line of code (highlighted in Blue below) where it looks for 0 values in Column E of the pre export sheet so that it looks for "" then deletes the blank rows. This not only removes any record that didnt have a stock code in it (the blank row but also any cell that didnt have a value.

    I just need to test this to ensure its working as intended.

    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. [SOLVED] Transpose and Manipulate Data
    By Snowflake68 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-08-2016, 01:15 PM
  2. [SOLVED] VBA code to exclude cells that are blank
    By msmithy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2014, 05:54 AM
  3. [SOLVED] Manipulate and transpose data to another sheet via a Macro
    By Phil_MacRae in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-12-2012, 02:22 PM
  4. Sum multiple cells, but exclude blank ones
    By GorillaBoze in forum Excel General
    Replies: 1
    Last Post: 12-23-2010, 01:37 PM
  5. Counting data in non blank cells and exclude certain data from the count
    By JohnG73 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-04-2007, 04:08 PM
  6. [SOLVED] Macro to transpose data to fill blank cells in table
    By nospaminlich in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-29-2005, 06:05 AM
  7. [SOLVED] Exclude blank cells from a range?
    By achidsey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2005, 10:05 PM

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