curran_john46
New Member
- Joined
- Sep 27, 2006
- Messages
- 4
Hi,
I have been struggling to figure out a function to perform a specific task in excel. Might anyone have any pointers? I was looking at the percentage function but can't quite figure out how to use it for the scenario below. Perhaps there is another more suitable function. Below is what I am trying to do in my excel spreadsheet (very similar to calculating a simple batting average):
The fields D9 though D101 can be set to 'Y' or 'N.' Each 'Y' represents a successful transaction in our business application. Each 'N' represents a failed transaction in our business application. I want to calculate the success rate in percentages and show that success rate in D102.
My hope is to have the 92 fields between D9 and D101 prepopulated with 'Y' and have D102 showing a 100% success rate. And if I change any of the fields between D9 and D101 to 'N' then the success rate percentage in D102 would lower itself accordingly.
So, if D9 - D101 all show 'Y' then D102 = 100%. However, if 46 of the 92 fields between D9 - D101 are set to 'N' then D102 = 50.00%. Or if 45 of the 92 fields between D9 - D101 is set to 'N' then D102 = 48.91%. Or if two of the 92 fields between D9 - D101 is set to 'N' then D102 = 02.17%. You get the point now.
Can this work the way I intend in excel? Is there a function and formula that could help me here?
Thank you so much.
John
I have been struggling to figure out a function to perform a specific task in excel. Might anyone have any pointers? I was looking at the percentage function but can't quite figure out how to use it for the scenario below. Perhaps there is another more suitable function. Below is what I am trying to do in my excel spreadsheet (very similar to calculating a simple batting average):
The fields D9 though D101 can be set to 'Y' or 'N.' Each 'Y' represents a successful transaction in our business application. Each 'N' represents a failed transaction in our business application. I want to calculate the success rate in percentages and show that success rate in D102.
My hope is to have the 92 fields between D9 and D101 prepopulated with 'Y' and have D102 showing a 100% success rate. And if I change any of the fields between D9 and D101 to 'N' then the success rate percentage in D102 would lower itself accordingly.
So, if D9 - D101 all show 'Y' then D102 = 100%. However, if 46 of the 92 fields between D9 - D101 are set to 'N' then D102 = 50.00%. Or if 45 of the 92 fields between D9 - D101 is set to 'N' then D102 = 48.91%. Or if two of the 92 fields between D9 - D101 is set to 'N' then D102 = 02.17%. You get the point now.
Can this work the way I intend in excel? Is there a function and formula that could help me here?
Thank you so much.
John