Introduction to Loops

1 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€88.14
List Price:  €123.40
You save:  €35.26
£75.14
List Price:  £105.20
You save:  £30.06
CA$137.96
List Price:  CA$193.15
You save:  CA$55.19
A$154.22
List Price:  A$215.92
You save:  A$61.69
S$128.89
List Price:  S$180.45
You save:  S$51.56
HK$774.92
List Price:  HK$1,084.92
You save:  HK$310
CHF 82.31
List Price:  CHF 115.24
You save:  CHF 32.92
NOK kr1,037.41
List Price:  NOK kr1,452.42
You save:  NOK kr415
DKK kr657.69
List Price:  DKK kr920.79
You save:  DKK kr263.10
NZ$167.20
List Price:  NZ$234.08
You save:  NZ$66.88
د.إ367.26
List Price:  د.إ514.18
You save:  د.إ146.92
৳12,188.92
List Price:  ৳17,064.98
You save:  ৳4,876.05
₹8,430.75
List Price:  ₹11,803.39
You save:  ₹3,372.63
RM420.45
List Price:  RM588.65
You save:  RM168.19
₦160,701.92
List Price:  ₦224,989.12
You save:  ₦64,287.20
₨28,187.10
List Price:  ₨39,463.07
You save:  ₨11,275.97
฿3,285.82
List Price:  ฿4,600.28
You save:  ฿1,314.46
₺3,858.73
List Price:  ₺5,402.39
You save:  ₺1,543.65
B$572.49
List Price:  B$801.51
You save:  B$229.02
R1,830.33
List Price:  R2,562.54
You save:  R732.20
Лв172.60
List Price:  Лв241.65
You save:  Лв69.04
₩137,221.40
List Price:  ₩192,115.45
You save:  ₩54,894.05
₪361.56
List Price:  ₪506.20
You save:  ₪144.64
₱5,569.24
List Price:  ₱7,797.16
You save:  ₱2,227.92
¥14,394.31
List Price:  ¥20,152.61
You save:  ¥5,758.30
MX$1,958.87
List Price:  MX$2,742.50
You save:  MX$783.63
QR364.06
List Price:  QR509.70
You save:  QR145.64
P1,361.73
List Price:  P1,906.48
You save:  P544.74
KSh12,923.70
List Price:  KSh18,093.70
You save:  KSh5,170
E£5,067.77
List Price:  E£7,095.08
You save:  E£2,027.31
ብር13,459.34
List Price:  ብር18,843.61
You save:  ብር5,384.27
Kz91,190.88
List Price:  Kz127,670.88
You save:  Kz36,480
CLP$94,946.49
List Price:  CLP$132,928.89
You save:  CLP$37,982.39
CN¥729.42
List Price:  CN¥1,021.22
You save:  CN¥291.80
RD$5,902.61
List Price:  RD$8,263.89
You save:  RD$2,361.28
DA13,265.47
List Price:  DA18,572.19
You save:  DA5,306.72
FJ$224.85
List Price:  FJ$314.80
You save:  FJ$89.95
Q770.30
List Price:  Q1,078.46
You save:  Q308.15
GY$20,924.33
List Price:  GY$29,294.90
You save:  GY$8,370.57
ISK kr12,893.71
List Price:  ISK kr18,051.71
You save:  ISK kr5,158
DH926.13
List Price:  DH1,296.62
You save:  DH370.49
L1,709.82
List Price:  L2,393.82
You save:  L683.99
ден5,429.87
List Price:  ден7,602.03
You save:  ден2,172.16
MOP$801.19
List Price:  MOP$1,121.71
You save:  MOP$320.51
N$1,867.19
List Price:  N$2,614.14
You save:  N$746.95
C$3,690.56
List Price:  C$5,166.94
You save:  C$1,476.37
रु13,561.38
List Price:  रु18,986.48
You save:  रु5,425.09
S/367.72
List Price:  S/514.83
You save:  S/147.10
K405.78
List Price:  K568.11
You save:  K162.33
SAR375
List Price:  SAR525.01
You save:  SAR150.01
ZK2,781.79
List Price:  ZK3,894.63
You save:  ZK1,112.83
L438.89
List Price:  L614.47
You save:  L175.57
Kč2,194.75
List Price:  Kč3,072.73
You save:  Kč877.98
Ft35,638.35
List Price:  Ft49,895.12
You save:  Ft14,256.76
SEK kr961.98
List Price:  SEK kr1,346.81
You save:  SEK kr384.83
ARS$117,260.18
List Price:  ARS$164,168.94
You save:  ARS$46,908.76
Bs693.19
List Price:  Bs970.49
You save:  Bs277.30
COP$425,562.21
List Price:  COP$595,804.13
You save:  COP$170,241.91
₡50,658.12
List Price:  ₡70,923.39
You save:  ₡20,265.27
L2,602.65
List Price:  L3,643.81
You save:  L1,041.16
₲803,267.16
List Price:  ₲1,124,606.16
You save:  ₲321,338.99
$U4,205.86
List Price:  $U5,888.38
You save:  $U1,682.51
zł377.04
List Price:  zł527.88
You save:  zł150.83
Already have an account? Log In

Transcript

Okay, guys, so, so far in this course, we've been seeing code that would be executed only once. But what if we need to repeat our code repeat executing our code over and over again, that's when we need to use a loop. And a loop is basically a way for you to execute your code over and over again. But we're not gonna go through the code over and over again forever, there's going to be a point when we would need to stop executing our code, or else our macro will go through an endless loop and we'll never stop, right. So how you stop executing the code is determined by either the number of times that you've asked Excel to repeat the code. So if you ask Excel to repeat the code for 10 times, so Excel will stop executing the code after the 10th time, right?

Or you could ask Excel to keep on repeating the code until a certain condition is met, and when a certain condition is met. That's when Excel stops repeating the code that's called like exiting the loop. And we'll see how to do that. So that was a quick introduction to loops. It's a way of repeating some code over and over again, it saves a lot of time. It adds a lot of power to your code, and we will see how useful loops are on the upcoming videos.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.