+ Reply to Thread
Results 1 to 3 of 3

Adding a CountIF to a formula

  1. #1
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Adding a CountIF to a formula

    Morning,

    I'm using this formula:

    =COUNTIF('Data Sheet'!L:L, "yes")/COUNTA('Data Sheet'!L2:L225)

    Which works out what percentage of Column L on the Data Sheet has the value yes.

    What I now need is to check another column first, it has been suggested a COUNTIF formula. I've tried playing around with it and can't seem to get it to work, probably as I'm not sure where the all ( and , need to go

    I've ordered the Excel and Formulas for dummies books so hopefully I'll learn how to do it, rather than keep posting for formulas. Until it turns up any help with this formula would be appreciated.

    So, a formula that:

    before it uses =COUNTIF('Data Sheet'!L:L, "yes")/COUNTA('Data Sheet'!L2:L225) it will check column b on the data sheet to see if the value in A1 on the formulas sheet is present.

    Thanks for any help you can give.
    Last edited by Cmorgan; 06-01-2011 at 09:33 AM.

  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: Adding a CountIF to a formula

    Have a look at COUNTIFS, you can specify multiple conditions for that.

    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 Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: Adding a CountIF to a formula

    Yeah, I've had a look through the COUNTIF sections but couldn't find anything that would help (or I could understand) enough - my formulas kept coming up as not working.

+ 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