+ Reply to Thread
Results 1 to 3 of 3

Suppressing Blank Rows When Populating One Worksheet With Data from Another

  1. #1
    Registered User
    Join Date
    09-08-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    25

    Suppressing Blank Rows When Populating One Worksheet With Data from Another

    Column M of Sheet 1 contains either "y" or "n". I'd like Sheet 2 to populate with data in cells A-D but only for rows where column H = "y".

    I can figure out the condition easily enough:
    =IF('Sheet 1'!M2="Y",'Sheet1'!A2,"")
    Repeat for each column to display. But I'd like to suppress the blank rows for both display purposes and the possibility of using in a Word mail merge.
    Last edited by nycstinger; 09-11-2009 at 12:35 PM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Suppressing Blank Rows When Populating One Worksheet With Data from Another

    Column M of Sheet 1 contains either "y" or "n". I'd like Sheet 2 to populate with data in cells A-D but only for rows where column H = "y".

    I can figure out the condition easily enough:
    =IF('Sheet 1'!M2="Y",'Sheet1'!A2,"")
    If its a case of "y" or "n" then your formula should be:

    =if(or(sheet1!M2="Y", sheet1!M2="N"),Sheet1!A2,"")

    But I'd like to suppress the blank rows for both display purposes and the possibility of using in a Word mail merge.
    By suppress, do you mean you want to hide those rows? You could use AutoFilter to do this. Or, use Advanced Filter with criteria and copy non-blank cells to another sheet.

  3. #3
    Registered User
    Join Date
    09-08-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Suppressing Blank Rows When Populating One Worksheet With Data from Another

    I'm learning more about Excel in the last week than I have in years. Thanks for the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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