Doorgaan naar hoofdcontent

Excel: Some Reflections on Matrices in Names based on Text, Used in Graphs

Data:

A1:D12 filled with jan-dec:

jan
jan
jan
jan
feb
feb
feb
feb
mar
mar
mar
mar
apr
apr
apr
apr
may
may
may
may
jun
jun
jun
jun
jul
jul
jul
jul
aug
aug
aug
aug
sep
sep
sep
sep
oct
oct
oct
oct
nov
nov
nov
nov
dec
dec
dec
dec

Example A

AllText =A1:D12 &""

Adding &"" changes the whole name into one continuous array, reading from left to right and from top to bottom. We can use this in a graph (see Example A). We can not read the elements using the INDEX function like this:

=INDEX(AllText;13)

The INDEX does not see this as a continuous array.

We still could use:

=INDEX(AllText;4;3)

But there is nothing special about that.

Example B

ColumnText1 =A1:A12
ColumnText 2 =D1:D12

ColumnText Total = ColumnText 1: ColumnText 2

This name refers to the individual names including the columns between the individual names.

ColumnText Total = ColumnText 1: ColumnText 2 &""

Adding &""  changes the range into one continuous range, identical to AllText.

Example C

ColumnText Combi = ColumnText 1; ColumnText 2

This is automatically a continuous range without adding &"". We can use this in a graph but not as validation to a list.

Example D

With new data from A64:M76:

jan
feb
mar
apr
may
jun
jul
aug
sep
oct
nov
dec
jan
jan-jan
jan-feb
jan-mar
jan-apr
jan-may
jan-jun
jan-jul
jan-aug
jan-sep
jan-oct
jan-nov
jan-dec
feb
feb-jan
feb-feb
feb-mar
feb-apr
feb-may
feb-jun
feb-jul
feb-aug
feb-sep
feb-oct
feb-nov
feb-dec
mar
mar-jan
mar-feb
mar-mar
mar-apr
mar-may
mar-jun
mar-jul
mar-aug
mar-sep
mar-oct
mar-nov
mar-dec
apr
apr-jan
apr-feb
apr-mar
apr-apr
apr-may
apr-jun
apr-jul
apr-aug
apr-sep
apr-oct
apr-nov
apr-dec
may
may-jan
may-feb
may-mar
may-apr
may-may
may-jun
may-jul
may-aug
may-sep
may-oct
may-nov
may-dec
jun
jun-jan
jun-feb
jun-mar
jun-apr
jun-may
jun-jun
jun-jul
jun-aug
jun-sep
jun-oct
jun-nov
jun-dec
jul
jul-jan
jul-feb
jul-mar
jul-apr
jul-may
jul-jun
jul-jul
jul-aug
jul-sep
jul-oct
jul-nov
jul-dec
aug
aug-jan
aug-feb
aug-mar
aug-apr
aug-may
aug-jun
aug-jul
aug-aug
aug-sep
aug-oct
aug-nov
aug-dec
sep
sep-jan
sep-feb
sep-mar
sep-apr
sep-may
sep-jun
sep-jul
sep-aug
sep-sep
sep-oct
sep-nov
sep-dec
oct
oct-jan
oct-feb
oct-mar
oct-apr
oct-may
oct-jun
oct-jul
oct-aug
oct-sep
oct-oct
oct-nov
oct-dec
nov
nov-jan
nov-feb
nov-mar
nov-apr
nov-may
nov-jun
nov-jul
nov-aug
nov-sep
nov-oct
nov-nov
nov-dec
dec
dec-jan
dec-feb
dec-mar
dec-apr
dec-may
dec-jun
dec-jul
dec-aug
dec-sep
dec-oct
dec-nov
dec-dec

Ranges = All!$A$65:$A$76&"-"& All!$B$64:$M$64

From B65:M76 I filled in the matrix formula:

{=Ranges}


You can download the file NamesText.zip through this link:

Reacties

Populaire posts van deze blog

Excel: VBA script om wachtwoord te verwijderen

Af en toe krijg ik een vraag om een wachtwoord van een Excel blad te halen. Doodsimpel met VBA. Hier een script dat ik gebruik: Sub WachtwoordCrack()     Dim a As Integer, b As Integer, c As Integer, d As Integer, _     e As Integer, f As Integer, g As Integer, h As Integer, _  I As Integer, j As Integer, k, m As Integer     Dim begin As Date, eind As Date     Dim duur As String     Dim objSheet As Worksheet     begin = TimeValue(Time)     On Error Resume Next     For Each objSheet In Application.Worksheets         For a = 65 To 66: For b = 65 To 66: For c = 65 To 66             For d = 65 To 66: For e = 65 To 66: For f = 65 To 66                 For g = 65 To 66: For h = 65 To 66: For I = 65 To 66                     For j = 65 To 66: For k = 65 To...

Excel: gegevenslabel alleen bij de laatste waarde in een grafiek

Creatief met Corona Bij het maken van een grafiek over de voortschrijdende Corona cijfers in Nederland liep ik tegen een probleem aan. Als je bij een reeks gegevens in een grafiek de gegevenslabels aan zet, krijg je die labels bij elke waarde. Ik wilde dit label alleen bij de laatste waarde tonen. Nu kun je natuurlijk alle andere gegevenslabels afzonderlijk wissen, maar dat is een hoop werk. Op zoek naar een andere manier dus. De cijfers datum aantal 1-3-2020 3 2-3-2020 8 3-3-2020 5 4-3-2020 15 5-3-2020 44 6-3-2020 46 7-3-2020 60 8-3-2020 76 9-3-2020 57 10-3-2020 61 11-3-2020 121 12-3-2020 111 13-3-2020 190 14-3-2020 155 15-3-2020 176 16-3-2020 278 17-3-2020 292 18-3-2020 250 19-3-2020 20-3-2020 21-3-2020 22-3-2020 23-3-2020 24-3-2020 25-3-2020 ...

Vrouwen van het Friese verzet. Gevecht op vele fronten.

  Al toen mijn vorige boek, de biografie van Piet Oberman zijn voltooiing naderde, rees bij mij het idee onderzoek te doen naar de bijdrage van vrouwen aan het Friese verzet. Hoe groot was hun bijdrage eigenlijk geweest? En wie waren deze vrouwen precies? Eenmaal aan de slag werden me van alle kanten namen aangereikt. Of ik aan Wieke Bosch gedacht had? Nee, nooit van gehoord zelfs. Of Bouwina Meindertsma? Ja, die naam was ik eerder tegen-gekomen. Zelf ging ik ook op onderzoek uit en zo onstond gaande-weg een lijst met tweeëndertig namen van vrouwen die in de oorlog betrokken waren bij het verzet tegen de Duitse overheerser. Voor een deel afkomstig uit Friesland, maar voor een groot deel ook uit de rest van Nederland. Uit Groningen, Utrecht en Noord- en Zuid-Holland. En zelfs een jonge Joodse vrouw uit Duitsland. Ze moesten in de Tweede Wereldoorlog het hoofd bieden aan een wrede bezetter. Maar het boek gaat niet alleen over de oorlog.  De vrouwen moesten ook nog opboksen ...