+ Reply to Thread
Results 1 to 2 of 2

Parsing data ranges and pulling out cells with a value

  1. #1
    Registered User
    Join Date
    07-17-2005
    Posts
    22

    Cool Parsing data ranges and pulling out cells with a value

    Hi folks,

    Trying to find the best solution to this problem and assume that a programmatic approach is the way to go. A worksheet I am trying to extract data from is a complete mess - unfortunately I am locked into the current layout.

    Columns B, C & D contain HR information that is important.

    Running across the spreadsheet I need to analyse columns Q&R, U&V, Y&Z and so on, each containing around 200 rows of potential data.

    The cells I am analysing are mostly empty. However some contain a value. If the cell contains a value, I want to get that value and corresponding data from rows B,C & D then paste it as a single line in a different worksheet.

    I could develop a loop that will go through each cell and pull the data out - however using offset this would turn out very slow and clunky (approx 35,000 cells).

    Any suggestions for a better way to do this?

    Cheers

    systematic

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Parsing data ranges and pulling out cells with a value

    I can think of a quick and dirty, one-off way of doing this with a helper column

    Make a column with the formula =COUNTA(Q2,R2,U2,V2,Y2,Z2) > 0. This is true is any of the cells have data or false if they are all blank.

    Filter on this column. Copy and Paste.

    Make sure these cells are truly blank and don't have formulas that equate to "". If they do have formulas try (LEN(Q2) + LEN(R2) ... + LEN(Z2) ) = 0
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Pulling data across ranges and only within certain conditions.
    By jlchenoweth in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-01-2016, 05:37 PM
  2. Excel 2010 VBA Creating Weird Named Ranges After Pulling .CSV Data from Web
    By smcmahon83 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-01-2015, 10:58 PM
  3. Pulling Unique Data from named ranges
    By Cavinaar in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-23-2013, 02:24 PM
  4. Parsing data in a range of cells with VBA/Macro to replace content
    By lad29 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-13-2011, 10:50 AM
  5. Parsing hyphenated number ranges in a field
    By pete171 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-23-2008, 07:24 AM
  6. Parsing cell data with multi-line cells
    By nbn22385 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-06-2007, 05:35 AM
  7. parsing number ranges
    By chchch in forum Excel General
    Replies: 7
    Last Post: 03-01-2006, 06:45 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