+ Reply to Thread
Results 1 to 9 of 9

SumIF and eliminate blank rows

  1. #1
    Registered User
    Join Date
    02-05-2015
    Location
    Wichita Falls, TX
    MS-Off Ver
    Windows 2010
    Posts
    4

    SumIF and eliminate blank rows

    I am wanting to sum rows of data, some cells text and some numbers from a data base sheet to another sheet.

    The data base sheet has name and other information for that name aling the cells in that row.

    In a seperate sheet would like to bring over some rows of information based off certain critera.
    (I can add a new cell in each row that would specify this to be summed in the seperate shet) Such as a "yes" in a cell next to the name...)

    The part I don't know hiw to do is in the seperate sheet I don't want blank rows as onlt some of the rows from sheet1 will be wanted on sheet2

    Is there a way to do this without VBA? A formula that will do this so we don't have to copy and paste all the time?
    And I don't like the copy and paste becuase sometimes the data will change on sheet1 and that needs to reflect on sheet2

    I just don't want to have a lot of blank rows on sheet2

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,048

    Re: SumIF and eliminate blank rows

    I would use a pivot table.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,779

    Re: SumIF and eliminate blank rows

    Hi, welcome to the forum

    I suggest you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    02-05-2015
    Location
    Wichita Falls, TX
    MS-Off Ver
    Windows 2010
    Posts
    4

    Re: SumIF and eliminate blank rows

    I would rather this not be a pivot table beucase of the application use by several people.

    I don't see how to upload an actaul excel file.

  5. #5
    Registered User
    Join Date
    02-05-2015
    Location
    Wichita Falls, TX
    MS-Off Ver
    Windows 2010
    Posts
    4

    Re: SumIF and eliminate blank rows

    Picture1.png a picture is all I could upload

    I just did a mock. But is basically the same. The yes in column B of sheet1would indicate that row of information needed to be on sheet 2, but not in same row, becuase wanting to eliminate the rows noy in use on sheet 2 since there is a lot more no's than yes's in sheet1.

  6. #6
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,048

    Re: SumIF and eliminate blank rows

    Quote Originally Posted by jkktx81 View Post
    I would rather this not be a pivot table beucase of the application use by several people.

    I don't see how to upload an actaul excel file.
    I dont understand the aversion to a pivot table because others use it as well.
    Also look at my signature for how to upload a file.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,779

    Re: SumIF and eliminate blank rows

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  8. #8
    Registered User
    Join Date
    02-05-2015
    Location
    Wichita Falls, TX
    MS-Off Ver
    Windows 2010
    Posts
    4

    Re: SumIF and eliminate blank rows

    The reason it's an ongoing updated presentation sheet and the visual of this sheet is important and doesnt work as needed using pivot tables.

    We might have to continue to pull the data into a seperate workbook for the weekly presenting of information, but was hoping for a better alternative using formulas and not VBA.
    Attached Files Attached Files

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,779

    Re: SumIF and eliminate blank rows

    OK, so what do you want to pull in, and based on what?

    Assuming you want to pull out all rows with YES, try this on sheet 2, B4, copied down and across...
    =IFERROR(INDEX(Sheet1!B$4:B$29,SMALL(IF(Sheet1!$C$4:$C$29="Yes",ROW($B$4:$B$29)-3),ROWS($A$1:A1))),"")

    This is an ARRAY formula...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. Press F2 on that cell and try again.

+ 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] Eliminate the first blank cell from a list.
    By JO505 in forum Excel General
    Replies: 4
    Last Post: 12-04-2014, 07:29 PM
  2. [SOLVED] Eliminate blank rows when pulling criteria based data from one spreadsheet to another
    By Terisammis in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-28-2014, 10:39 AM
  3. Replies: 7
    Last Post: 02-01-2014, 01:48 AM
  4. Eliminate Blank Cells
    By ruby1766 in forum Excel General
    Replies: 20
    Last Post: 06-18-2009, 05:24 PM
  5. Eliminate blank rows by shifting rows up
    By jman0707 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-06-2008, 02: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