Please help!

Bradders91

New Member
Joined
Mar 9, 2016
Messages
9
Hi

I was wondering if you are able to assist. I have a speadsheet which is pulling in country data and dates similar to the below but around 1000 entries with different combinations:
A1
A2
A3
Italy
31/03/2015
Complete
Mexico
31/03/2015
In progress
Italy
10/09/2015
In progress
UK
19/02/2016
In progress
India
19/02/2016
Not actioned
UK
15/03/2015
Not actioned
Greece
30/03/2016
Not actioned
Italy
30/05/2016
Complete
Greece
30/05/2016
Complete

<TBODY>
</TBODY>
</SPAN>
</SPAN>
I am looking to count the number of entries which are not located in various countries, have a date after a specific date and have a specific status. For example i want to find out how many transactions are not in India or Greece, which have a date later than 30/12/2015 and have a status of complete.

Please could you help writing the formula. I have tried multiple ways but seem to get stuck each time.

Many thanks

</SPAN>
</SPAN>
</SPAN>
</SPAN>
</SPAN>
</SPAN>

<TBODY>
</TBODY>
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Welcome to the forum!

How about:
Code:
=SUMPRODUCT(--(A1:A9<>"India"),--(A1:A9<>"Greece"),--(B1:B9>DATEVALUE("30/12/2015")),--(C1:C9="Complete"))

Notice how all the ranges are the same length - if they're not, it won't work properly.

Pete
 
Last edited:
Upvote 0
Brilliant many thanks!

Is there any way that the forumla could also count if the date is blank?

Apologies I forgot to mention that part
 
Upvote 0
This is one of my attempts but it does'nt seem to work;

=SUM(COUNTIFS('Q1&Q2 Progress'!K:K,{"*India*","<>*Greece*"},'Q1&Q2 Progress'!R:R,{">31/12/2015",""},'Q1&Q2 Progress'!W:W,"Complete"))
 
Upvote 0
This is one of my attempts but it does'nt seem to work;

=SUM(COUNTIFS('Q1&Q2 Progress'!K:K,{"*India*","<>*Greece*"},'Q1&Q2 Progress'!R:R,{">31/12/2015",""},'Q1&Q2 Progress'!W:W,"Complete"))

Sorry the forumla I am trying is actuallyas follows not as above: =SUM(COUNTIFS('Q1&Q2 Progress'!K:K,{"<>*India*","<>*Greece*"},'Q1&Q2 Progress'!R:R,{">31/12/2015",""},'Q1&Q2 Progress'!W:W,"Complete"))
 
Upvote 0
Italy
31/03/2015Completecol G
Mexico31/03/2015In progress
Italy10/09/2015In progressnot inafter datestatus
UK19/02/2016In progressrow 4Greece30/12/2015Complete
India19/02/2016Not actionedIndia
UK15/03/2015Not actioned
Greece30/03/2016Not actioned
Italy30/05/2016Complete
Greece30/05/2016Complete1
formula giving 1
=SUMPRODUCT(($A$1:$A$9<>G4)*($A$1:$A$9<>G5)*($B$1:$B$9>I4)*($C$1:$C$9=K4))
this is simple and pretty much self explanatory
you can change the search requirements in G4 G5 I4 K4
and the answer will be correct

<colgroup><col><col><col><col span="5"><col><col span="6"></colgroup><tbody>
</tbody>
 
Upvote 0
Here's a variation on mine where you might want to introduce an OR condition:
Code:
=SUMPRODUCT(--(A1:A9<>"India"),--(A1:A9<>"Greece"),--(B1:B9>DATEVALUE("30/12/2015")),--(C1:C9="Complete")+(C1:C9="Not Actioned"))
Here, the status is EITHER "Complete" OR "Not Actioned".

I use SUMPRODUCT as against COUNTIFS/SUMIFS purely because it took me ages to figure out all its various permutations and now I couldn't do without it, although I believe that COUNTIFS/SUMIFS are faster than SUMPRODUCT.

Pete
 
Last edited:
Upvote 0
This worked for me...

Excel 2010
ABCDE
1A1A2A3Your Answer:
2Italy3/31/2015Complete1
3Mexico3/31/2015In progress
4Italy9/10/2015In progress
5UK2/19/2016In progress
6India2/19/2016Not actioned
7UK3/15/2016Not actioned
8Greece3/30/2016Not actioned
9Italy5/30/2016Complete
10Greece5/30/2016Complete

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
E2=COUNTIFS(A2:A10,"<>" & "India",A2:A10,"<>" & "Greece",B2:B10,">" & DATEVALUE("12/31/2015"),C2:C10,"Complete")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,793
Messages
6,126,936
Members
449,349
Latest member
Omer Lutfu Neziroglu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top