In dit document staat de volledige uitleg van M&S blok 1 van jaar 2 Aviation. Dingen die besproken worden zijn bijvoorbeeld VLookup, Errors, Arrays, Loops, Variabelen, MsgBox, InputBox etc. Gewoon alles wat de afgelopen 8 weken besproken is. Er staan ook voorbeelden in, door middel van afbeeldingen...
M&S
Table of Contents
Week 1....................................................................................................................................1
Week 2....................................................................................................................................4
Message box -- Say hello....................................................................................................................5
Record a macro – Make me red..........................................................................................................5
2 phases of programming...................................................................................................................5
Steps to coding - Is a student passing or failing?................................................................................5
Histogram...........................................................................................................................................6
Week 3....................................................................................................................................6
Different types of data.......................................................................................................................7
Cube volume......................................................................................................................................7
Week 4 – Arrays and loops......................................................................................................7
Array maken:......................................................................................................................................7
Looping statements:...........................................................................................................................8
Week 5....................................................................................................................................8
Do until:.............................................................................................................................................8
Do while.............................................................................................................................................8
Week 6....................................................................................................................................9
Week 7 – Userform................................................................................................................10
Week 1
Index Om een waarde in een tabel te vinden.
=INDEX (range, column, row)
=INDEX (A1:C3, 3, 2)
Match Vinden waar een bepaalde waarde in de tabel staat.
=MATCH (value, range, 0)
The 0 means exact value
, Index + Match vinden hoeveel een bepaalde rij een paar columns verderop is.
=INDEX (range, MATCH (value, range, 0), column)
=INDEX(B5:D7, MATCH("Petra", A5:A7, 0), 2)
(Index range is alleen de waardes en match range is met maanden en
namen erbij)
Vlookup Om dingen in verticale richting te vinden
=VLOOKUP (opzoekwaarde, range, column, FALSE)
=VLOOKUP (G12, F5:H9, 3, FALSE)
If Als … geldt, dan pass, anders fail
=IF(Cell > < = waarde, “pass”, “fail”)
=IF(B20>=100.000, "aangenomen", "nee")
And Als … geldt EN … geldt, dan TRUE anders FALSE
=AND(Cell <>= waarde, Cell <>= waarde)
Count if Tel op als …
=COUNTIF (range, “Eis”)
=COUNTIF(K5:K12, ">18")
Sum if waardes optellen als …
=SUMIF(range, “eis”)
Average if gemiddelde uitrekenen als …
=AVERAGEIF(range, “eis”)
Trim verwijderd extra spaties
=TRIM(Cell)
=TRIM(A1)
Left, Mid, Right Geeft woorden in 1 cel apart vanaf links rechts of
midden
=LEFT(cell, aantal letters)
=LEFT(A1, 3)
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Anna2001. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.40. You're not tied to anything after your purchase.