+ Reply to Thread
Results 1 to 4 of 4

Excel IF AND in array formula

  1. #1
    Registered User
    Join Date
    11-01-2010
    Location
    CapeTown
    MS-Off Ver
    Excel 2010
    Posts
    42

    Excel IF AND in array formula

    If have the following array formula to determine the earliest time (Column S) when values in Column G equals G2.


    =MIN(IF($G$2:$G$716=G2,$S$2:$S$716))

    It works well and as expected. However I want to add an additional condition in the formula. That is where values in Column Q (date column) equal Q2.

    I have tried the following :

    =MIN(IF(AND($G$2:$G$716=G2, $Q$2:$Q$716 =Q2),$S$2:$S$716))

    The result is the minimum value in in column S and not for the conditions I was hoping for.

    Any help would be much appreciated.

  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,939

    Re: Excel IF AND in array formula

    Hard to say without any data to test on, but maybe this?
    =MIN(IF(($G$2:$G$716=G2)*($Q$2:$Q$716 =Q2),$S$2:$S$716))
    CSE
    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
    11-01-2010
    Location
    CapeTown
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Excel IF AND in array formula

    Thank you. That did the trick.
    Regards.

  4. #4
    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,939

    Re: Excel IF AND in array formula

    Good stuff

+ 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 summing inventory of a specific part (array formula) EXCEL 2007
    By fdirosa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-07-2018, 12:51 PM
  2. [SOLVED] Excel Formula: Index Array Formula, Skip Cells
    By clprdctn in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-04-2016, 09:48 AM
  3. Replies: 0
    Last Post: 03-19-2012, 07:32 PM
  4. Excel Array Formula
    By ziadAlsayed in forum Excel General
    Replies: 0
    Last Post: 02-26-2011, 10:04 PM
  5. [SOLVED] excel array formula
    By gordo in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 10-18-2005, 01:05 PM
  6. [SOLVED] Array Formula Excel Help [F1]
    By Ron Coderre in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  7. [SOLVED] Tricky array formula issue - Using array formula on one cell, then autofilling down a range
    By aspenbordr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2005, 11:05 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