Hi Eduards,
If you want to toggle True<->False, then yes you can use the NOT function. This function works such that:
If X is True, then False is returned; and vice versa. Thus if you were to apply it to the code I posted earlier, you'd write it such that:
Otherwise, if you wanted to keep the output of the piece of code I posted earlier the same, and have a separate column with the toggled Boolean values then you'd want to put something like the below in say E1 and then drag down:
As for your other question, there are two different things in the bit of code you pasted; however I think you refer to just the final bit...
Yes? If so, I believe (hopefully one of the forum excel wizards can correct me if I'm not 100% correct on this) this simply checks A1 to see if it's got a length to it. This can be useful as the function:
Would return False if there's anything in the cell at all; including a simple apostrophe (which will disappear upon entry), formula, etc. The code you mentioned would return true if there's effectively no length to what is being displayed in the cell; this includes apostrophes and also functions that return "" and thus look empty, such as:
Hope that helps
Bookmarks