+ Reply to Thread
Results 1 to 9 of 9

Greater than X, but less than X formulas??

Hybrid View

  1. #1
    Registered User
    Join Date
    02-07-2005
    Location
    Minneapolis
    Posts
    36

    Question Greater than X, but less than X formulas??

    Hello...this is hopefully something very easy for one of you experts to answer for me:

    I am in need of 2 different formulas.

    1. Counting the numbers in Column A that are greater than 60, but less than 90.

    2. Give me the sum of the amounts in column B, when it sees a number in column A that is greater than 60, but less than 90.

    Please help if you can!! greatly appreciated!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    For amounts listed in cells A1:A11

    The count is:
    =SUM(($A$1:$A$11<90)*($A$1:$A$11>60))

    The sum is:
    =SUM(($A$1:$A$11<90)*($A$1:$A$11>60)*A1:A11)


    (Note: Commit those array formulas by pressing [Ctrl]+[Shift]+[Enter])

    Hope that helps.

    Ron

  3. #3
    Registered User
    Join Date
    02-07-2005
    Location
    Minneapolis
    Posts
    36
    Well, one of the formulas Ron recommended below worked perfectly, but i am still in need of a formula to give me the sum of the amounts in column B. Here's a better explanation:

    Column A lists the number days something has been in our inventory.
    Column B lists the amounts of these items

    i need to know the sum (from B) of anything in our inventory that is between 60 and 90 days old (from column A).

    Anybody have any advice for me??
    (...and thank you Ron!!)
    Last edited by JENNYC; 04-13-2005 at 01:56 PM.

  4. #4
    Registered User
    Join Date
    04-13-2005
    Posts
    3
    The answer is basically the same as the above formula.

    If you look at the answer. The first part in the sum ($A$1:$A$11<90) checks to see if it is less than 90. It returns 1 if it is true. The second part works the same way. If they are both true, you get 1*1*(what you want to add if the conditions are true). In the first case, you wanted to add col A. This time you want to add col B.

    =SUM(($A$1:$A$11<90)*($A$1:$A$11>60)*B1:B11)

    I hope that helps.

  5. #5
    Registered User
    Join Date
    02-07-2005
    Location
    Minneapolis
    Posts
    36
    Uh oh!! I still can't get it to work for me?? I keep getting that dreaded #VALUE!
    I'm so sorry! Any other ideas or any idea of what i might be doing wrong? (i did commit it as an array formula!)

    ....and thank you very much!!

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    You can't have any text in the values to be summed. Is that the problem?

    Ron

  7. #7
    Registered User
    Join Date
    02-07-2005
    Location
    Minneapolis
    Posts
    36
    Nope! No text at all?? this is exactly the formula I have:

    {=SUM(($J$8:$J$200<90)*($J$8:$J$200>60)*E8:E200)}



    thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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