Count in MSExcel

gkbabu4u

New Member
Joined
Jul 15, 2015
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hi Team,

I have a dataset with the below format.

acct,date,resp-code
1234,0102,00
1234,0102,00
1234,0102,01
1234,0102,01
1234,0102,00
2341,0102,02

looking for the output in the below format.

acct,date,resp-code,count,SuccessRate
1234,0102,00,03
1234,0102,00,03
1234,0102,01,02
1234,0102,01,02
1234,0102,00,03
2341,0102,02,01,NeverSuccess1

Note:- Pivot should not be used.

SuccessRate to be mentioned as "NeverSuccess"with the transaction count if it does not have a respcode of 00 anytime.

Appreciate you help!!

Thanks in Advance.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Count should be calculated with combination of acct & resp-code

acct & resp-code are of fixed length.
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Also, with the way that you have tried to present sample data, we cannot tell what is in what cells. Using the following would greatly help users to understand what you have, where it is and what you are trying to achieve.
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0

Forum statistics

Threads
1,224,311
Messages
6,177,810
Members
452,806
Latest member
Workerl3ee

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