+ Reply to Thread
Results 1 to 3 of 3

Listing only non zero amounts

  1. #1
    Registered User
    Join Date
    04-04-2017
    Location
    New York, US
    MS-Off Ver
    2010
    Posts
    3

    Listing only non zero amounts

    I have a matrix in cells A1:E5 where row A lists the numbers 1, 2, 3, 4 and row 1 lists the letters A, B, C, D. Cells B3:E3 show the amounts 100, 0, 150, 0. Cells B5:E5 show the amounts 0, 0, 0, 25.

    I am trying to make a formula in cell G1 and G2 that return the amounts 100 and 150 when I enter "2" in cell F1. Similarly if I were to enter "4" in cell F1 I would want to see 25 in G1 and G2 should be blank.

    Is this possible?
    Last edited by daysleeper15; 04-04-2017 at 03:41 PM.

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Listing only non zero amounts

    Welcome to the forum!

    If I'm understanding you correctly, the following formula, array entered (confirmed with Ctrl+Shift+Enter instead of Enter) in G1 and filled down should do the trick:

    =IF(LARGE(($B$2:$E$5>0)*($A$2:$A$5=$F$1)*($B$2:$E$5),ROW(1:1))>0,LARGE(($B$2:$E$5>0)*($A$2:$A$5=$F$1)*($B$2:$E$5),ROW(1:1)),"")

    Check out the attachment to see if I've got the arrangement correct:
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-04-2017
    Location
    New York, US
    MS-Off Ver
    2010
    Posts
    3

    Re: Listing only non zero amounts

    That's it. Thank you so much.

+ 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] HELP - This Macro works on small amounts of data but fails on large amounts
    By BookmanNLA in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-18-2015, 12:40 AM
  2. Replies: 1
    Last Post: 05-07-2014, 06:19 PM
  3. Replies: 2
    Last Post: 02-23-2014, 09:56 PM
  4. [SOLVED] Add Invoice Amounts and Paid Amounts based on user inputs.
    By s2jrchoi in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-18-2013, 01:49 PM
  5. [SOLVED] Calculating amounts in a single currency from a list of multiple currency amounts
    By Romsky in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-03-2013, 12:22 PM
  6. Formula to take amounts from other sheet with no duplicate amounts
    By Xx7 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-06-2013, 04:34 PM
  7. Replies: 1
    Last Post: 06-15-2010, 09:42 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