I want to count the number of cells in column (AF) with a value of 0 (Zero) based on a specific value being in column (AC) ....."A", "Px" or"P"
Using Excel 2003 Have tried Countif, Dcount & other possibilities without success. HELP !!!!!!!!!!
I want to count the number of cells in column (AF) with a value of 0 (Zero) based on a specific value being in column (AC) ....."A", "Px" or"P"
Using Excel 2003 Have tried Countif, Dcount & other possibilities without success. HELP !!!!!!!!!!
Last edited by Ryanaj; 11-18-2012 at 09:12 AM.
In Excel 2007+ it's easy with SUMIFS or COUNTIFS (that's not the same as SUMIF or COUNTIF). But in Excel 2003 you're stuck with SUMPRODUCT to do this counting, and you can't reference whole columns.
So, setting a specific number of rows to check:
=SUMPRODUCT(--($AF$1:$AF$100=0), --($AC$1:$AC$100="A"))
=SUMPRODUCT(--($AF$1:$AF$100=0), --($AC$1:$AC$100="Px"))
=SUMPRODUCT(--($AF$1:$AF$100=0), --($AC$1:$AC$100="P"))
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
Hi,
Since you don't have Excel 2007 or later which has the more powerful COUNTIFS() - plural function you'll need to use the usual workaround of
=SUMPRODUCT((AF1:AF100=0)*(AC1:AC100="A"))
obviously changing the range and "A" as appropriate
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star icon below the post.
Great, I beter ask the obvious question ... Excell 2007 solution for the origional Thread ie countifs for AF =A, AC =0
Try
=COUNTIFS(AF:AF,"=0",AC:AC,"=A")
Hope this helps
A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
-Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
-To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
If you received helpful response, please remember to hit the * of that post
Perfect - Thank You
You are welcome
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks