+ Reply to Thread
Results 1 to 3 of 3

What is this array formula calculating

  1. #1
    Registered User
    Join Date
    07-08-2020
    Location
    Memphis, TN
    MS-Off Ver
    Excel for Office 365
    Posts
    1

    What is this array formula calculating

    I recently had responsibility of a spreadsheet passed down to me, and there's an array formula used that is labled "increase count". Here is the formula: {=SUM(IF(G89:G118>S89:S118,1,0))} Columns G and S have various dollar amounts for sales in them, so the actual sum of them is a very large number, the the formula is returning a much smaller number. I just want some help understanding what this formula is calculating, if possible.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: What is this array formula calculating

    It's counting the rows where column G is greater than column S (between rows 89 and 118).
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: What is this array formula calculating

    {=SUM(IF(G89:G118>S89:S118,1,0))}
    It is comparing each row in pair, i.e, G89>S89, counts 1, G90<S90, counts 0, then cumulative suming up.

    Another non-array version, normally enter:

    =SUMPRODUCT(--(G89:G118>S89:S118))
    Quang PT

+ 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. Formula for calculating an array if cell A is x and B y
    By Basil Spanellis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-25-2018, 04:54 PM
  2. [SOLVED] IF formula with array - Calculating Overtime
    By Gtrtim112 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-15-2013, 02:26 PM
  3. Array Formula - calculating results on a rolling basis
    By andrewc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-03-2013, 12:10 PM
  4. VBA Array Formula - not calculating across a range
    By crtallent in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-26-2013, 08:17 PM
  5. array formula for calculating outliers
    By ravinatanson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2013, 08:54 PM
  6. Calculating bradford factors (array formula?)
    By demonfly100 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-07-2012, 09:28 AM
  7. Array Formula - Calculating Staff Numbers
    By Saxifrage in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2007, 02:01 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