+ Reply to Thread
Results 1 to 2 of 2

Can someone translate an equation so it makes sense to me?

  1. #1
    Forum Contributor
    Join Date
    10-10-2014
    Location
    New Jersey
    MS-Off Ver
    2010 & 2013
    Posts
    276

    Can someone translate an equation so it makes sense to me?

    Hi All,

    A few of my posts back, I had asked for help with a formula. I received a formula that did what I want, but now I would like to understand what it means. If someone could break down the following formula so that I can understand it for future use it would be greatly appreciated.

    {=IFERROR(SMALL(IF(COUNTIF($M$2:$M$28,'Open Order'!$G$2:$G$5000)>0,ROW('Open Order'!$G$2:$G$5000)-ROW($I$2)+1),ROWS(D$3:D3)),"")}

    To save some time, let me explain what I already understand.

    {} means it is an array.
    IFERROR(,"") leaves a blank if the formula does not come up with an answer.
    The formula is using M2:M28 as its reference.
    The formula is searching Open Order!G2:G5000 to see if it matches anything from M2:M28.
    >0 I am assuming grabs anything greater than 0.
    +1 I am assuming adds 1 to the number it generates.



    Thank you
    Last edited by Teblol; 10-24-2014 at 01:21 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Can someone translate an equation so it makes sense to me?

    ROW('Open Order'!$G$2:$G$5000)-ROW($I$2)+1) is just to give an array of numbers starting from 1 the same length as $G$2:$G$5000 which is 499 rows 1:499 ie {1,2,3,4.......,498,499}
    row('Open Order'!$G$2:$G$5000) is equal to row(2:500) you need 1:499
    so whomever wrote that formula deducted row(i2) from that ie 2
    giving row(0:498) then added back on the 1
    row(0:498)+1 =row(1:499)

    a lot of people do this as its thought by some that its easier to reproduce,especially by users who are not quite sure how it works
    eg For range X17:X99 you would see row($X$17:$X$99 )-row($x$17)+1 instead of just row($1:$83)
    Last edited by martindwilson; 10-25-2014 at 06:57 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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. help making a y-axis that makes sense for fractions
    By tomlight in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 09-11-2013, 12:21 PM
  2. Replies: 3
    Last Post: 04-19-2013, 03:07 PM
  3. Replies: 3
    Last Post: 06-01-2011, 10:19 AM
  4. Hope this makes sense...
    By mckoy_1 in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 09-20-2006, 03:21 AM
  5. [SOLVED] Format Cell- Hope this makes sense
    By Denise in forum Excel General
    Replies: 1
    Last Post: 10-14-2005, 01:05 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