+ Reply to Thread
Results 1 to 5 of 5

COUTIF maybe?

  1. #1
    Registered User
    Join Date
    05-29-2006
    Posts
    37

    COUTIF maybe?

    Hello all,

    I have been trying to think of variations of this function to accomplish what I am trying to. Obviously, I cant find the answer since I am coming here.

    So...

    I have data in columns A through Z. I want to know for every time a value in M is repeated, does the value in A have more than one variation.

    Situation 1: Since FirmA is the same for each ProductA, I don't care since there are no other permutations.

    A.....C.....M.....Z

    A.....FirmA.....ProductA_......Z
    A.....FirmA.....ProductA_......Z
    A.....FirmA.....ProductA_......Z


    Situation 2: In this example, since there is more than one Firm (FirmA and FirmB) for ProductB, I want the rows that have ProductB identified somehow.

    A.....C.....M.....Z
    A.....FirmA.....ProductB_......Z
    A.....FirmB.....ProductB_......Z
    A.....FirmB.....ProductB_......Z

    I hope I am clear on this. Any advice would be greatly appreciated.

    EJ

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650
    Hi This bit of code might do !
    I assumed your Data starts in Row (2) and that the column with the "Firms" names is column "A". If it is Column "C", change the code variable "Col" (At Top of Code) to "-10".
    Please Login or Register  to view this content.
    Regards Mick

  3. #3
    Registered User
    Join Date
    05-29-2006
    Posts
    37
    Excuse my ignorance but I get a debug error highlighting "End With".

    Should I be including anything else?

  4. #4
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650
    Hi, Please find attached a copy of my test sheet.
    Compare my layout to your own, to see what the problem might be !
    Click the Button to see the highlighting.
    Regards Mick
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-29-2006
    Posts
    37
    Thank you for your help. That is working great. I appreciate it.

    EJ

+ 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. alternative from Coutif to Sumproduct
    By djfatboyfats in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-04-2008, 09:20 AM
  2. About the mode function,it gives only one entry?
    By all4excel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-19-2007, 05:09 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