+ Reply to Thread
Results 1 to 9 of 9

Array formula, greater than error

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-26-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    312

    Array formula, greater than error

    Hi everyone,

    I have an issue with the array formula in AIC:AIC

    The formula is meant to look at AIB:AIB, & select the max value between AIB2 & AIC2

    The formula works correctly when a number in AIB:AIB is < AIC2

    But incorrectly selects numbers > AIB2

    Row 47 is where the error occurs, the answer should be 0 as it doesn't fall between 250 & 200

    I imagine it should be pretty straight forward fix

    Ty for reading

    Mdn
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    514

    Re: Array formula, greater than error

    Try removing the N() wrapper from your formula, i.e.,

    =MAX(IF($A$3:$A$154=A3,IF($AIB$3:$AIB$154>=$AIC$2,IF($AIB$3:$AIB$154<=$AIB$2,$AIB$3:$AIB$154))))

  3. #3
    Forum Contributor
    Join Date
    01-26-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    312

    Re: Array formula, greater than error

    Cheers Root, legend!

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,742

    Re: Array formula, greater than error

    Or with N(+ wrappers this does not have to be array entered.
    Formula: copy to clipboard
    =MAX(INDEX(($A$3:$A$154=A3)*(N(+$AIB$3:$AIB$154)>=$AIC$2)*(N(+$AIB$3:$AIB$154)<=$AIB$2)*N(+$AIB$3:$AIB$154),0))
    Dave

  5. #5
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,513

    Re: Array formula, greater than error

    what mean N(+
    N(+$AIB$3:$AIB$154)
    "Presh Star Who has help you *For Add Reputation!! And mark case as Solve"

  6. #6
    Forum Contributor
    Join Date
    01-26-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    312

    Re: Array formula, greater than error

    Oh very nice Flame

  7. #7
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    514

    Re: Array formula, greater than error

    One N(+ would be enough

    =MAX(INDEX(($A$3:$A$154=A3)*($AIB$3:$AIB$154>=$AIC$2)*($AIB$3:$AIB$154<=$AIB$2)*N(+$AIB$3:$AIB$154),0))

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,742

    Re: Array formula, greater than error

    Glad to help. Thank you for the feedback.

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,742

    Re: Array formula, greater than error

    @ Root_

    That's interesting. I tried that before posting the formula and couldn't get it to work though I was expecting it to.

    I'll try again.

    Thanks.

    Edit That's odd. Works now. Thanks again.
    Last edited by FlameRetired; 01-10-2019 at 09:21 PM.

+ 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. Array Formula Value Error
    By paynod in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-11-2017, 08:43 AM
  2. Replies: 5
    Last Post: 04-19-2016, 04:17 PM
  3. Replies: 3
    Last Post: 11-26-2014, 05:23 PM
  4. [SOLVED] #VALUE! Error In With Array Formula
    By DDM64 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-29-2013, 11:17 AM
  5. Array formula error
    By tkellymd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2012, 02:50 PM
  6. #N/A Error in Array Formula
    By jrarmstrong4 in forum Excel General
    Replies: 7
    Last Post: 11-30-2011, 06:02 PM
  7. [SOLVED] Array formula with greater and less than
    By coach.32 in forum Excel General
    Replies: 2
    Last Post: 06-22-2011, 05:57 AM

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