+ Reply to Thread
Results 1 to 11 of 11

countif problem

  1. #1
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    countif problem

    Hey guys

    I have created a countif formula, however I need it to be case sensitive as its giving me incorrect results

    my query is, is there a formula which i can use to apply it to my countif formula ?

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: countif problem

    Try:

    =SUMPRODUCT(--EXACT(A1:A10,"Criteria"))

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: countif problem

    You need to use EXACT and it won't work with COUNTIF... but try:

    =SUMPRODUCT(--(EXACT(H14:H17,"a")))

    where you would be comparing H14:H17 to lower case "a". Adjust as necessary.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Re: countif problem

    Well this is the problem i am facing

    IF you go to the “camp user info” tab and look at column O and where it says for e.g. 2, and then look at column k, and select the copy the reference number.

    then go to “lead user info” tab, and “ctrl F” and paste that reference number it should find two reference numbers. However looking at the two reference numbers it found within the lead user info tab, they are identically the same expect the case reference number

    i am still learning with excel so sorry, if i am breaking this down for you guys . is it possible if you could try and apply your formula next to my column O on the camp user info tab

    i am trying to attach my excel file, however it wont attach. Do you guys have any other recommendations to help me ?

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: countif problem

    Reduce the file size or zip it and attach it.

  6. #6
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Re: countif problem

    i have zipped it, it just wont allow me to attach it

    hi, please find a screen print in word, hopefully this will explain it better !
    Attached Files Attached Files
    Last edited by masond3; 12-01-2011 at 10:11 AM.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: countif problem

    The zipped file has to be less than 9.77 MB.

    Try cutting it down... removing unnecessary sheets, and extras...

  8. #8
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Re: countif problem

    Hi i have attached a screen print in word, i hope that helps

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: countif problem

    I see in the formula in the attachment that your countif criteria is 'Lead User Info'!I:L... that is 4 columns. Do you really mean just 'Lead User Info'!I:I (one column)?

  10. #10
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Re: countif problem

    Hi

    The formula which I used should be basically saying look at “lead user info tab” and look at column I, then go back to tab “ camp user info tab” and look at column K. If it matches how many are there

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: countif problem

    So something like:

    =SUMPRODUCT(--(EXACT('Lead User Info'!I:I ,K4)))

    should work... but SUMPRODUCT doesn't like whole column references.. so it is better to limit it like:

    =SUMPRODUCT(--(EXACT('Lead User Info'!I$2:I$1000 ,K4)))

    adjust as necessary.

+ 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