+ Reply to Thread
Results 1 to 3 of 3

If two criterias are met, then... With array formulas

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Smile If two criterias are met, then... With array formulas

    Hello,
    I have been lurking around this forum ,for some time now, and always found a solution for what I was looking for, and I thank you all for that.
    Except for this following problem, I would need further assistance...

    Examples of the formulas in C are the following: (C2): {=PRODUCT(IF(A3>B2:B$2,1,0))} and (C8) {=PRODUCT(IF(A8>B$2:B7,1,0))}
    The context is that I have the open and the close of a series of stock trades. The scope is to figure out if a trade was open while another one,or many, were also open.
    I display 1 if at the "Date Open" there was nothing else open
    And oppositely show 0 if the open was before a previous close
    _________________
    Here's the twist... What I would like it to add as a condition is the following:
    If the the false argument has a worth of 0 then don't consider it at all when applying the formulas.
    In context it would mean that if the worth was 0 is that the trade was not actually opened so the close shouldn't influence the other trades worth.
    Thanks in advance,
    If you have question don't hesitate to ask.
    Last edited by andy93; 09-06-2013 at 07:39 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: If two criterias are met, then... With array formulas

    Hi and welcome to the forum

    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you Also, not all members can upload picture files (Company firewalls and stuff)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: If two criterias are met, then... With array formulas

    Thank you FDibbins for the comment, I just edited the original 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] Delete rows based on multiple criterias, copy/paste data and formulas
    By BQuek in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2013, 01:36 PM
  2. Replies: 4
    Last Post: 01-31-2012, 04:36 AM
  3. VBA Filter Array by Two date Criterias, Help!
    By Crebsington in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-22-2011, 07:03 AM
  4. Replies: 3
    Last Post: 05-04-2010, 04:06 AM
  5. How to match 2 criterias in an array?
    By e4excel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-07-2009, 03:16 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