Percentage of Condition, Less One Element (PivotTable, SQL?)

DerekK

Board Regular
Joined
Jun 18, 2007
Messages
90
Office Version
  1. 2003 or older
Platform
  1. Windows
Good day,

I am trying to find out what percentage of individuals did not hit a particular condition on the same dates, particularly when one individual is removed from the equation. This sounds so simple but it's driving me mad trying to figure it out. I've tried both PivotTables and SQL but I'm getting nowhere.

SO. I have a bunch of dates, three individuals and two conditions. (I've simplified sensitive data here.) Some dates do not record data for all three individuals (might be three, might be two, might be one, might be none).

I can put this into a PivotTable and figure out what percentage of dates have no individuals who were recorded on that date, hit "Condition2." I've tried dropping "Condition" into the Columns section of a PivotTable, then using a COUNTIF formula. Fine. But I need to find the same figure whenever I put "Individual" in the Filters section and remove one of the individuals.

My data looks something like this:

<html>

<table>

<tr>

<th>Date</th>

<th>Individual</th>

<th>Condition</th>

</tr>

<tr>

<td>Date1</td>

<td>Individual1</td>

<td>Condition1</td>

</tr>

<td>Date1</td>

<td>Individual2</td>

<td>Condition1</td>

<tr>

<td>Date1</td>

<td>Individual3</td>

<td>Condition2</td>

</tr>

<tr>

<td>Date2</td>

<td>Individual1</td>

<td>Condition2</td>

</tr>

<tr>

<td>Date2</td>

<td>Individual2</td>

<td>Condition2</td>

</tr>

<tr>

<td>Date2</td>

<td>Individual3</td>

<td>Condition2</td>

</tr>

<tr>

<td>Date3</td>

<td>Individual2</td>

<td>Condition1</td>

</tr>

<tr>

<td>Date3</td>

<td>Individual3</td>

<td>Condition1</td>

</tr>

</table>

</html>

I hope this makes sense! And I hope you can help!

Thanks,



Derek
 
Last edited:

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,214,867
Messages
6,122,002
Members
449,059
Latest member
mtsheetz

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