Archive for the ‘Excel’ Category
Tabula: Very nice utility to extract data from a PDF table: Just upload the PDF file, highlight the table you want to extract, you’ll get a preview, and download the data in CSV format. Pretty cool!
Interesting application which can bridge a bit the space between Excel data and Illustrator visualization work.
Nice example of an attractive and both visual and textual display of indicators.
Nice evolution from a standard (and as such published) Excel chart to a nice, innovative looking one (although perhaps a bit more challenging to read).
Say, you have “300” and “-300” as two values and want to calculate the percentage change between them. With the formula
"=(A2 - B2) / ABS(B2)"
it’ll do it.
Nice tutorial with a few interesting ideas about how to display distributions.
Interesting idea to use a “panel chart” instead of a broken chart.
In order to use the “dygraphs“, do the following:
- Prepare your values (for example, divide by 1.000.000; add “Date” to the right field, concatenate(Field-with-year,”-01-01″))
- Copy from Mac to Windows, insert into Excel, change date again to right format
- Save as CSV
- Replace “;” with “,”
Great VisualBasic script for Excel which does exactly that:
Dim LC As Long, LRO As Long, NR As Long, HowMany As Long, a As Long, b As Long
Dim c As Range, rng As Range
Application.ScreenUpdating = False
LRO = Sheets("Output").Cells(Rows.Count, 1).End(xlUp).Row
If LRO > 1 Then Sheets("Output").Range("A2:E" & LRO).ClearContents
NR = 2
LC = .Cells(1, Columns.Count).End(xlToLeft).Column
For Each c In .Range("A2", .Range("A" & Rows.Count).End(xlUp))
Set rng = .Range(.Cells(c.Row, 3), .Cells(c.Row, LC))
HowMany = Application.WorksheetFunction.CountIf(rng, ">-10000")
If HowMany > 0 Then
.Range("A" & c.Row & ":C" & c.Row).Copy Sheets("Output").Range("A" & NR & ":A" & NR + HowMany - 1)
b = NR
For a = 4 To LC Step 1
If .Cells(c.Row, a).Value > -10000 Then
Sheets("Output").Range("D" & b) = .Cells(1, a)
Sheets("Output").Range("E" & b) = .Cells(c.Row, a)
b = b + 1
NR = NR + HowMany
Application.ScreenUpdating = True
Good tip here!
When the Conditional Formatting window appears, select “Formula Is” in the drop down. Then enter the following formula:
Next, we need to select the color we want to see in the alternating rows. To do this, click on the Format button.
Just use “#N/A” in the cell to avoid charting NoData values.
Really useful and nicely designed website to convert between different units.
Good source of information about custom number formats in Excel.
In order to calculate the (average) annual growth rate over multiple year, use this formula:
CAGR: =((End Value/Start Value)^(1/(Periods - 1)) - 1
Takes CSV or tab-delimited data from Excel and converts it into several web-friendly formats, include JSON and XML.
Wonna concatenate numerous fields to obtain all values in a single cell? Here’s the script:
Dim x As String, rng As Range, cel As Range, v_new As Integer, v_old As Integer
Set rng = .Range("F2:F2736")
For Each cel In rng
v_new = Int(cel.Value)
If (v_new <> v_old) Then
x = x & "," & Int(cel.Value)
v_old = v_new
.Range("G2").Value = x
And in order to insert a little bit more complicated string in ArcGIS’s Field Calculator, you need to do this:
"<img src='http://localhost/graph.php?data=36,36,37," & Int([wohnfl_per]) & "' />"
Change = A2/A1 - 1 (Cell format: Percentage)
A very commonly requested Excel feature is the ability to add labels to XY chart data points. The XY Chart Labeler adds this feature to Excel. The XY Chart Labeler provides the following options:
Add XY Chart Labels – Adds labels to the points on your XY Chart data series based on any range of cells in the workbook.
Move XY Chart Labels – Moves the entire set of data labels or individual labels in any direction and in the increment of your choosing.
Manual Labeler – When you don’t want to label an entire data series, but rather use data labels to highlight specific data points, the manual labeler allows you to do this.
Even though this utility is called the XY Chart Labeler, it is capable of labeling any type of Excel chart series that will accept data labels.