Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
6/4/2017 5:33:14 PM EDT
Normally I'm a learn as you go type, but this has got me stumped.  Countifs maybe?  I want to take this data:



And get this output:




Count is the total# of transactions for that day, Count Prevented is the number canceled, and $Prevented is the value of the transactions canceled.
6/4/2017 5:37:57 PM EDT
[#1]
The short answer is to use Countifs, and Sumifs.  

Do you need the exact formulas, or can you figure it out from there?

Edit:  Here are my formulas:

=COUNTIFS(D:D,M5,C:C,"Cancel")

=SUMIFS(I:I,D:D,M5,C:C,"Cancel")

Both my formulas say M5.  That is where it is looking up the date.  So the second table would have to have the date field as the lookup value in M5. (your output table cell A2)

Just modify that bit to suit your needs, or change the formulas a bit and put the lookup on a new sheet.  That makes more sense, but I didn't want to complicate the formals.
6/4/2017 5:41:03 PM EDT
[#2]
Quote History
Quoted:
The short answer is to use Countifs, and Sumifs.  

Do you need the exact formulas, or can you figure it out from there?
View Quote
This is your answer.  Just type the beginning of the formula in (e.g. countif) and excel will give you guidance from there.
6/4/2017 5:42:34 PM EDT
[#3]
Quote History
Quoted:
The short answer is to use Countifs, and Sumifs.  

Do you need the exact formulas, or can you figure it out from there?
View Quote
I can probably figure it out from there. Thanks.
6/4/2017 5:43:57 PM EDT
[#4]
Quote History
Quoted:
I can probably figure it out from there. Thanks.
View Quote
Cool.  Try it on your own, then look at the edited post, and see if that helps a bit more.
6/4/2017 5:47:13 PM EDT
[#5]
Use a pivot table
6/4/2017 6:17:28 PM EDT
[#6]
Quote History
Quoted:
Use a pivot table
View Quote
I looked into that.  I couldn't figure out how to get a count of the # of transactions in a day.
6/4/2017 6:25:22 PM EDT
[#7]
If you paste all that raw data from the first screenshot into a post I can copy into Excel I can help... I'm way too lazy to re-type all that

Also where is the raw data maintained?  Do you just enter it all manually into that one Excel spreadsheet or is that data exported into Excel from another system?  Depending how the data is stored could dictate which technique, pivot table vs using formulas, will be easier going forward.
6/4/2017 8:17:33 PM EDT
[#8]
Quote History
Quoted:
Cool.  Try it on your own, then look at the edited post, and see if that helps a bit more.
View Quote
Thanks for your suggestion.  Got me off on the right track.  After 8 or 9 consecutive Countifs and Sumifs per cell (there's several variations of "cancel") I got what I needed.
6/4/2017 8:20:39 PM EDT
[#9]
In the pivot table you can right click on the dates, group by day, then under day properties choose to sum.

PM the file to me, I'll knock it out, you can see the methods for next time.
6/4/2017 8:21:45 PM EDT
[#10]
Quote History
Quoted:
I looked into that.  I couldn't figure out how to get a count of the # of transactions in a day.
View Quote View All Quotes
View All Quotes
Quote History
Quoted:
Quoted:
Use a pivot table
I looked into that.  I couldn't figure out how to get a count of the # of transactions in a day.
Create a field called "count" with every record getting a value of 1.  Sum "count" in addition to the dollars with the dates being one of the axes.
6/4/2017 9:22:43 PM EDT
[#11]
Easy peasy pivot table...

Here's how...

1. Insert a column to the right of the Resolution column and name it Prevented (name should be in cell D1)
2. Paste the following formula into cell D2 in the column (you of course know that the cell references will change for each column). Copy it to all of the other cells in D.

=IF(C2="Cancel",J2,FALSE)

3. Insert a pivot table

Rows = Established Date
Values [1] = Count on Analyst column
Values [2] = Count Numbers on Prevented column
Values [3] = Sum on Prevented column
6/5/2017 9:16:47 AM EDT
[#12]
Quote History
Quoted:
Easy peasy pivot table...

Here's how...

1. Insert a column to the right of the Resolution column and name it Prevented (name should be in cell D1)
2. Paste the following formula into cell D2 in the column (you of course know that the cell references will change for each column). Copy it to all of the other cells in D.

=IF(C2="Cancel",J2,FALSE)

3. Insert a pivot table

Rows = Established Date
Values [1] = Count on Analyst column
Values [2] = Count Numbers on Prevented column
Values [3] = Sum on Prevented column
View Quote
Exactly