+ Reply to Thread
Results 1 to 4 of 4

If statement is false, skip to next row

  1. #1
    Registered User
    Join Date
    12-17-2018
    Location
    Carmi, Illinois, United States
    MS-Off Ver
    2013
    Posts
    2

    If statement is false, skip to next row

    My goal is to get data that automatically updates from a different sheet. The data contains values from January-December. I'm using an IF statement to extract the data from the previous sheet, and my formula in Sheet2 is as follows.

    =IF('Sheet1'!A1=1,'Sheet1'!B1,"") For January Data
    =IF('Sheet1'!A1=2,'Sheet1'!B1,"") For February Data

    All of the data in sheet 1 is oriented vertically, like this: (January = Month 1, February = Month 2, etc.)
    Month Value
    1 12
    1 15
    1 27
    1 56
    2 45
    2 95
    2 28

    This formula extracts the data that I want it to for January, however the February column in Sheet2 is blank until it is past the end of the January data. I do not want to display all of these blank cells at the top where the IF statement is false I'm not sure how to write a formula such that it will skip to the next row of Sheet1 when the statement is false. I appreciate any help, all I want to do is move the February data in Sheet2 up so that it will line up with the January data.

    My output in sheet 2 looks like this:

    Jan Feb
    12
    15
    27
    56
    45
    95
    28

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: If statement is false, skip to next row

    Hi and welcome to the forum

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.

    I suspect you may want the two column list distributed across a multi column list where the columns are for each month but that's not apparent from your description
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-17-2018
    Location
    Carmi, Illinois, United States
    MS-Off Ver
    2013
    Posts
    2

    Re: If statement is false, skip to next row

    I attached a smaller version of my spreadsheet as an example. In the results tab, I'm trying to get the February data moved to the top
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: If statement is false, skip to next row

    Do you have Power Query (Get & Transform on the Data ribbon) in your version of Excel? If so, your summary table can be created easily.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Skip cell IF statement is false
    By toci in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-14-2017, 04:40 AM
  2. [SOLVED] IF FALSE, skip to the next row
    By MYazal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-03-2016, 06:28 PM
  3. [SOLVED] If statement is false skip to next row
    By jmack549 in forum Excel General
    Replies: 13
    Last Post: 04-16-2015, 07:32 AM
  4. If statement is false skip to next row
    By jmmaldonadobruin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-25-2014, 03:04 PM
  5. Skip False Statement in If And Function
    By peterpan1279 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-05-2013, 09:31 PM
  6. [SOLVED] How do I Skip a Row if the Value is False
    By coconnor in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2012, 10:26 AM
  7. [SOLVED] If false skip to next
    By irresistible007 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-17-2005, 07: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