+ Reply to Thread
Results 1 to 5 of 5

formula that returns a number based on a certain criteria

  1. #1
    Registered User
    Join Date
    06-10-2013
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    57

    formula that returns a number based on a certain criteria

    I want a formula that returns volume only to the point revenue is greater than 0. All I want is to show me the total volume.


    volume Revenue
    400 $55.00
    450 $48.00
    500 $44.00
    600 $39.00
    650 $38.00
    800 $20.00
    1200 $17.00
    1450 $5.00
    1575 $2.00
    1625 ($1.00)
    1800 ($6.00)
    2500 ($18.00)
    2750 ($22.00)
    3300 ($29.00)
    4000 ($50.00)

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: formula that returns a number based on a certain criteria

    Try this:

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    1
    volume Revenue
    2
    400
    55
    7625
    3
    450
    48
    4
    500
    44
    5
    600
    39
    6
    650
    38
    7
    800
    20
    8
    1200
    17
    9
    1450
    5
    10
    1575
    2
    11
    1625
    -1
    12
    1800
    -6
    13
    2500
    -18
    14
    2750
    -22
    15
    3300
    -29
    16
    4000
    -50
    Sheet: Sheet1

    Excel 2016 (Windows) 32 bit
    D
    2
    =SUMIF(B2:B16,">0",A2:A16)
    Sheet: Sheet1
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-10-2013
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    57

    Re: formula that returns a number based on a certain criteria

    That works but I think I asked wrong. based on the value being greater than 0 it should return 1575 since that volume is increasing. can it just return up to the point the revenue is positive and not sum up the volume?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: formula that returns a number based on a certain criteria

    Right! Try this:

    =LOOKUP(2,1/(B2:B16>0),A2:A16)

  5. #5
    Registered User
    Join Date
    06-10-2013
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    57

    Re: formula that returns a number based on a certain criteria

    your the best that works thank you!

+ 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] Formula required to Calculate Week number based on Criteria
    By Yadavgiri in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-26-2016, 08:48 AM
  2. Formula that returns data based on certain criteria & distibution
    By tgebert in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 08-29-2016, 05:29 PM
  3. Returns a single result based on multiple criteria
    By Humanoj in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-29-2016, 10:22 AM
  4. Need formula that calculates AVG number based on exact criteria
    By Lindee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2014, 03:17 PM
  5. [SOLVED] one column that returns a text based on criteria in other cells
    By nicko54 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-16-2013, 12:24 AM
  6. [SOLVED] Formula that returns values based on criteria
    By dks345 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-10-2013, 08:48 AM
  7. Replies: 3
    Last Post: 07-03-2012, 09:09 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