+ Reply to Thread
Results 1 to 7 of 7

Do you have a better Excel formula that doesn't break my computer? Index & Match & CountIF

  1. #1
    Registered User
    Join Date
    11-23-2020
    Location
    Jordan
    MS-Off Ver
    Office 365
    Posts
    3

    Question Do you have a better Excel formula that doesn't break my computer? Index & Match & CountIF

    Hello beautiful community.

    I have a formula that uses INDEX and MATCH with Multiple Criteria, one of them is Countif.

    A B C D E
    1 Reference Amount Type Lookup This Result
    2 X1 2000 Masters 2000 X1
    3 X2 2000 Masters 2000 X2
    4 X3 2000 Mast 2000 X3
    5 X4 1000 Mast 1200 X6
    6 X5 1000 Mast 1000 X4
    7 X6 1200 Mast 1000 X5

    The formula in Column E is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I added the COUNTIF so that I can capture the second and third values of a match and index and it is working perfectly. But after adding COUNTIF the computer went wild (of course on bigger tables)

    Do you know any better formula that will provide the same results?

    Excel.png
    Last edited by ababneh; 11-23-2020 at 04:29 PM.

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    2,003

    Re: Do you have a better Excel formula that doesn't break my computer? Index & Match & Cou

    E2=IFERROR(INDEX($A$2:$A$100,AGGREGATE(15,6,ROW($A$2:$A$100)-ROW($A$2)+1/($B$2:$B$100=$D2),COUNTIF($D$2:D2,D2))),"")


    copy down

  3. #3
    Registered User
    Join Date
    11-23-2020
    Location
    Jordan
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Do you have a better Excel formula that doesn't break my computer? Index & Match & Cou

    That amazing!

    But how can I add the two other criterias?

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

  4. #4
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    2,003

    Re: Do you have a better Excel formula that doesn't break my computer? Index & Match & Cou

    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  5. #5
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    2,003

    Re: Do you have a better Excel formula that doesn't break my computer? Index & Match & Cou

    Try

    E2=IFERROR(INDEX($A$2:$A$100,AGGREGATE(15,6,ROW($A$2:$A$100)-ROW($A$2)+1/($B$2:$B$100=$D2)/($C$2:$C$100<>"Bachelors")/(LEFT($C$2:$C$100,4)<>"Bach"),COUNTIF($D$2:D2,D2))),"")

    Copy down

  6. #6
    Registered User
    Join Date
    11-23-2020
    Location
    Jordan
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Do you have a better Excel formula that doesn't break my computer? Index & Match & Cou

    It has been solved!

    Many thanks again

    You are amazing.
    Last edited by ababneh; 11-23-2020 at 04:29 PM.

  7. #7
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    2,003

    Re: Do you have a better Excel formula that doesn't break my computer? Index & Match & Cou

    You are welcome

+ 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] INDEX & MATCH Formula Doesn't Work
    By zanshin777 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-25-2020, 02:51 PM
  2. Replies: 4
    Last Post: 11-04-2018, 03:17 PM
  3. [SOLVED] Index Match Formula doesn't recognize output from Right Formula as lookup value.
    By GoGators in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-10-2015, 11:33 AM
  4. [SOLVED] INDEX/MATCH formula doesn't like blank cells.
    By Big.Moe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-07-2015, 01:40 PM
  5. Need help with countif/index/match formula
    By erich1020 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-22-2014, 02:54 PM
  6. Index Match Match Formula DOESN'T WORK WITH TABLES/TABLE NAMES ??
    By Underling in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2014, 09:01 PM
  7. Index Match formula doesn't seem to be working
    By ortmandj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-17-2013, 08:04 PM

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