+ Reply to Thread
Results 1 to 2 of 2

Array Formulas with Multiple Range Criterias - not returning result

  1. #1
    Registered User
    Join Date
    09-19-2016
    Location
    Muscat, Oman
    MS-Off Ver
    365
    Posts
    56

    Array Formulas with Multiple Range Criterias - not returning result

    I have the attached workbook. I need the formula to review the other worksheet to return value when the below criteria is met:
    1. It is in between the Open Datetime and New Closing Time
      If trade is a Buy:
    2. Is greater than 10+ Open Price
    3. The value in K of the same row as the potential result is greater than the potential value
      If Trade is a Sell:
    4. Is less than 10 - Open Price
    5. The value in L of the same row as the potential result is less than the potential value

    I have tried Index/Match, XLookup, Filter, and Aggregate formulas. But none of them work. I had a friend take a look and he thinks there is something about the arrays that is not working.

    I have all the formulas I was trying in the attached workbook with sample data. As can see on the GBPAUD worksheet, I highlighted the green row where the result (in red) that actually meets the criteria. So I know wwhat the value should be returned, but the formulas are not returning that value.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    I would appreciate if anyone could advise me on how do I fix this?
    Attached Files Attached Files

  2. #2
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Array Formulas with Multiple Range Criterias - not returning result

    The part (IF($F4="Buy";GBPAUD!$O$1:$AR$10>=($J4+($Y$1/$T4));GBPAUD!$O$1:$AR$10<=($J4-($Y$1/$T4)))) is return array of FALSE. You have to check condition. may be ($J4+($Y$1/$T4)) in the both parts.

    p.s. the whole part could be written shortly ((($F4="Buy")*2-1)*(GBPAUD!$O$1:$AR$10-$J4)>=$Y$1/$T4)
    Last edited by BMV; 11-10-2020 at 01:58 AM.

+ 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] Return result based on multiple criterias
    By Andrea76 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2020, 04:59 AM
  2. [SOLVED] lookup + array returning unexpected result
    By vini.v4 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-16-2019, 09:43 PM
  3. [SOLVED] array formula to create dyanmic range returning multiple criteria
    By devi1337 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-24-2017, 02:08 PM
  4. Display the result with multiple criterias. [Solved]
    By vho in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-17-2017, 12:16 AM
  5. [SOLVED] Returning row value based on multiple criterias in array (not tables). IF ? Lookup ?
    By KomicJ in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-02-2016, 05:08 AM
  6. [SOLVED] Searching Multiple Criterias and Returning Multiple Results
    By boaesh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-13-2014, 11:02 AM
  7. [SOLVED] If two criterias are met, then... With array formulas
    By andy93 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2013, 08:40 PM

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