+ Reply to Thread
Results 1 to 15 of 15

Count formula needed...urgent

  1. #1
    Registered User
    Join Date
    12-31-2011
    Location
    West Bengal
    MS-Off Ver
    Excel 2007
    Posts
    76

    Count formula needed...urgent

    Dear Friends,

    A formula needed for..

    D14=COUNTA(D7:D12)

    where in range D7:D12, I want to count all cells having data, except cell containing "VACCANT".

    Please give me a formula.

    Thanks in advance

    Senjuti
    Last edited by senjuti.sarkar; 03-09-2012 at 02:01 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Count formula needed...urgent

    Maybe:

    D14: =COUNTIFS(D7:D12<>"",D7:D12<>"VACCANT")


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    12-31-2011
    Location
    West Bengal
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Count formula needed...urgent

    Dear Friend,

    This formula...excel is not accepting...showing error...

    can u just alter ...and update the same?

  4. #4
    Registered User
    Join Date
    12-31-2011
    Location
    West Bengal
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Count formula needed...urgent

    Attachment ....
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-31-2011
    Location
    West Bengal
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Count formula needed...urgent

    please help me

  6. #6
    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: Count formula needed...urgent

    =COUNTIF(E5:E10,"<>"&"Vaccant")

    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.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Count formula needed...urgent

    Or just:

    =COUNTIF(E5:E10,"<>Vaccant")

    You're more likely to get a correct answer if you quote the correct cell references and/or formulae and/or post a sample workbook (as you can see)

    Regards, TMS

  8. #8
    Registered User
    Join Date
    12-31-2011
    Location
    West Bengal
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Count formula needed...urgent

    Thanks

    =COUNTIF(E5:E10,"<>"&"Vaccant")
    It works...

    Now I need something more to add in criteria..

    The range is same..

    If any body join after 15th of that perticular month, the name will not get counted.

    Attachment...
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    12-31-2011
    Location
    West Bengal
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Count formula needed...urgent

    PLease help..

  10. #10
    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: Count formula needed...urgent

    Please be a little more patient. Nobody is paid to provide the help here and most of us have our own work to do.

    Dom

  11. #11
    Registered User
    Join Date
    12-31-2011
    Location
    West Bengal
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Count formula needed...urgent

    Friend I didn't have any intention to disturb you all...I, myself was trying it from long time... may be for that i am eager to know...where I am doing mistakes...

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Count formula needed...urgent

    Maybe one way:

    =COUNTA(E5:E10)-COUNTIF(E5:E10,"VACCANT")-SUMPRODUCT(--(DAY(D5:D10)>15))

    Regards, TMS

  13. #13
    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: Count formula needed...urgent

    It's usually acceptable to bump a thread after not receiving a response for a day, I would say 12 hours at the very least.

    =SUMPRODUCT(--(D5:D10<E3+14),--(E5:E10<>"VACCANT"))

    OR

    =COUNTIFS(D5:D10,"<"&E3+14,E5:E10,"<>VACCANT")

    Not tested the last one.

    Dom

  14. #14
    Registered User
    Join Date
    12-31-2011
    Location
    West Bengal
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Count formula needed...urgent

    Thanks you friend your Formula...worked very well,

    =COUNTA(E5:E10)-COUNTIF(E5:E10,"VACCANT")-SUMPRODUCT(--(DAY(D5:D10)>15))

    Here instead of 15 can I put any cell address containing Date?
    because I want it for each month....

  15. #15
    Registered User
    Join Date
    12-31-2011
    Location
    West Bengal
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Count formula needed...urgent

    Thank you friends,
    Your formula worked...
    Thanks a lot...

+ 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