Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The file Count Large.xlsm has quantities sold for 1 0 0 0 products for each of 6 0 months, for a total of 6 0

The file Count Large.xlsm has quantities sold for 1000 products for each of
60 months, for a total of 60,000 values. The following code courts the number
of these that are greater than 100. Check how long it takes to do this by inserting
Timer functions appropriately in the code and displaying the clapsed time in a
message box.
Sub CountLarge0
Dim cell As Range, nLarge As Long
For Each cell In Range("Sales")
If cell.Value >100 Then nLarge = nLarge +1
Next
MsgBox nLarge & " cells in the Sales range have a quantity larger than 100.",
vbinformation
End Sub

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions