+ Reply to Thread
Results 1 to 3 of 3

If statement is true, skip line go to next value

  1. #1
    Registered User
    Join Date
    04-24-2014
    Location
    Wisconsin USA
    MS-Off Ver
    excel 2007/2013
    Posts
    2

    If statement is true, skip line go to next value

    Ok, I've been searching different forum posts and am nearing wits end...
    I've got a workbook in which in attach workbook, sheet1, column B is actually data pulled from a larger sheet via a pivot table. Actually multiple pivot tables in succession. I know what my arbritary number of total lines will be for any given table so can accommodate for that. What I need to do is the following.

    Sheet1 has parsed data. I need to build a new sheet from this data with only the valid lines. Need to skip the zeros. I need to leave the "0" in the lines on sheet1 for when the master table is updated it will then poplulate those lines which will then be seen by the formula and populate onto the sheet2 tab.
    In attachment, sheet 1 is data, sheet2 is what it needs to look like. There are many more columns of data which will be populated via vlookups from the increment in column 1. On sheet 1, columnA is a count identifier from columnB whereas =if(B2=0,0,A1+1) ColumnD and so on contain multiple columns of data relating to an instance of columnB as the number in columnB may be repeated more than once.

    Sorry, clear as mud right...
    Need to get actual data from sheet1(has a number identifier in A, no "0" values) to sheet2
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-03-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    75

    Re: If statement is true, skip line go to next value

    Still not fully sure why you need to leave the 0's in your original data. Would it not be simpler to just run a filter and delete all rows with only 0?

  3. #3
    Registered User
    Join Date
    04-24-2014
    Location
    Wisconsin USA
    MS-Off Ver
    excel 2007/2013
    Posts
    2

    Re: If statement is true, skip line go to next value

    Filter/delete does not work as when the master table that feeds this table is updated, the data would have nowhere to flow to. I did figure a work around using a pivot table to return the values I wanted.

+ 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] ActiveCell.Value = True line contained in If Then statement exits subroutine??
    By TheITQuest in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2013, 02:56 PM
  2. Skip every other line while dragging formula
    By dlswa in forum Excel General
    Replies: 2
    Last Post: 03-05-2012, 09:31 PM
  3. Excel 2007 : Skip a line at change in data
    By afalack in forum Excel General
    Replies: 1
    Last Post: 04-28-2011, 04:50 PM
  4. Need Chart's Line to Skip Zero Values
    By ComcoDG in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 10-14-2008, 11:27 AM
  5. Auto calculate & line skip
    By Attila in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-09-2007, 06:10 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