<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
	<channel>
		<title>Our Excel StringDecompress routine.</title>
		<link>https://blogs.lotterypost.com/jadelottery/2018/7/our-excel-stringdecompress-routine.htm</link>
		<atom:link href="https://www.lotterypost.com/rss/blogcomments/135164" rel="self" type="application/rss+xml" />
		<description>JADELottery's Blog: Our Excel StringDecompress routine.</description>
		<dc:language>en-us</dc:language>
		<generator>Lottery Post RSS Generator</generator>
		<item>
			<title>Comment #3</title>
			<link>https://blogs.lotterypost.com/jadelottery/2018/7/our-excel-stringdecompress-routine.htm#c189417</link>
			<guid isPermaLink="true">https://blogs.lotterypost.com/jadelottery/2018/7/our-excel-stringdecompress-routine.htm#c189417</guid>
			<pubDate>Sat, 14 Jul 2018 14:07:47 GMT</pubDate>
			<dc:creator>JADELottery</dc:creator>
			<description><![CDATA[<p>&#x3c;br /&#x3e;Select and Copy the code between the horizontal lines.&#x3c;br /&#x3e;&#x3c;br /&#x3e;Open Excel with a new file.&#x3c;br /&#x3e;&#x3c;br /&#x3e;Next, press Alt + F11 to open the code editor.&#x3c;br /&#x3e;&#x3c;br /&#x3e;Now, menu select Insert then Module.&#x3c;br /&#x3e;&#x3c;br /&#x3e;This will create a module code page.&#x3c;br /&#x3e;&#x3c;br /&#x3e;Finally, select anywhere on the module page and Paste the code you just copied from the blog.&#x3c;br /&#x3e;&#x3c;br /&#x3e;Tada, you now have the function available to use.&#x3c;br /&#x3e;&#x3c;br /&#x3e;Close the code editor and try typing the =StringDecompress( , ) funct... &#x5b;&#xa0;<a href="https://blogs.lotterypost.com/jadelottery/2018/7/our-excel-stringdecompress-routine.htm#c189417">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>JADELottery</category>
		</item>
		<item>
			<title>Comment #2</title>
			<link>https://blogs.lotterypost.com/jadelottery/2018/7/our-excel-stringdecompress-routine.htm#c189375</link>
			<guid isPermaLink="true">https://blogs.lotterypost.com/jadelottery/2018/7/our-excel-stringdecompress-routine.htm#c189375</guid>
			<pubDate>Sat, 14 Jul 2018 02:08:25 GMT</pubDate>
			<dc:creator>JADELottery</dc:creator>
			<description><![CDATA[<p>&#x3c;br /&#x3e;What it</p>]]></description>
			<category>JADELottery</category>
		</item>
		<item>
			<title>Comment #1</title>
			<link>https://blogs.lotterypost.com/jadelottery/2018/7/our-excel-stringdecompress-routine.htm#c189361</link>
			<guid isPermaLink="true">https://blogs.lotterypost.com/jadelottery/2018/7/our-excel-stringdecompress-routine.htm#c189361</guid>
			<pubDate>Fri, 13 Jul 2018 22:12:04 GMT</pubDate>
			<dc:creator>lakerben</dc:creator>
			<description><![CDATA[<p>Can you post it</p>]]></description>
			<category>lakerben</category>
		</item>
		<item>
			<title>Original Blog Entry: Our Excel StringDecompress routine.</title>
			<link>https://blogs.lotterypost.com/jadelottery/2018/7/our-excel-stringdecompress-routine.htm</link>
			<guid isPermaLink="true">https://blogs.lotterypost.com/jadelottery/2018/7/our-excel-stringdecompress-routine.htm</guid>
			<pubDate>Fri, 13 Jul 2018 17:41:16 GMT</pubDate>
			<dc:creator>JADELottery</dc:creator>
			<description><![CDATA[<p>Well, here&#x27;s what we&#x27;re usin&#x27;.<br /><br />____________________________________________________________________________________________________<br /><br />Function StringDecompress(str As String, n As Integer) As String<br /><br />On Error GoTo exitfunction<br /><br />Dim temp As String<br /><br />Dim c, i, j, strlen As Integer<br /><br />Dim nums() As Long: ReDim nums(n)<br /><br />strlen = Len(Mid(str, 2))<br /><br />temp =<br /><br />For i = 0 To strlen - 1<br /><br />temp = temp Mid(str, strlen - i + 1, 1)<br /><br />Next i<br /><br />strlen = Application.WorksheetFunction.RoundUp(strlen / 2, 0)<br /><br />If (n 2) Or (n strlen) Then GoTo exitfunction<br /><br />For i = 0 To strlen - 1<br /><br />nums(n - 1 - i) = Val(Mid(temp, 2 * i + 2, 1) Mid(temp, 2 * i + 1, 1))<br /><br />Next i<br /><br />c = 0<br /><br />i = 0<br /><br />For j = (n - strlen) To (n - 1)<br /><br />If c (n - strlen) Then<br /><br />If nums(j) = 9 Then<br /><br />nums(i) = nums(j)<br /><br />i = i + 1<br /><br />Else<br /><br />nums(i) = Int(nums(j) / 10)<br /><br />nums(i + 1) = nums(j) - (10 * nums(i))<br /><br />i = i + 2<br /><br />c = c + 1<br /><br />End If<br /><br />End If<br /><br />Next j<br /><br />temp =<br /><br />For i = 0 To n - 1<br /><br />temp = temp Format(nums(i), 00 )<br /><br />Next i<br /><br />StringDecompress = temp<br /><br />Exit Function<br /><br />exitfunction:<br /><br />StringDecompress = Error<br /><br />End Function<br /><br />____________________________________________________________________________________________________<br /><br />The data pasted into Excel must be of a format that has a single non-numeric character at the beginning of each set of compressed numbers.<br /><br />In this case, we used the middot &#x27; &#x27; character, but it can be anything other than &#x27;-&#x27;, &#x27;+&#x27; or a natural space hex code 20 or escape code \x20.<br /><br />This causes Excel to treat the string of numbers as a string and prevents Excel from trying to convert the string of numbers into an actual number in Excel.<br /><br />The usage is =StringDecpompress(str, n), where str is the cell containing the compressed string of numbers and n is the pick size of the desired separated number set.<br /><br />Below is an example where n = 5:<br /><br />Month Day Year Compressed #s Decompressed #s<br /><br />07 12 2018 318192425 03 18 19 24 25<br /><br />07 11 2018 311162230 03 11 16 22 30<br /><br />07 10 2018 613141531 06 13 14 15 31<br /><br />07 09 2018 315282931 03 15 28 29 31<br /><br />07 08 2018 35161721 03 05 16 17 21<br /><br />07 07 2018 68223031 06 08 22 30 31<br /><br />07 06 2018 37151631 03 07 15 16 31<br /><br />07 05 2018 1416232930 14 16 23 29 30<br /><br />07 04 2018 3582022 03 05 08 20 22<br /><br />07 03 2018 1391427 01 03 09 14 27<br /><br />07 02 2018 611202629 06 11 20 26 29<br /><br />07 01 2018 27102129 02 07 10 21 29<br /><br />06 30 2018 356927 03 05 06 09 27<br /><br />06 29 2018 5671724 05 06 07 17 24<br /><br />06 28 2018 110131531 01 10 13 15 31<br /><br />06 27 2018 516192829 05 16 19 28 29<br /><br />06 26 2018 14142328 01 04 14 23 28<br /><br />06 25 2018 810132629 08 10 13 26 29<br /><br />06 24 2018 26122430 02 06 12 24 30<br /><br />06 23 2018 27161723 02 07 16 17 23<br /><br />06 22 2018 914171826 09 14 17 18 26<br /><br />06 21 2018 45272831 04 05 27 28 31<br /><br />06 20 2018 1521242629 15 21 24 26 29<br /><br />06 19 2018 720222426 07 20 22 24 26<br /><br />06 18 2018 615202325 06 15 20 23 25<br /><br />06 17 2018 1672227 01 06 07 22 27<br /><br />... &#x5b;&#xa0;<a href="https://blogs.lotterypost.com/jadelottery/2018/7/our-excel-stringdecompress-routine.htm">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>Blog Entry</category>
			<category>JADELottery</category>
			<wfw:comment>https://www.lotterypost.com/blogentry/135164</wfw:comment>
		</item>
	</channel>
</rss>

