+ Reply to Thread
Results 1 to 5 of 5

Rather Complicated Formula

  1. #1
    Registered User
    Join Date
    01-31-2008
    Location
    Crewe
    Posts
    4

    Rather Complicated Formula

    =IF(ISERROR(B27),"g",IF(B24>(IF(OR((OFFSET((OFFSET((INDEX(B8:B23,MATCH(9.99999E+307,B8:B23,1),1)),-1,0,1,1)),0,-1,1,1))="Quarter 1",(OFFSET((OFFSET((INDEX(B8:B23,MATCH(9.99999E+307,B8:B23,1),1)),-1,0,1,1)),0,-1,1,1))="Quarter 2",(OFFSET((OFFSET((INDEX(B8:B23,MATCH(9.99999E+307,B8:B23,1),1)),-1,0,1,1)),0,-1,1,1))="Quarter 3",(OFFSET((OFFSET((INDEX(B8:B23,MATCH(9.99999E+307,B8:B23,1),1)),-1,0,1,1)),0,-1,1,1))="Quater 4"))),((OFFSET((INDEX(B8:B23,MATCH(9.99999E+307,B8:B23,1),1)),-2,0,1,1))),((OFFSET((INDEX(B8:B23,MATCH(9.99999E+307,B8:B23,1),1)),-1,0,1,1))),"g","r")

    Abit more scarey than it actually is. I have a column of data which refers to:
    Jan value
    Feb value
    Mar value
    Quarter 1 value

    And so on until AP12. That formula is designed to not compare the, for example, AP4 result with Quarter 1 result. I am fairly positive that this formula is correct in terms of brackets. But it will not let me complete it.

    Can anyone here run an eye over it and firstly laugh, secondly suggest a fix, or thirdly suggest a better way to do it (without scripts)

  2. #2
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    To work out what you are doing and suggest a better way to do it, it would be easier to have an attached zipped worksheet, and some explanation of what you want to achieve.

    Regards

    Dav

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Rather Complicated Formula

    I *think* I have a handle on what you're trying to do.

    Try this:
    Please Login or Register  to view this content.
    Well....Was I even close?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    01-31-2008
    Location
    Crewe
    Posts
    4
    Quote Originally Posted by Ron Coderre
    Well....Was I even close?
    I *think* you were close. Looks alot better to me, but its returning the #VALUE! error.

    I'm having a look now.

    EDIT:
    http://www.uploading.com/files/TP9ZE...ample.xls.html

    The formula in question is in C28.
    Last edited by paulmaddock; 02-08-2008 at 04:50 AM.

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Rather Complicated Formula

    Closer this time (I think)

    See that editted version of the file you posted (attached).

    Please Login or Register  to view this content.
    Does that help?

    EDITED FOR THIS COMMENT:
    (Sorry about misspelling your name on the uploaded file, Paul)
    Attached Files Attached Files
    Last edited by Ron Coderre; 02-08-2008 at 10:17 AM.

+ 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