Use below VBA code SUB for the 3 to 5 actions:
3) Calculate the sum of sales for rest of the months, this code will calculate sum for all columns from B till K and display in 17th row
Sub SumSales()
Dim columnsum As Integer
For i = 1 To 10
columnsum = 0
For j = 1 To 13
columnsum = columnsum +
ActiveWorkbook.Worksheets("Sales").Range("B4:K16").Cells(j,
i).Value
Next
Worksheets("Sales").Range("B17:K17").Cells(i) = columnsum
Next
End Sub
4) How many players from Miami heat, this code will apply filter in active sheet on column E for Miami Heat and display msgbox of count of players
Sub MiamiHeat()
With ActiveSheet
Set rnData = .UsedRange
With rnData
.AutoFilter Field:=5, Criteria1:="Miami Heat"
.Select
For Each rngarea In .SpecialCells(xlCellTypeVisible).Areas
lcount = lcount + rngarea.Rows.Count
Next
MsgBox "Autofilter " & lcount - 1 & " records"
End With
End With
End Sub
5) How many PointGaurds form atlantic division, this code will apply 2 filter criteria on active sheet on column F as Atlantic and column D as PG and display count of rows in messagebox
Sub AtlanticPG()
With ActiveSheet
Set rnData = .UsedRange
With rnData
.AutoFilter Field:=6, Criteria1:="Atlantic"
.AutoFilter Field:=4, Criteria1:="PG"
.Select
For Each rngarea In .SpecialCells(xlCellTypeVisible).Areas
lcount = lcount + rngarea.Rows.Count
Next
MsgBox "Autofilter " & lcount - 1 & " records"
End With
End With
End Sub
BAProject (C13-sale Data s Micosoft Excel Objects 1) Caleulate the sum of sales tor January, put ...
Is there a relationship between total team salary and team performance in a sport such as professional basketball? To answer this question we will examine the number of wins and total team payroll in a recent season for all the teams in the National Basketball Association (NBA). The data are in this Excel file. Question 1. Let the x-variable be the team payroll and let the y-variable be the team wins. Find the intercept b0 and slope b1 of the...
All teams have a goal to make the postseason playoffs. A basketball team thinks that it can make the playoffs next year if it wins 10 more games. How much should the basketball team increase its payroll if it wants to make the playoffs next year? Note: Use 2 decimal places. Your answer should be in units of $1 million; do NOT include a dollar sign in the answer; for example, if a team should increase its payroll by $5,250,000,...