+ Reply to Thread
Results 1 to 7 of 7

How do I display list of only non-zero values and values that correspond to them?

  1. #1
    Registered User
    Join Date
    08-06-2009
    Location
    Brooklyn, NY
    MS-Off Ver
    Excel 2003
    Posts
    4

    How do I display list of only non-zero values and values that correspond to them?

    Hi everyone,

    I'm new here, please bear with me. I have a chart (see attached image for a made-up example) in which the rows are ingredients and the columns are different soil types. What I need to do is to automatically generate "recipes" for each soil type by showing only the ingredients for which a soil type has a nonzero value, and next to that, their values (the second attachment is what I'd like it to look like).

    I think I need to use some sort of array formula, but I'm not totally sure what that is, and I definitely don't know how to write one.

    Please help! Thank you in advance for your time/expertise.
    Attached Images Attached Images

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: How do I display list of only non-zero values and values that correspond to them?

    I think the best way is .... see sample,,,
    Attached Files Attached Files
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Registered User
    Join Date
    08-06-2009
    Location
    Brooklyn, NY
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: How do I display list of only non-zero values and values that correspond to them?

    Hello,

    I'm SO sorry for not replying earlier, I had to put this project on hold for some time. Thank you so much for posting this-- unfortunately, I was hoping to do the reverse (meaning, I have the table on the bottom in your example, but I would like to automatically generate the one on the top).

    Thank you for your help, and again, I apologize for taking *months* to respond. I wish there were an embarassed smiley I could use.

    smdsi

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: How do I display list of only non-zero values and values that correspond to them?

    Hi,

    instead of pictures, please upload a sample of your data, with the layout you have. Indicate where you would want the output, based on logic described in plain terms. That will take the guesswork out of the effort.

    cheers

  5. #5
    Registered User
    Join Date
    08-06-2009
    Location
    Brooklyn, NY
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: How do I display list of only non-zero values and values that correspond to them?

    Sure thing! I'd like to create easy-to-read recipes from the data in the sheet "chart I have." It should look like the second sheet "chart I want to generate." For each recipe, I'd like it to line up the quantity of each component next to the name of the component, but I would like it to *skip* any component with a quantity of zero. Does that make sense?

    Thank you so much!
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    534

    Re: How do I display list of only non-zero values and values that correspond to them?

    Have a look, see if this works for you.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-06-2009
    Location
    Brooklyn, NY
    MS-Off Ver
    Excel 2003
    Posts
    4

    Smile Re: How do I display list of only non-zero values and values that correspond to them?

    Um, wow? This is so helpful, and so fast! Thank you!

+ 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