+ Reply to Thread
Results 1 to 18 of 18

Countif and match error on formula

  1. #1
    Registered User
    Join Date
    06-07-2018
    Location
    Dublin
    MS-Off Ver
    2016
    Posts
    13

    Countif and match error on formula

    Hi All,

    I would appreciate your assistance with the following problem. Please see attached excel spread sheet with the data.


    Task: I would like to create a formula that allows me to select individual members based on specific criteria as follows: members with largest account balance(cell b) but the formula would specifically exclude members who have been selected in previous selection(Column A). This would mean if one member has been selected in my previous selection, he would be skipped this time and the next member, is selected instead.


    I have attempted to use previous formula created by my co-worker but it keeps coming up with a error and i'm not sure where i'm going wrong with it. For reference, i included the formula in the spreadsheet for your review. I would appreciate if you could review it and see where is the issue in creating it?

    Any form of assistance or direction is greatly appreciated!

    Cheers!
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Countif and match error on formula

    It would be better to see the desired results (which you can enter manually) rather than the non-working formula.

  3. #3
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Countif and match error on formula

    Test the array formula. Drag down.
    Please Login or Register  to view this content.
    Regards.

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Countif and match error on formula

    Quote Originally Posted by Jonces View Post
    the formula would specifically exclude members who have been selected in previous selection(Column A). This would mean if one member has been selected in my previous selection, he would be skipped this time and the next member, is selected instead.
    In your table, it appears as if every member is included in the 'Previous selection', so everyone should be excluded and the 'New selection' should be empty

  5. #5
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Countif and match error on formula

    It The best will be:
    Quote Originally Posted by 63falcondude
    It would be better to see the desired results (which you can enter manually) rather than the non-working formula.
    Regards.

  6. #6
    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,869

    Re: Countif and match error on formula

    Maras - what does your last post mean? Please explain.
    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.

  7. #7
    Registered User
    Join Date
    06-07-2018
    Location
    Dublin
    MS-Off Ver
    2016
    Posts
    13

    Re: Countif and match error on formula

    I've attached updated version of the problem that includes the outcome desired.

  8. #8
    Registered User
    Join Date
    06-07-2018
    Location
    Dublin
    MS-Off Ver
    2016
    Posts
    13

    Re: Countif and match error on formula

    This doesn't appear to be working in my excel, it shows an error at $B$41;SMALL, and $B$41);"";ROW

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Countif and match error on formula

    That formula is in the wrong format, you would need to change the semicolons to commas.

    Your second example is not showing up, I think you might have uploaded it but not attached it.

  10. #10
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Countif and match error on formula

    Jonces, sorry. Replace ';' to ','
    Formula table
    Please Login or Register  to view this content.
    Regards.

  11. #11
    Registered User
    Join Date
    06-07-2018
    Location
    Dublin
    MS-Off Ver
    2016
    Posts
    13

    Re: Countif and match error on formula

    Oh, i missed it! please see attached now.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    06-07-2018
    Location
    Dublin
    MS-Off Ver
    2016
    Posts
    13

    Re: Countif and match error on formula

    Quote Originally Posted by maras_mak View Post
    Jonces, sorry. Replace ';' to ','
    Formula table
    Please Login or Register  to view this content.
    Regards.
    It doesn't seem to work, it shows up with an error - see attached
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Countif and match error on formula

    Try this one in A44 and fill down, Array confirmed with Shift Ctrl Enter

    =INDEX($B$2:$B$41,MATCH(0,COUNTIF($A$2:A43,$B$2:$B$41),0))

  14. #14
    Registered User
    Join Date
    06-07-2018
    Location
    Dublin
    MS-Off Ver
    2016
    Posts
    13

    Re: Countif and match error on formula

    Quote Originally Posted by jason.b75 View Post
    Try this one in A44 and fill down, Array confirmed with Shift Ctrl Enter

    =INDEX($B$2:$B$41,MATCH(0,COUNTIF($A$2:A43,$B$2:$B$41),0))
    Thanks Jason,

    It works, thanks!

    If you have a chance, would you please explain how this works?

    If not ill try to find out it my self!

    Cheers!!!!!!!1

  15. #15
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Countif and match error on formula

    For each balance listed in column B, it counts the occurences in column A above the row holding the formula, and looks for the firstone with a count of 0.

    If you follow through the steps of the formula using the evaluation tool with this in mind it will probably be easier to follow.

    As a thought, if it might be a potential problem. If the same balance appears twice in column B, it will only ever appear once in column A.

    edit:- If you do need duplicate entries to be considered as individual then try maras formula instead. That will duplicate entries if they appear twice in column B, but only if the first match is in the new selection. A single match in the previous selection will still cause it to be omitted.
    Last edited by jason.b75; 07-12-2018 at 04:09 PM.

  16. #16
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Countif and match error on formula

    Hi Jonces,
    my Array must be confirmed with Shift Ctrl Enter and then works well.
    Regards.

  17. #17
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Countif and match error on formula

    Hi Jonces, Array must be confirmed with Ctrl Shift Enter and then works well.
    Regards.

  18. #18
    Registered User
    Join Date
    06-07-2018
    Location
    Dublin
    MS-Off Ver
    2016
    Posts
    13

    Re: Countif and match error on formula

    Thank you for your help guys, will have to learn the formula and the set up!

+ 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] Countif Match Formula
    By pchugh in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-21-2018, 01:53 AM
  2. [SOLVED] Index match formula with countif ?
    By gaftalik in forum Excel General
    Replies: 12
    Last Post: 04-08-2015, 06:03 AM
  3. Need help with countif/index/match formula
    By erich1020 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-22-2014, 02:54 PM
  4. [SOLVED] INDEX Match with a countif formula
    By namluke in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-25-2014, 06:32 PM
  5. [SOLVED] countif, plus match or index formula
    By justme1052 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-14-2013, 01:55 PM
  6. [SOLVED] Match with countif formula
    By Spherous in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-22-2013, 12:45 AM
  7. countif + match formula
    By jw01 in forum Excel General
    Replies: 23
    Last Post: 03-07-2011, 04:28 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