body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
line-height: 1.6;
color: #333;
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
.calculator-container {
background-color: #f9f9f9;
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 30px;
margin-bottom: 40px;
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.calc-section {
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 2px dashed #ddd;
}
.calc-section:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
h2.calc-title {
margin-top: 0;
color: #2c3e50;
font-size: 1.5rem;
border-left: 5px solid #27ae60;
padding-left: 10px;
}
.form-group {
margin-bottom: 15px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: 600;
color: #555;
}
input[type="number"] {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 16px;
box-sizing: border-box;
}
.btn-calc {
background-color: #27ae60;
color: white;
border: none;
padding: 12px 20px;
font-size: 16px;
border-radius: 4px;
cursor: pointer;
width: 100%;
font-weight: bold;
transition: background-color 0.3s;
}
.btn-calc:hover {
background-color: #219150;
}
.result-box {
margin-top: 20px;
padding: 15px;
background-color: #e8f5e9;
border: 1px solid #c8e6c9;
border-radius: 4px;
font-size: 1.2rem;
font-weight: bold;
color: #2e7d32;
text-align: center;
display: none;
}
.content-article h2 {
color: #2c3e50;
border-bottom: 2px solid #eee;
padding-bottom: 10px;
margin-top: 40px;
}
.content-article h3 {
color: #34495e;
margin-top: 25px;
}
.excel-code {
background-color: #f4f6f7;
padding: 15px;
border-left: 4px solid #3498db;
font-family: monospace;
font-size: 1.1em;
margin: 15px 0;
display: block;
overflow-x: auto;
}
.formula-box {
background-color: #fff3e0;
padding: 15px;
border: 1px solid #ffe0b2;
border-radius: 4px;
margin: 10px 0;
}
How to Calculate Strike Rate in Excel: The Complete Guide
Whether you are a cricket statistician, a coach, or a fan tracking player performance, calculating the strike rate is essential for analyzing the game's tempo. While the tool above provides instant calculations, knowing how to calculate strike rate in Excel allows you to manage large datasets for entire teams or tournaments efficiently.
1. Understanding Batting Strike Rate
For a batsman, the strike rate represents how quickly they score runs. It is defined as the average number of runs scored per 100 balls faced. A higher strike rate indicates a more aggressive batting style, which is crucial in limited-overs formats like T20.
Batting Formula: (Total Runs Scored ÷ Total Balls Faced) × 100
Excel Formula for Batting Strike Rate
To calculate this in Excel, assume Column A contains "Runs Scored" and Column B contains "Balls Faced".
- Enter the Runs in cell A2 (e.g., 50).
- Enter the Balls Faced in cell B2 (e.g., 35).
- In cell C2, enter the following formula:
=(A2/B2)*100
Note: If B2 is 0 (no balls faced), Excel will return a #DIV/0! error. You can wrap it in an IFERROR function: =IFERROR((A2/B2)*100, 0).
2. Understanding Bowling Strike Rate
For a bowler, the strike rate measures how frequently they take a wicket. It is defined as the average number of balls bowled for every wicket taken. Unlike batting, a lower strike rate is better for a bowler, as it means they take wickets more often.
Bowling Formula: Total Balls Bowled ÷ Total Wickets Taken
Excel Formula for Bowling Strike Rate
To calculate this in Excel, assume Column A contains "Balls Bowled" and Column B contains "Wickets Taken".
- Enter the Balls Bowled in cell A2. Remember to convert overs to balls (e.g., 4 overs = 24 balls).
- Enter the Wickets Taken in cell B2.
- In cell C2, enter the following formula:
=A2/B2
This will give you the number of balls required to take one wicket.
Example Calculations
- Batting: If a player scores 45 runs off 30 balls, the calculation is
(45 / 30) * 100 = 150.00. This is considered an excellent strike rate in T20 cricket.
- Bowling: If a bowler delivers 24 balls and takes 2 wickets, the calculation is
24 / 2 = 12.00. This means they take a wicket every 12 balls.
Tips for Formatting in Excel
When presenting these statistics in a spreadsheet:
- Select the Batting Strike Rate column and format the cells to "Number" with 2 decimal places for precision.
- Use Conditional Formatting to highlight high batting strike rates (Green) or low bowling strike rates (also Green) to spot top performers quickly.
function calculateBattingSR() {
var runs = document.getElementById('runsScored').value;
var balls = document.getElementById('ballsFaced').value;
var resultDiv = document.getElementById('battingResult');
// Validation
if (runs === "" || balls === "") {
resultDiv.style.display = "block";
resultDiv.style.color = "red";
resultDiv.style.backgroundColor = "#fadbd8";
resultDiv.style.borderColor = "#eb984e";
resultDiv.innerHTML = "Please enter both Runs and Balls Faced.";
return;
}
var runsNum = parseFloat(runs);
var ballsNum = parseFloat(balls);
if (ballsNum <= 0) {
resultDiv.style.display = "block";
resultDiv.style.color = "red";
resultDiv.style.backgroundColor = "#fadbd8";
resultDiv.style.borderColor = "#eb984e";
resultDiv.innerHTML = "Balls Faced must be greater than 0.";
return;
}
if (runsNum < 0) {
resultDiv.style.display = "block";
resultDiv.style.color = "red";
resultDiv.style.backgroundColor = "#fadbd8";
resultDiv.style.borderColor = "#eb984e";
resultDiv.innerHTML = "Runs cannot be negative.";
return;
}
// Calculation: (Runs / Balls) * 100
var strikeRate = (runsNum / ballsNum) * 100;
resultDiv.style.display = "block";
resultDiv.style.color = "#2e7d32";
resultDiv.style.backgroundColor = "#e8f5e9";
resultDiv.style.borderColor = "#c8e6c9";
resultDiv.innerHTML = "Batting Strike Rate: " + strikeRate.toFixed(2);
}
function calculateBowlingSR() {
var balls = document.getElementById('ballsBowled').value;
var wickets = document.getElementById('wicketsTaken').value;
var resultDiv = document.getElementById('bowlingResult');
// Validation
if (balls === "" || wickets === "") {
resultDiv.style.display = "block";
resultDiv.style.color = "red";
resultDiv.style.backgroundColor = "#fadbd8";
resultDiv.innerHTML = "Please enter both Balls Bowled and Wickets Taken.";
return;
}
var ballsNum = parseFloat(balls);
var wicketsNum = parseFloat(wickets);
if (ballsNum <= 0) {
resultDiv.style.display = "block";
resultDiv.style.color = "red";
resultDiv.style.backgroundColor = "#fadbd8";
resultDiv.innerHTML = "Balls Bowled must be greater than 0.";
return;
}
if (wicketsNum <= 0) {
resultDiv.style.display = "block";
resultDiv.style.color = "#c0392b";
resultDiv.style.backgroundColor = "#fdeea";
resultDiv.style.borderColor = "#fadbd8";
resultDiv.innerHTML = "Wickets must be greater than 0 to calculate a valid Strike Rate.";
// Note: In cricket stats, if wickets is 0, SR is usually undefined or noted as infinity.
return;
}
// Calculation: Balls / Wickets
var strikeRate = ballsNum / wicketsNum;
resultDiv.style.display = "block";
resultDiv.style.color = "#c0392b";
resultDiv.style.backgroundColor = "#fdeea";
resultDiv.style.borderColor = "#fadbd8";
resultDiv.innerHTML = "Bowling Strike Rate: " + strikeRate.toFixed(2);
}