Terry's Computer Tips - computer tips articles and newsletters
Subscribe to my free
Terry's Computer Tips
email newsletter.
Your Name: E-mail Address:
 
 
Terry Stockdale
Top Choices for November 2009...

HowTo: Using Notepad++ With Excel

 
 

Excel lets you type a formula directly into a cell. Or, you can select a cell and then type the formula in Excel's edit box. However, it's much easier to create a complicated formula for Excel by doing it in another program and then doing a copy-and-paste to put it into Excel.

Notepad works perfectly from the text manipulation point of view. But, Notepad++ is designed as a programmer's editor (and it's free, too!).

For an Excel formula, Notepad++ helps us write our formulas by allowing us to insert carriage returns so we can follow our logic as we try to create it, and by color-coding the parentheses pairs, similar to the way Excel does.


(click on the image for a larger version)

Another cool feature helps keep you on track as you are creating your formula — as you type a parentesis, the matching one highlights, too. By breaking the different test conditions of an IF statement into multiple lines, you can see if you've skipped a step.


(click on the image for a larger version)

As we finish he formula, we can see that the parentheses match. The red box in the tab (you can have multiple tabs with multiple files being edited) shows you that this work has not been saved yet.


(click on the image for a larger version)

Our last step in Notepad++ is to select the formula that we've created, so we can copy it to paste into Excel.

After highlightig the formula to select it, copy it by Control-C or using he Edit > Copy function on Notepad++'s menu bar.


(click on the image for a larger version)

Now, the fun part starts — with pasting the formula into Excel.

The obvious place to paste the formula is directly into the cell in which we want the formula to generate its answer. We can see the effect of pasting the formula into cell G4 by looking at cells G4, G5 and G6. As we can see, by pasting it that way, Excel broke the formula into three lines. The first has only an IF test. Excel made an automatic correction and added a closing parenthesis, and gave us a result of 0. Cells G5 and G6 show the text that was in the other two parts of the formula.

By selecting cell G10 and then pasting the formula directly in the formula edit box at the top of the spreadsheet, we'll get what we want...


(click on the image for a larger version)

In this last image, I've selected cell G10. We see that we have a readable formula in the formula edit box — and we have an answer in cell G10. I never filled in anything in the four cells being tested, so we see that IF test results that tell us that A4 matched A5 and B4 matched B5.


(click on the image for a larger version)

 

Copyright © 2009 Terry A. Stockdale. All rights reserved.


 

Thank you for visiting my site — I hope you found the site and articles helpful. If you did, please consider supporting my efforts by making a purchase (if you have one to make) via one of the links in my articles, one of my recommendations, or in my "Ads by Terry" to purchase the item. You can also shop via these links to major Internet retailers
Amazon.com, Buy.com and NewEgg.com or this Shopping page...