+ Reply to Thread
Results 1 to 8 of 8

update "CountIF" formula

  1. #1
    Forum Contributor
    Join Date
    08-08-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    196

    update "CountIF" formula

    Hello,

    I would like to update the following formula below, so it takes into account "column C and B" to get the unique count.

    =COUNTIFS(Sheet1!$E:$E,"*"&Sheet4!E5&"*",Sheet1!$D:$D,"*"&Sheet4!$B6&"*")
    I have attached sample workbook, with sheet1 showing input data and sheet4 showing current and desired output.

    testing_EU.xlsm


    Any help would be very much appreciated.

    Thank you.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: update "CountIF" formula

    Hi missy22,

    Is this what you wanted, as per the attached WorkBook?
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Contributor
    Join Date
    08-08-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    196

    Re: update "CountIF" formula

    Thank you so much for your response.
    I really appreciate your your time and help, but I am sorry to inform, I am little confused regarding your solution.

    I tested out the formula on new data and its not picking up correct count for one of the values, which i have highlighted in the attachment below in sheet4.

    https://www.box.com/s/tyk3nwozm1hrx1wr7tpz

    any help regarding that, would be very helpful.

    thank you.

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: update "CountIF" formula

    Hi missy22,

    See the attached WorkBook.
    Attached Files Attached Files
    Last edited by Winon; 02-12-2013 at 10:51 AM. Reason: File would not upload.

  5. #5
    Forum Contributor
    Join Date
    08-08-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    196

    Re: update "CountIF" formula

    Thank you so much for response again, I am sorry to inform, your post does not have any attached workbook.

    thank you for your time and help.

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: update "CountIF" formula

    There you go now! Attached in Post #4

  7. #7
    Forum Contributor
    Join Date
    08-08-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    196

    Re: update "CountIF" formula

    Thank you so much for your response and time with this thread. I really appreciate your time and help.

    In your previous Workbook you show your Desired Output as Copied on the Left. From that I assumed that you wanted to count "RBS" and if the count of any other Letters were > 1, you wanted the result to be 1
    I apologies for the unclear information. The output is actually based on sheet1 input table, which counts how many time one particular name has one certain type, for example: there are 5 or rbs names with type abs and so on.

    My original formula below, counts every name and its type. however, i would like to update the formula, by adding a condition such as:
    if two or more rows from columns b and c are not duplicate then only extract one count for the name's type, otherwise if they are duplicate then extract all the count for the name's type.

    I would like to ask, if this task is possible to embed in a formula or would i need to create macro.

    I really appreciate your time and help with this problem.
    Many thanks

  8. #8
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: update "CountIF" formula

    if two or more rows from columns b and c are not duplicate then only extract one count for the name's type, otherwise if they are duplicate then extract all the count for the name's type.

    I would like to ask, if this task is possible to embed in a formula or would i need to create macro.
    Just to clarify, using our sample WorkBook, could you please show us what you consider as a duplicate or duplicates. Would it be both Columns B and C or any one of both?

    Checking both Columns B and C shows no duplicates at the moment.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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