+ Reply to Thread
Results 1 to 4 of 4

How to skip lines of data without leaving a gap in format

  1. #1
    Registered User
    Join Date
    10-23-2012
    Location
    Portland, OR
    MS-Off Ver
    Microsoft 365
    Posts
    50

    How to skip lines of data without leaving a gap in format

    Hello!

    I'm not quite sure how to summarize what I'm looking for, otherwise I think my EXTENSIVE Google searches would have been more effective :P

    I've attached a data sample showing an example of a data set I have and the desired finished product. In essence, what I'm looking to do is create a way, preferably just using a formula, to identify "Accounts" that are less than 5 and exclude them from the Final Product. The other hairy part of the equation is, I would like to accomplish this by keeping my "Areas" in sequential order. What I tried to do was just sort the "Accounts" largest to smallest and write a formula to exclude "Accounts" below 5, but my "Areas" fall out of order. Alternatively, if I keep the "Accounts" in the same order and write the same formula, I end up with gaps, or simply blank lines interlaced throughout my "Final Product".

    Hopefully my example will provide some additional clarity. If you have any questions at all, please let me know. Thank you in advance for your time in trying to figure this one out. I really appreciate it!

    Tyler
    Attached Files Attached Files
    Last edited by tkoral; 07-13-2017 at 11:22 AM.

  2. #2
    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,448

    Re: How to skip lines of data without leaving a gap in format

    In H4:

    =IFERROR(INDEX(B:B,SMALL(IF($D$4:$D$8>4,ROW(B$4:B$8)),ROWS($A$1:$A1))),"")

    ... confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Once entered, drag copy across and down.
    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.

  3. #3
    Registered User
    Join Date
    10-23-2012
    Location
    Portland, OR
    MS-Off Ver
    Microsoft 365
    Posts
    50

    Re: How to skip lines of data without leaving a gap in format

    Quote Originally Posted by AliGW View Post
    In H4:

    =IFERROR(INDEX(B:B,SMALL(IF($D$4:$D$8>4,ROW(B$4:B$8)),ROWS($A$1:$A1))),"")

    ... confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Once entered, drag copy across and down.
    AliGW,

    You are a genius! Thank you so much for hopping on this. For the record, this is NOT the first problem you've helped me solve, so thank you x 1,000,000!!

  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,448

    Re: How to skip lines of data without leaving a gap in format

    You're welcome (again)!!!

    Thanks also for the rep and very nice comment.

+ 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] Skip Lines in Concatenate
    By GoGoeGo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2016, 02:56 PM
  2. [SOLVED] Autonumber to skip blank lines and then and restart number series
    By mcranda in forum Excel General
    Replies: 6
    Last Post: 09-04-2015, 05:12 PM
  3. [SOLVED] Macro to Delete useless lines, rearrange by dates and skip lines between different days.
    By Tmc2159 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-12-2012, 02:15 PM
  4. import tab delimited text files into excel but skip first 5 lines
    By alexbotea2005 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-28-2011, 05:22 PM
  5. Skip Blank lines when reading a text file
    By parasbshah in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2011, 12:36 PM
  6. [SOLVED] Can I format data lines in multiple charts?
    By colleen91076 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-07-2005, 06:05 PM
  7. How do I copy cells and skip lines?
    By con_jon in forum Excel General
    Replies: 1
    Last Post: 02-18-2005, 10:06 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