+ Reply to Thread
Results 1 to 2 of 2

explain formula

  1. #1
    Forum Contributor
    Join Date
    03-17-2010
    Location
    karachi
    MS-Off Ver
    Excel 2003
    Posts
    113

    explain formula

    PLEASE EXPLAIN THIS FORUMLA
    =IFERROR(INDEX(Sheet1!R3C[-3]:R1000C[-3],SMALL(IF(MONTH(Sheet1!R3C1:R1000C1)=MONTH(TODAY()),ROW(Sheet1!R3C[-3]:R1000C[-3])-2),ROW(Sheet1!R[-3]C[-3]))),"""")"

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: explain formula

    Hi,

    It seems an odd formula. What do you think it's doing?

    I suspect it's an array formula that is entered with Ctrl-Shift-Enter (i.e. it should be encapsulated within {}

    It's always going to be an Error since there is no second part for if the IF test is False.

    However
    The =IFERROR wrapped around simply returns " if the formula evaluates to an error.
    otherwise it's using the INDEX function to find a value in rows 3:1000 of the column three columns to the left of the column that contains the formula.

    There is no column parameter to the Index function si by default it uses the column three to the left.

    The row number in that column that it's indexing is the nth smallest number in one of two ranges that's determined by the IF test. It's the ROW(Sheet1!R[-3]C[-3]) bit which determines the value n and this is always the row number 3 rows above the formula.

    As far as I can see the fist bit of the IF test MONTH(Sheet1!R3C1:R1000C1)=MONTH(TODAY()) is always going to return a False value since the function MONTH() when used with a range is illogical and when this is compared to the month number of today's date it's going to be a FALSE if test and hence because it doesn't contain a definition of what it expects when the IF test fails then the result is an error.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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] Can someone explain this sum formula please??
    By edgrace2013 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-28-2013, 01:16 AM
  2. Explain what this formula does?
    By zudecke in forum Excel General
    Replies: 5
    Last Post: 02-24-2011, 01:05 PM
  3. Please Explain Formula
    By Karen in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  4. Please Explain Formula
    By Karen in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  5. [SOLVED] Please Explain Formula
    By Karen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-16-2005, 07: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