Archive for the ‘Tips and Tricks’ Category

August 9th, 2009

Simulating Excel Conditional Formatting in Xcelsius

Conditional formatting in Excel is a feature that is very commonly used and very useful in displaying how well a set of values in a table are doing. Unfortunately we can not transfer the dynamic nature of conditional formatting from Excel to Xcelsius if we were to just insert the table selector object. Basically if the initial binding color of a cell was “Green”, it would stay green even though it were to change to “Red” when the value changes.

Please view my video on how to simply accomplish this using a grid component in Xcelsius

Please visit my post on “MyXcelsius” for a more advanced example of conditional formatting in Xcelsius involving dynamic sliders and charts.

You can download the source file for the example here

October 8th, 2008

Alpha Numeric Sorter

Here is an Xcelsius Example that ranks your table based on whether you want to rank it numerically or alphabetically.

Get Adobe Flash player


Many of you may have had the trouble of trying to sort a table of data. If you only need to sort alphabetically, then the listview object works fine. However, it does not work with numerics where 12 will come ahead of 6.

Ranking your rows

The first picture shows how to rank numbers. As you can see the alpha will come in as ascending order. This can easily be done through your Live Office or Web Service Query. If the data is static you can just go to Data -> Sort in Excel and choose Data Column A. The reason for this is that the Countif function has a bug in Excel where if you execute COUNTIF($A$2:$A$6,”>” & A2), it will interpret it as COUNTIF($A$2:$A$6,”=” & A2)

The simple Rank formula for the numeric column that I used takes the rank of each row and spits back the number. It also takes into account if there are duplicate numeric columns. If there is then it uses the COUNTIF($B$2:B2,B2)-1) part to increment the rank accordingly.

index match

Once we have our ranking setup, we have our index match formula that will match the appropriate column to the index.

I’ve attached the source files below that you can reuse for your own pleasure. There are some additional comments in the Excel file that explains more about what is going on for those of you who are curious.

Download Source