+ Reply to Thread
Results 1 to 3 of 3

Two conditions in an array IF statement

  1. #1
    Registered User
    Join Date
    07-07-2015
    Location
    England
    MS-Off Ver
    MS Office 2010
    Posts
    69

    Two conditions in an array IF statement

    Hi,

    I currently have an IF statement that selects certain data in a whole array of data but at the moment the equation filters the data based on one condition (Determinand Name (A1). I would like to adjust it so that it includes another statement, Location. I have tried to use IF(AND but that did not work. Any advice?

    Please Login or Register  to view this content.
    Ideally I would like it to be separated into locations i.e. location A and then all the results associated. Please see attachment FYI

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Help required for two conditions in an IF statement

    Here's one way:

    =IFERROR(INDEX(Data!A:A,SMALL(IF($A$1&"-"&$B$1=INDEX(Data!$C$2:$C$4740&"-"&Data!$B$2:$B$4740, 0),ROW(Data!$C$2:$C$4740)),ROWS(A$4:A4))),"")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: Help required for two conditions in an IF statement

    I have replicated what you already have with a Pivot Table (no formulas required).
    If you just want to see the results for just "A" then use the Location filter to just show results for A.
    Please see attached.
    Is this what you are after ?

    Regards

    peterrc
    Attached Files Attached Files

+ 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] IF Statement for 3 different conditions
    By Sgligori in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-17-2015, 03:49 PM
  2. Replies: 2
    Last Post: 07-09-2015, 04:25 PM
  3. If statement and countif statement in an array
    By jntydeman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-26-2011, 12:35 PM
  4. if statement with conditions
    By maacmaac in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2009, 08:38 PM
  5. [SOLVED] Conditions with IF statement
    By Jaydubs in forum Excel General
    Replies: 2
    Last Post: 06-26-2006, 12:50 PM
  6. Two conditions in one IF statement
    By shashi1515 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2006, 04:10 PM
  7. [SOLVED] Two conditions in IF statement
    By tushargarg729@yahoo.com in forum Excel General
    Replies: 3
    Last Post: 06-26-2005, 10:05 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