Closed Thread
Results 1 to 11 of 11

If(And(Index(Match...

  1. #1
    Forum Contributor
    Join Date
    10-31-2012
    Location
    Norway
    MS-Off Ver
    Excel in Office 365
    Posts
    147

    If(And(Index(Match...

    Hei there,
    I have an if(index(match formula that I want to build upon. I want to add an extra conditions

    Please Login or Register  to view this content.

    I want to add that if ("D3") = "Yes", then the result should be ("B16"). If not, the result should be ("C16").

    I tried this, but it doesn't work:
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,165

    Re: If(And(Index(Match...

    IF(INDEX(Sheet1!$A$5:$A$500;MATCH($E3;Sheet1!$A$5:$A$500;0))<>"";IF($D$3="Yes";$B$16;$C$16);"")

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2405
    Posts
    25,023

    Re: If(And(Index(Match...

    Your English description of the logic you want is not rigorous, but here is what I think you want:

    =IF(INDEX(Sheet1!$A$5:$A$500;MATCH($E3;Sheet1!$A$5:$A$500;0))<>"";IF(D3="Yes";$B$16;$C$16);"")

    This is the logic used in that formula:
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,204

    Re: If(And(Index(Match...

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  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. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,525

    Re: If(And(Index(Match...

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    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.

  6. #6
    Forum Contributor
    Join Date
    10-31-2012
    Location
    Norway
    MS-Off Ver
    Excel in Office 365
    Posts
    147

    Re: If(And(Index(Match...

    Fluff13: Thank you very much! That worked perfectly

  7. #7
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,525

    Re: If(And(Index(Match...

    Are you deliberately ignoring the administrative note? Please acknowledge that you understand the rule on titles and will make a better effort next time.

  8. #8
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,525

    Re: If(And(Index(Match...

    You will need to update the thread title as requested if you wish to continue asking for help on this. Thank you for your co-operation.

  9. #9
    Forum Contributor
    Join Date
    10-31-2012
    Location
    Norway
    MS-Off Ver
    Excel in Office 365
    Posts
    147

    Re: If(And(Index(Match...

    I have been respectful in my communication. I expect people to do the same. Please do not answer me in a derogatory way.

    Thank you!

  10. #10
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,525

    Re: If(And(Index(Match...

    There is nothing derogatory in what I asked, and being respectful does not exempt you from the rules. You have continued to ignore the request to improve your thread title and instead opened a duplicate thread, which has now been closed.

    Update the title of THIS thread if you wish to continue to get help here.

    I will then clean up the thread.

    Thank you.
    Last edited by AliGW; 05-16-2021 at 12:46 PM. Reason: Typo

  11. #11
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,525

    Re: If(And(Index(Match...

    Giving negative rep to a moderator who is simply trying to enforce the rules you seem to think you have the right to ignore is not acceptable.

    I feel you have deliberately worked against my threads.
    You have worked against yourself: simply updating the thread title as requested was all you had to do.

    As you seem intent on NOT doing as you have been asked, I am closing this thread.

    If you do not like the rules here, then please feel free to find somewhere else to ask for help.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] INDEX+MATCH instead of VLOOKUP+MATCH, why is INDEX a better choice and how to re-write?
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 10:54 AM
  2. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  3. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  4. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  7. Replies: 3
    Last Post: 05-02-2013, 01:31 AM

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