+ Reply to Thread
Results 1 to 13 of 13

Formula to show data if cell doesn't equal zero

  1. #1
    Forum Contributor heytherejem's Avatar
    Join Date
    07-06-2017
    Location
    Hampshire, England
    MS-Off Ver
    2016
    Posts
    152

    Formula to show data if cell doesn't equal zero

    Help!!

    I have a pivot which shows a description (column A), and a value (column B). Sometimes the value is zero. I want to replicate the data ignoring zero values.

    So I'm thinking of a formula which in one cell states if B is not zero, show the value in A and in the adjacent cell have a formula that shows the value in B. But if B iszero, to look at the row below. And then to apply the same rule so if the row below is zero, look at the one beneath that etc.

    This is because I cannot create a graph that ignores zero values, and the pivot will not ignore zero values. Silly computer. I'm currently using the Windows 2013 like some sort of Neanderthal.

    I tried =IF(B6<>"0",A6) - still shows the zero values and doesn't look at the next row so I'm out of my depth here

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Formula to show data if cell doesn't equal zero

    do you know if the 0 is text, maybe try =IF(B6=0,B6,A6) Besides, your if then statement doesn't have a what to do if it is false part.
    =IF(B6<>0,A6,B6) seems to be left off.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formula to show data if cell doesn't equal zero

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  4. #4
    Forum Contributor heytherejem's Avatar
    Join Date
    07-06-2017
    Location
    Hampshire, England
    MS-Off Ver
    2016
    Posts
    152

    Re: Formula to show data if cell doesn't equal zero

    Sambo kid you're quite right I shouldn't have used quotations. However, I still need the formula to look at the next row if the cell =0 and apply the same rule. I'm thinking something like =IF(B6<>0,A6,ROW(B6-1) << this doesn't work, but something along these lines?

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Formula to show data if cell doesn't equal zero

    what are you trying to accomplish with the "ROW(B6-1)"? usually you write for the row formula ROW(B6)-1 would be more functional.

  6. #6
    Forum Contributor heytherejem's Avatar
    Join Date
    07-06-2017
    Location
    Hampshire, England
    MS-Off Ver
    2016
    Posts
    152

    Re: Formula to show data if cell doesn't equal zero

    I need my formula to show the data if it's not zero, but if it is zero, to skip it and look at the next row.

    If I just tell it to point to the next row e.g =IF(B6<>0,A6,B7) it will simply show what's in B7. I want to look at B7, and if it's zero, to look at B8 and so forth. So I may be way off with ROW it may be an OFFSET, or something else.

  7. #7
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Formula to show data if cell doesn't equal zero

    in that case I would reiterate what Sandy noted in post #3. you ought to post a sample sheet which represents the kind of data and various options involved. For example it is difficult to write a formula for something we're just guessing at, what if the next occupied cell after B6 is B22?

  8. #8
    Forum Contributor heytherejem's Avatar
    Join Date
    07-06-2017
    Location
    Hampshire, England
    MS-Off Ver
    2016
    Posts
    152

    Re: Formula to ignore row if value is zero

    See attached example, I hope it helps!
    Attached Files Attached Files

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formula to show data if cell doesn't equal zero

    Like this one?

  10. #10
    Forum Contributor heytherejem's Avatar
    Join Date
    07-06-2017
    Location
    Hampshire, England
    MS-Off Ver
    2016
    Posts
    152

    Re: Formula to show data if cell doesn't equal zero

    Sadly I wish it were that easy. The data is actually in a pivot, and the pivot can't filter out zero. I need a separate set of data, pointing to the pivot indirectly, but not pointing to the cells where the value is zero.

    I thought this was going to be a simple request for an excel genius but it looks like I'm asking for something that's not possible :-(

  11. #11
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Formula to show data if cell doesn't equal zero

    Like this one?
    Sandy, I hope you solved it for jem, I'm visiting from work and cannot download workbooks.

  12. #12
    Forum Contributor heytherejem's Avatar
    Join Date
    07-06-2017
    Location
    Hampshire, England
    MS-Off Ver
    2016
    Posts
    152

    Re: Formula to show data if cell doesn't equal zero

    Not yet Sambo kid! Doesn't look like it's possible unless there's another excel expert out there....

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formula to show data if cell doesn't equal zero

    @ heytherejem

    this is exactly what you show in your example (DATA I WANT table)
    it's only sorted.

    So your example is wrong or create new descritpion and example with details what you want to achieve.

+ 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. Replies: 2
    Last Post: 05-29-2017, 11:03 AM
  2. [SOLVED] Need to add to my formula so if a cell is blank the formula doesn't show
    By Rebeccak28 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-10-2015, 05:22 AM
  3. Don't understand why formula doesn't equal zero
    By TimeMachine in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-23-2013, 10:56 PM
  4. [SOLVED] COUNTIF Formula with DOES NOT EQUAL TO operator doesn't work
    By JPWRana in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 07-20-2013, 06:10 PM
  5. cell doesn't show result of formula
    By nabraham00 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-13-2012, 08:43 AM
  6. Replies: 3
    Last Post: 04-24-2012, 02:06 PM
  7. Formula bar doesn't have an equal sign
    By Joes Auto Pat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-16-2006, 03:10 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