+ Reply to Thread
Results 1 to 8 of 8

Formula to extract a list from an existing list ignoring 0 values

  1. #1
    Registered User
    Join Date
    10-16-2014
    Location
    England
    MS-Off Ver
    Office 2010
    Posts
    5

    Formula to extract a list from an existing list ignoring 0 values

    Good Morning All,

    I found a formula on line to eliminate blank cells in an original list and create a list without the blank cells, this formula was =IFERROR(INDEX(AreaBlanksRange,SMALL((IF(LEN(AreaBlanksRange),ROW(INDIRECT("1:"&ROWS(AreaBlanksRange))))),ROW(A1)),1),"")

    I created a data ranges for this formula to read from, The problem I have is that the original list I have contains formulas in every cell, so excel does not pick up the cells as blank cells, I can set my formulas in my original list so that instead of appearing blank it shows a 0 in the cell instead, can the above formula be adapted to ignore 0 values instead of blank cells?


    Example below of my original list and how I want the new list to appear:

    20 20
    0 30
    30 40
    0
    40
    0

    I would also need this list to work for a formula picking up text, but would still show a 0 if I want to ignore this cell :-)

    Thanks

    Mark

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Formula to extract a list from an existing list ignoring 0 values

    Hi,

    an attempt


    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Maybe attaching a sample file could help to get a better solution.

    Regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Formula to extract a list from an existing list ignoring 0 values

    You can also use the filter to get rid of the 0's

  4. #4
    Registered User
    Join Date
    10-16-2014
    Location
    England
    MS-Off Ver
    Office 2010
    Posts
    5

    Re: Formula to extract a list from an existing list ignoring 0 values

    Hi All

    Ho do you upload a spread sheet apologies for sounding daft but cant see the usual button you would in an email

    Thanks

    Mark
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-16-2014
    Location
    England
    MS-Off Ver
    Office 2010
    Posts
    5

    Re: Formula to extract a list from an existing list ignoring 0 values

    Hi Again

    Scratch that I seem to have managed it but didn't think it had worked,

    in the sample spread sheet, the data on the first tab is all transferred into the sheet 1 tab in columns A and B, I am trying to get columns D and E to skip the zeros, the formula in this is currently set to ignore blanks.

    Thanks

    Mark

  6. #6
    Registered User
    Join Date
    10-16-2014
    Location
    England
    MS-Off Ver
    Office 2010
    Posts
    5

    Re: Formula to extract a list from an existing list ignoring 0 values

    Hi

    Thanks for this reply, I am hoping not have to replace the formulas each time in case the users accidentally overwrite their master file, I have a back up at the moment of copy and paste special the values from the data, filter the zeros in this range and then highlight the cells and hit delete, this then clears the cells :-) I just know if it can ignore blank cells it must be able to ignore a certain value but I am not that good in excel :-)

    Cheers

    Mark

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Formula to extract a list from an existing list ignoring 0 values

    You can always use the Number filters in the filter dropdown box at the top of the range and select "Does not equal" and enter 0. This does not remove the 0 's though, it just hides them

  8. #8
    Registered User
    Join Date
    10-16-2014
    Location
    England
    MS-Off Ver
    Office 2010
    Posts
    5

    Re: Formula to extract a list from an existing list ignoring 0 values

    Hi Pepe

    Thanks for the reply, the problem I have is that there is another sheet to print out labels per pallet and I don't want it to print out all the potential zeros, for now looks like I will have to keep to the current plan of copy and paste special data, filter out the zeros highlight the cells and hit delete, this then makes the cells blank to excel and the original formula works :-)

    I just wish I knew how to read the array formula of =IFERROR(INDEX(AreaBlanksRange,SMALL((IF(LEN(AreaBlanksRange),ROW(INDIRECT("1:"&ROWS(AreaBlanksRange))))),ROW(A1)),1),"")
    so I knew which bit to manipulate to make it ignore zeros instead of blanks :-)

    Cheers

    Mark

    Cheers

    Mark

+ 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] Extract values from a list and copy to new list!
    By dulan07 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-30-2013, 08:30 AM
  2. Function to Choose and List Values ignoring blanks and erros
    By k2i2 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-16-2013, 11:10 AM
  3. Extract values from multicolumn list box
    By Newbie_Nick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2010, 03:32 AM
  4. Extract and list values from different sheets
    By bower in forum Excel General
    Replies: 3
    Last Post: 04-16-2007, 09:34 AM
  5. [SOLVED] Can you extract URL values from a list of cells?
    By BigIan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-23-2005, 01:25 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