+ Reply to Thread
Results 1 to 5 of 5

What function can skip blank cells

  1. #1
    Registered User
    Join Date
    01-17-2013
    Location
    Dar es Salaam, Tanzania
    MS-Off Ver
    Excel 2007
    Posts
    2

    What function can skip blank cells

    I am using offset function to convert tabular data into column as follows;
    Table has the form
    A B
    1
    3 4

    I am using the offset function of the form
    =OFFSET($A$1:$B$2,TRUNC((ROW()-ROW($A$10))/COLUMNS($A$1:$B$2)),MOD(ROW()-ROW($A$10),COLUMNS($A$1:$B$2)),1,1)
    whereby from cell A10 down column A i get;
    1
    0
    3
    4

    But i would like to skip the blank cell B1 which returns 0 and i want the column be as
    1
    3
    4

    I will appreceate for any assistance

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: What function can skip blank cells

    About the best you can do without getting into some more complex formulas, is to make sure the row remains blank:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Which would return
    1

    3
    4
    otherwise, you would probably have to use an ARRAY FORMULA and they are easier to develope if we can actually see a example of the data we are working with (see signature below for uploading a sample workbook)

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Registered User
    Join Date
    10-01-2012
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: What function can skip blank cells

    You could also do: range("b1").entirecolumn.specialcells(xlValues).select
    Which selects all cells in column b that contains values.

  4. #4
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: What function can skip blank cells

    Function you have is referring Row and Columns locations to find out how many cells offset should take so it is always required that your formula in any cell returns a value (number / text, 0 or "").
    A simple VBA routine can solve your problem unless you must use functions.

  5. #5
    Registered User
    Join Date
    01-17-2013
    Location
    Dar es Salaam, Tanzania
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: What function can skip blank cells

    Thanks Dredwolf,
    But my concern was to pick the trend fro cell A11 by 3 then all cells with data down the column A. your formula just eliminates the 0 return
    but still the blank effect persists. Mind you iam dealing with a table of hundreds of data with few blanks in between. My point is to have all
    data cells with missing to be skipped and the next data be listed in such cell as if there were no missing. I hope you get me well!!

+ 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