+ Reply to Thread
Results 1 to 4 of 4

Conditional INDEX MATCH

  1. #1
    Registered User
    Join Date
    03-05-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    21

    Conditional INDEX MATCH

    Hi All

    Trying to solve a conditional issue with the attached spreadsheet.

    Basically I have 2 sheets. The first an orders sheet which shows all orders from companies with the date of the order, whether it is a repeat order, and whether it has been delivered. The second sheet a customer account sheet which shows the order history by customer. I have used the following formula =IFERROR(INDEX(Orders!$B$2:$B$23,MATCH(0,INDEX(COUNTIF($A$1:A1,Orders!$B$2:$B$23),,),)),"") to extract the companies from the orders sheet however if a company has had no previous order (i.e. a new customer) and has not recieved a delivery yet I do not want him added to the sheet.

    I have tried amending my formula in different ways but always encounter problems.

    Any help would be great (and leave my day almost complete!)

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Conditional INDEX MATCH

    Please see attached sheet.
    Attached Files Attached Files
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    03-05-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Conditional INDEX MATCH

    Hi AlKey

    This works great however as I'm learning at the moment could you explain the -1 in the following:

    =IFERROR(INDEX(Orders!$A$2:$A$23,SMALL(IF(Orders!$B$2:$B$23=$A2,IF(Orders!$C$2:$C$23="Y",IF(Orders!$D$2:$D$23="Y",ROW(Orders!$A$2:$A$23)-1))),COLUMNS($A$1:B1))),"")

    Is this to take out the first order in the list?

    Many thanks again.

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Conditional INDEX MATCH

    The ROW(Orders!$A$2:$A$23) returns the row number 2, however, when we index table the first row in it is 1. That's why there is -1.

    Please don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

+ 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. Conditional formatting using Index/Match
    By sj123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-14-2014, 03:19 PM
  2. VBA -- Conditional Index/Match
    By ccott23 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-17-2013, 10:08 AM
  3. Conditional Formatting with INDEX/MATCH
    By Shanster695 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-22-2013, 02:39 PM
  4. Conditional Formatting with Index/Match function
    By zhopa19 in forum Excel General
    Replies: 5
    Last Post: 10-04-2011, 04:57 AM
  5. Using Index Match and in a conditional Statement
    By vengy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-10-2007, 10:03 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