+ Reply to Thread
Results 1 to 3 of 3

Move next value to the desired cell in a row ignoring blank cells in between

  1. #1
    Registered User
    Join Date
    10-07-2008
    Location
    USA
    Posts
    30

    Move next value to the desired cell in a row ignoring blank cells in between

    Hi

    I have survey data in which each column represent a question and each row is a respondent. Not every respondent is required to answer each question so we have many blank cells in a row and response may come after 5 or 6 column and then again few blank cells and again another response (so respondent id is in A2 and response could be in F2, H2 and Z2). What I am interesting is if I can bring every response in a row next to each other so don't have blank cells in between (so in above example I want to bring values, which could be text or numbers, in B2 ( for F2), C2 (H2) and D2 (Z2)). And I have to repeat this for each row i.e. for each respondents. I am nor sure how to record/develop macro for this as in each row blank cells are different places. Any help in this regard would be greatly appreciated. Thanks!

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Move next value to the desired cell in a row ignoring blank cells in between

    attach a sample file with current and desired table
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    10-07-2008
    Location
    USA
    Posts
    30

    Re: Move next value to the desired cell in a row ignoring blank cells in between

    Hi Patel,

    Thanks for the response. Here is the sample file. Of course it has been changed due to confiedentiality of the respondents. My data is in column A to AZ. As you can see there are many columns in which there is no entry at all in any row. You can ignore Row1 whichi is just a title row. I need a macro which can delete all those COLUMNS which don't have any data in it. For example columns B to E and J, K, L..........and so on. Actual file will have more than 5000 rows or so. Thanks for your help in advance.
    Attached Files Attached Files
    Last edited by saeed9313; 10-02-2012 at 09:32 AM.

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Move next value to the desired cell in a row ignoring blank cells in between

    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)

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