+ Reply to Thread
Results 1 to 4 of 4

Understanding formula's

  1. #1
    Forum Contributor
    Join Date
    12-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    142

    Understanding formula's

    I am trying to learn formula's and wanted some help understanding the following:
    Please Login or Register  to view this content.
    I understand the {} are array brackets
    I understand the sum and exact function, but am not sure what ,1 means at the end means.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Understanding formula's

    If data and text are ranges of the same size then the formula is comparing the relative entries in each (using EXACT gives you a case-sensitive comparison) and for each row (or column) that matches 1 is returned by the IF function, so if there are 5 matches the formula will return 5 because it sums the 5 1s returned....

    You could make it a non-array function by using SUMPRODUCT like this

    =SUMPRODUCT(EXACT(data,text)+0)
    Audere est facere

  3. #3
    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,425

    Re: Understanding formula's

    The 1 is the TRUE part of the IF function. There is no FALSE part, though it could be 0.

    data is a Named Range covering the cells to be tested. text is another Named Range with the text to compare to the data range.

    It will generate a matrix of TRUE or FALSE and, for each TRUE, you will get a 1 added. For example, {TRUE, TRUE, FALSE, FALSE, TRUE} would give =SUM{1,1,0,0,1} = 3


    Regards, TMS
    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


  4. #4
    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,425

    Re: Understanding formula's

    Thanks for the rep

+ 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 is not understanding me
    By Shainal.Sutaria in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-03-2013, 07:56 AM
  2. I need help understanding this formula
    By exfin in forum Excel General
    Replies: 3
    Last Post: 09-23-2012, 03:13 PM
  3. need help understanding a formula
    By imrainbow in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-09-2011, 01:12 AM
  4. NOT UNDERSTANDING THE FORMULA
    By PAPABEAR2252 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-10-2005, 08:07 PM
  5. [SOLVED] Understanding this formula
    By Sal in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-26-2005, 03:06 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