+ Reply to Thread
Results 1 to 5 of 5

Make formula disregard other formula entry if blank

  1. #1
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sefton
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    131

    Make formula disregard other formula entry if blank

    I have a group of possible data entries, these contain whole numbers.
    I have a separate sheet which collates all these entries into one table using formulas like - if('sheet1'!A1<1,"",'sheet1'!A1) so as to return a blank if there is no entry, as the minimum will be 1.

    However I have other formulas which I want to create one table from only the entries which are not blank, and remove any which are (so I don't get spaces in the final table).
    Currently because the second formula knows that the first one exists and the cell is not in fact blank it returns a blank cell rather than ignoring it and moving to the next which isn't blank.

    If I manually enter the data into the first table the second table completes as I want it to (without the empty cells), but with the formula it includes the empty cells.

    In the Example - I've collected the data from Sheets 1 + 2 into the 1st table (A-F) on Sheet 3, and I want it all displayed in the 2nd table (H,I) on sheet 3 without any blanks.
    Example.xlsx
    You will see if you delete the formula in the blank cells (A-F) on sheet 3 that the 2nd table shrinks.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,619

    Re: Make formula disregard other formula entry if blank

    within subtotal use function 2 not 3.
    Please Login or Register  to view this content.
    of course again array formula (ctrl+shift+enter committed)

    to make output nicer (get rid of errors) you can nest it within IFERROR:
    Please Login or Register  to view this content.
    and you can adjust I2:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sefton
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    131

    Re: Make formula disregard other formula entry if blank

    that's great thanks

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Make formula disregard other formula entry if blank

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    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

  5. #5
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sefton
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    131

    Re: Make formula disregard other formula entry if blank

    sorry, got a bit caught up at work forgot to mark as solved. I give everyone who helps me solve my problems rep...

+ 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] Disregard zero in a MIN formula...
    By RPM509 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-17-2013, 08:03 PM

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