Nesting Formulas

A

Annie

Can anyone assist me. I am using this formula:
=COUNTA(IF($E$14:$E$25,"Pending Cost")*($F$14:$F$25=X), $G$14:$G$25) to count
a certain criteria based on if there is an "X" in the cell beside it. It has
only worked for one of my four criteria's, eventhough I've changed the
criteria (pending cost) to another, pending business case review. Can anyone
help me, please? I am using Excel 2003
 
S

Sandy Mann

If I understand you correctly try:

=SUMPRODUCT(($E$14:$E$25="Pending Cost")*($F$14:$F$25="X")*$G$14:$G$25)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
Replace @mailinator.com with @tiscali.co.uk
 
A

Annie

Sandy.. thanks for responding.. but I'm not using any numbers-- only text.
below is an example:
Status New Submission Comments
Pending Bus Case Review X Received revised forecast
Pending Cost
Pending Cost X
Pending Cost X

I'm looking for a formula to count the total number of New Submissions (X)
for each individual Status
 
S

Sandy Mann

In that case do you not simply want:

=SUMPRODUCT(($E$14:$E$25="Pending Cost")*($F$14:$F$25="X"))

To count the number of entries of "Pending Cost" with an X in the next cell.
--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
Replace @mailinator.com with @tiscali.co.uk
 
P

Pete_UK

Just modify Sandy's formula slightly:

=SUMPRODUCT(($E$14:$E$25="Pending Cost")*($F$14:$F$25="X"))

This assumes your status is listed in E14:E25 and New Submission is in
F14:F25 (taken from your original example), so adjust the references
to suit your data.

This will give you the count you require - don't be misled by the
function name "sumproduct".

Hope this helps.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top