<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[poi - JBay Solutions - The Dev Blog]]></title><description><![CDATA[JBay Solutions Development Blog on Java, Android, Play2 and others]]></description><link>http://blog.jbaysolutions.com/</link><generator>Ghost 0.7</generator><lastBuildDate>Wed, 16 Oct 2024 01:15:05 GMT</lastBuildDate><atom:link href="http://blog.jbaysolutions.com/tag/poi/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Apache POI, translating Excel column number to letter]]></title><description><![CDATA[<p>Recently I had to write some code to generate excel files using Apache POI. One of the files was fairly complex and used formulas in a few cells.</p>

<p>I found myself spending a few hours searching for a way to translate the indexed column numbers that POI uses to the</p>]]></description><link>http://blog.jbaysolutions.com/2012/06/08/apache-poi-translating-excel-column-number-to-letter-5/</link><guid isPermaLink="false">8ff78aea-0a24-46cd-b68b-91e61266a0fe</guid><category><![CDATA[java]]></category><category><![CDATA[apache poi]]></category><category><![CDATA[excel]]></category><category><![CDATA[poi]]></category><dc:creator><![CDATA[Gustavo Santos]]></dc:creator><pubDate>Fri, 08 Jun 2012 16:08:19 GMT</pubDate><content:encoded><![CDATA[<p>Recently I had to write some code to generate excel files using Apache POI. One of the files was fairly complex and used formulas in a few cells.</p>

<p>I found myself spending a few hours searching for a way to translate the indexed column numbers that POI uses to the column letters I needed in those formulas.</p>

<p>It turns out the solution is quite simple, you just have to use org.apache.poi.hssf.util.CellReference:</p>

<pre><code>String columnLetter = CellReference.convertNumToColString(columnNumber);
</code></pre>

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>  
<!-- Horizontal For Posts - Text Only -->  
<ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-1311169549359552" data-ad-slot="3316155422"></ins>
<script>  
(adsbygoogle = window.adsbygoogle || []).push({});
</script>  

<p><br></p>]]></content:encoded></item></channel></rss>