+ Reply to Thread
Results 1 to 6 of 6

Proper order of COUNTIF with multiple actions

Hybrid View

ddansie Proper order of COUNTIF with... 08-01-2019, 10:31 AM
BadlySpelledBuoy Re: Proper order of COUNTIF... 08-01-2019, 10:55 AM
ddansie Re: Proper order of COUNTIF... 08-01-2019, 03:24 PM
BadlySpelledBuoy Re: Proper order of COUNTIF... 08-01-2019, 03:30 PM
ddansie Re: Proper order of COUNTIF... 08-01-2019, 03:36 PM
BadlySpelledBuoy Re: Proper order of COUNTIF... 08-01-2019, 03:46 PM
  1. #1
    Registered User
    Join Date
    09-05-2017
    Location
    U.S.
    MS-Off Ver
    2013
    Posts
    5

    Proper order of COUNTIF with multiple actions

    In column "B" I have a series of weights that I do a total on at the bottom. After the total, I want to get the actual weight by reducing the weight of the container. In cell "K1" I have my container weight.
    My formula looks like this =COUNTIF(B2:B31,">0)*K1-B32. It gives me the correct answer, but it displays it as a -0.8. Cells "B2:B31" = 3.0 Cell "K1" = 1.1
    Any help would be appreciated.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,913

    Re: Proper order of COUNTIF with multiple actions

    Hi and welcome

    Are you saying each cell in B2:B31 is 3 or the total of those cells is 3? Is B32 just the sum of the above?

    Might be easier to provide a solution if you could attach a sample workbook and let us know what the desired result is.

    BSB

  3. #3
    Registered User
    Join Date
    09-05-2017
    Location
    U.S.
    MS-Off Ver
    2013
    Posts
    5

    Re: Proper order of COUNTIF with multiple actions

    Yes B32 is the sum. I have attached a copy
    Attached Files Attached Files

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,913

    Re: Proper order of COUNTIF with multiple actions

    You haven't told us what the expected result is, but I'm guessing it should be 0.8 rather than -0.8.

    If that's the case then try this:
    =B32-COUNTIF(B2:B31,">0")*K1

    BSB

  5. #5
    Registered User
    Join Date
    09-05-2017
    Location
    U.S.
    MS-Off Ver
    2013
    Posts
    5

    Re: Proper order of COUNTIF with multiple actions

    Yes. Thank you

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,913

    Re: Proper order of COUNTIF with multiple actions

    Happy to help

    BSB

+ 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] Duplicate data need to be extracted in proper order to look pricing history
    By rosn.dhakal in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 01-09-2019, 01:55 AM
  2. Replies: 1
    Last Post: 08-29-2014, 01:50 PM
  3. [SOLVED] Sort in proper order
    By anindya.zen in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-22-2014, 06:34 AM
  4. months displayed in proper order in a pivot table
    By mariusescu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2008, 11:30 AM
  5. [SOLVED] proper syntax order
    By Roberta H via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-18-2006, 06:20 PM
  6. Excel Sub-Totaling not Compiling the Total Lines in Proper Order
    By Curt-Merchants in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2005, 02:05 PM
  7. Need to sort dates before 1900 in proper order
    By sandage_2000 in forum Excel General
    Replies: 3
    Last Post: 01-08-2005, 12:06 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