Comments on: I never Excelled in Excel
http://ask.metafilter.com/91315/I-never-Excelled-in-Excel/
Comments on Ask MetaFilter post I never Excelled in ExcelTue, 13 May 2008 14:50:04 -0800Tue, 13 May 2008 14:50:04 -0800en-ushttp://blogs.law.harvard.edu/tech/rss60Question: I never Excelled in Excel
http://ask.metafilter.com/91315/I-never-Excelled-in-Excel
I have no clue what I am doing in Excel, so this is going to be a bit hard to explain, but hopefully somebody can help me here. I want to give Excel some text, and have it output a string. Let me explain. <br /><br /> In <strong>A1</strong> I type in something like<br>
<br>
<blockquote>-^"some text"</blockquote><br>
In <strong>B1</strong> I would like to see <br>
<blockquote>-%5E%22some+text%22+</blockquote><br>
- stays - | ^ is changed to %5E | " is changed to %22 | (space) is changed to +<br>
<br>
I would continue in the same fashion down column A. The next thing I would like to do is take <strong>C1</strong> (which is www.someaddress.com/q=) and add all the B column and then <strong>C2</strong> (which is &something) and put the results in <strong>C3</strong>.<br>
<br>
So <strong>C1+B1+B2+B3+B4...+C2</strong><br>
My output should be something like www.someaddress.com/q=-%5E%22some+text%22+-%5E%22some+other+text%22+&something<br>
<br>
So, can anybody explain how to do this to an Excel dummy? 2007, if it matters.post:ask.metafilter.com,2008:site.91315Tue, 13 May 2008 14:32:41 -0800B(oYo)BIESexceltextstringBy: ssg
http://ask.metafilter.com/91315/I-never-Excelled-in-Excel#1339183
It will probably be easiest to use the find and replace menu function to do your replacements. You can do it with a formula (using the FIND and REPLACE functions), but for with only three changes, you'll be better off using the menu function. <br>
<br>
Once you've made the changes you need, then use CONCATENATE(C1,B1,B2,B3,...,C2).comment:ask.metafilter.com,2008:site.91315-1339183Tue, 13 May 2008 14:50:04 -0800ssgBy: saintsguy
http://ask.metafilter.com/91315/I-never-Excelled-in-Excel#1339188
Bit difficult to explain, so I've knocked up an example of this... email me (as per my profile) and i'll send to you.<br>
<br>
Basically using =substitute() to do the string replacements, and then concatenating all the strings together using "&" within the target cell.<br>
<br>
E.g. =A1&B1 will give you the two cell values run together.comment:ask.metafilter.com,2008:site.91315-1339188Tue, 13 May 2008 14:52:18 -0800saintsguyBy: ssg
http://ask.metafilter.com/91315/I-never-Excelled-in-Excel#1339203
I should provide a little more detail: to use the CONCATENATE function (or any function) put a "=" in front of it. If you want your output in cell C3, then put "=CONCATENATE(C1,B1,B2,B3,...,C2)" in C3. Also, if you want to keep your original text, just copy it into a new column, select the new column, and do the search and replace on that column only.<br>
<br>
<small>Also, please ignore the random extra word in my answer above.</small>comment:ask.metafilter.com,2008:site.91315-1339203Tue, 13 May 2008 14:58:16 -0800ssgBy: odinsdream
http://ask.metafilter.com/91315/I-never-Excelled-in-Excel#1339370
You want to create a <a href="http://www.vertex42.com/ExcelArticles/user-defined-functions.html">user-defined function</a> based on <a href="http://www.devx.com/vb2themax/Tip/19160">urlencode</a>.comment:ask.metafilter.com,2008:site.91315-1339370Tue, 13 May 2008 17:44:02 -0800odinsdream