+ Reply to Thread
Results 1 to 9 of 9

How do I calculate Absolute Value in a cell not aligned with rows used in the array?

  1. #1
    Registered User
    Join Date
    12-30-2014
    Location
    US
    MS-Off Ver
    2010
    Posts
    17

    How do I calculate Absolute Value in a cell not aligned with rows used in the array?

    Is there a way to calculate Absolute Value in a cell that's not aligned with the rows used in the array? I'm using ABS(I33:39) but it only calculates if the cell I place the ABS formula in is somewhere in rows 33-39.

    Here are the formula's I'm using...

    Works just fine in any row:
    Please Login or Register  to view this content.
    Returns as false or " " with ABS when this formula is not calculated in a cell between rows 33-39.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How do I calculate Absolute Value in a cell not aligned with rows used in the array?

    You're testing an array with this:

    IF(ABS($I$33:$I$39)>=1%

    So, you would have to enter the formula as an array formula.

    Array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    When done properly Excel will enclose the formula in squiggly brackets { }. You can't just type these brackets in, you must use the key combo to produce them. Also, anytime you edit an array formula it must be re-entered as an array using the key combo.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    12-30-2014
    Location
    US
    MS-Off Ver
    2010
    Posts
    17

    Re: How do I calculate Absolute Value in a cell not aligned with rows used in the array?

    I could be wrong, but it doesn't seem to be an issue of pushing ctrl, shift, enter because I have already done that. My issue is that the if(ABS()) formula returns "true" when in rows 33-39 and "False" anywhere else. I need it to be in completely different rows though.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How do I calculate Absolute Value in a cell not aligned with rows used in the array?

    For the formula to work properly it has to be array entered as noted in my other reply.

    If you're getting a correct result without array entering it's just a coincidence.

    If you enter the formula in any cell on rows 33:39 and do not enter it as an array formula, it will evaluate the single cell that is the implicit intersection of the referenced array.

    For example, your formula is:

    =IF(ABS($I$33:$I$39)>=1%,INDEX($A$33:$A$39,MATCH(LARGE($I$33:$I$39,K10),$I$33:$I$39,0)),"")

    If you enter it in cell X36 and do not enter it as an array formula then this expression:

    =IF(ABS($I$33:$I$39)>=1%

    Is only evaluating the single cell I36. The formula being entered on row 36 so the implicit intersection is cell I36.
    Last edited by Tony Valko; 05-28-2015 at 05:29 PM. Reason: added a missing word!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How do I calculate Absolute Value in a cell not aligned with rows used in the array?

    P.S.

    That's why this statement is incorrect:

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    You CAN get a correct result if you don't array enter an array formula.

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: How do I calculate Absolute Value in a cell not aligned with rows used in the array?

    Can you upload a sample workbook illustrating your problem? I see no reason why that formula (array entered) should only work within the 33:39 row range. It seems like it should work just fine from anywhere in the worksheet.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  7. #7
    Registered User
    Join Date
    12-30-2014
    Location
    US
    MS-Off Ver
    2010
    Posts
    17

    Re: How do I calculate Absolute Value in a cell not aligned with rows used in the array?

    Tony - I did enter as an array. "I have already done that".
    Last edited by TIFinance; 05-28-2015 at 06:24 PM.

  8. #8
    Registered User
    Join Date
    12-30-2014
    Location
    US
    MS-Off Ver
    2010
    Posts
    17

    Re: How do I calculate Absolute Value in a cell not aligned with rows used in the array?

    Solved as follows. I need the LARGE formula to only take into consideration values in I33:I39 which meet the specified condition. Apparently, the condition needs to be placed within the actual LARGE function, not preceding it:

    Please Login or Register  to view this content.
    ^ entered as an array of course.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How do I calculate Absolute Value in a cell not aligned with rows used in the array?

    Good deal. Thanks for the feedback!

+ 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. How to calculate errors (standard, Absolute or Absolute Relative)
    By rz6657 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-09-2015, 02:01 PM
  2. Mis aligned rows and column
    By lyung in forum Excel General
    Replies: 1
    Last Post: 10-30-2014, 02:06 PM
  3. mis aligned rows and column
    By lyung in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 10-30-2014, 01:51 PM
  4. [SOLVED] How do I retain absolute cell references when copying an array?
    By saad1000 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-10-2013, 02:17 PM
  5. Replies: 6
    Last Post: 05-27-2009, 10:55 AM

Tags for this Thread

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