+ Reply to Thread
Results 1 to 7 of 7

Index, Match of If, OR function?

  1. #1
    Registered User
    Join Date
    09-29-2018
    Location
    Windsor, ON
    MS-Off Ver
    2016
    Posts
    29

    Index, Match of If, OR function?

    I have been struggling trying to create a formula to return TEXT based on multiple criteria.

    I have 4 columns for dates titled “Promise Date”, “Delivery Date”, “Cancelled Date” and “Return Date (Columns E, F, G & H). In column “I” (titled “Delivery Status”) I wanted to return text based on:

    If only Promise Date entered then returns “Pending”

    If Promise Date and Delivery Date are entered, then returns “Received”

    If Promise Date and Cancelled Date are entered, then returns “Cancelled"

    If Promise Date, Delivery Date, and Return Date are entered then returns “Returned”

    If Columns E to H do not have any data, then Column I returns a blank cell


    Note: I typed in results I want in Column “I”

    See attached
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Index, Match of If, OR function?

    This should get you started:

    =IF(AND(E2<>"",COUNT(E2:H2)=1),"Pending",IF(AND(E2<>"",G2<>"",COUNT(E2:H2)=2),"Cancelled",""))

    You can nest the other IF statements you need between the second IF statement and the red section at the end. Make sure the number of IF statements is reflected with the same number of closing brackets at the end.
    Last edited by AliGW; 12-30-2018 at 10:27 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Index, Match of If, OR function?

    ...another take on it

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    09-29-2018
    Location
    Windsor, ON
    MS-Off Ver
    2016
    Posts
    29

    Re: Index, Match of If, OR function?

    Thank you very much, AliGW!!!!!!!!

    I really appreciate that you gave my a start point and explanation/direction for me to complete the formula. Here is my result:

    =IF(AND(E2<>"",COUNT(E2:H2)=1),"Pending",IF(AND(E2<>"",F2<>"",COUNT(E2:H2)=2),"Received",IF(AND(E2<>"",G2<>"",COUNT(E2:H2)=2),"Cancelled",IF(AND(E2<>"",H2<>"",COUNT(E2:H2)=3),"Returned",""))))

    This Forum and Members are Awesome!

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Index, Match of If, OR function?

    Well done! I always think it feels better, ultimately, when we solve the issue ourselves. I am glad the push was sufficient.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  6. #6
    Registered User
    Join Date
    09-29-2018
    Location
    Windsor, ON
    MS-Off Ver
    2016
    Posts
    29

    Re: Index, Match of If, OR function?

    Thank you for the quick reply, Richard!!!

    I tried the formula, but a window pops up stating "You've entered too few arguments for this function"

  7. #7
    Registered User
    Join Date
    09-29-2018
    Location
    Windsor, ON
    MS-Off Ver
    2016
    Posts
    29

    Re: Index, Match of If, OR function?

    Thank again, AliGW.

    Post set to "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. How to apply an Index.Match.Match function to all entries in a Listbox on a User Form
    By jason.drozd in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-25-2018, 01:54 AM
  2. Need help in Index, Match usage to match multiple criteria in sum function
    By Summer0830 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2017, 02:47 AM
  3. Problems applying INDEX-MATCH-MATCH function on other data
    By LennartB in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-13-2015, 05:33 AM
  4. function INDEX MATCH MATCH doesn´t work
    By leonelcd in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-31-2015, 11:36 AM
  5. [SOLVED] Stuck on Match function with #N/A; attempting to reverse Index/Match
    By Cappytano in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-10-2014, 06:39 PM
  6. Replies: 6
    Last Post: 03-17-2014, 08:10 PM
  7. Replies: 3
    Last Post: 06-17-2013, 12:37 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