[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

05/04/2004 at 03:36PM PDT, ID: 20978027
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

the real difference between isblank, isempty, "", and null

Asked by rberke in Microsoft Excel Spreadsheet Software

Tags: excel, isblank, isempty

Yesterday I thought I understood isblank, but I was wrong.

Today I am 100% sure I really really understand it which means I'm sure to be wrong again.

Will someone just check this out and see if there are any glaring errors?

When cutting peoples names from a web page and pasting into excel, the result often has blanks at the end of the text.
I always fix this up by trimming the names.

To illustrate this, type the following into these cells
  a1 John Doe
  a2 John Doe   (followed by 5 blanks)
  a3 (don't type anything, leave it blank)
  a4 x
  a5 x

  c1 = len(a1)
  copy c1 and paste in c1:d5
  e1 = IF(ISBLANK(A1),CELL("address",A1)&"ISBLANK","")
  copy e1 and paste in e1:f5
 
You will see that len(a2) is 13 because of the 5 blanks

I usually fix this by
   inserting =trim(a1) into cell b1,
   dragging b1 to b5
   copy b1:b5 to clipboard
   paste > special > values into a1:a5

I thought this was perfect, but (alas) i was wrong.

Notice that a3, which started out IS BLANK, is no longer blank.  
Also notice a3 still is length 0.
finally notice that selecting a1 then doing a ctrl down arrow does not stop at the first blank cell, because it is not really blank.

You can repeat this by selecting a3 and hitting the delete key on keyboard.

Question #1  can I fix this without resorting to vba?   (I tried =IF(ISBLANK(A3),"",TRIM(A3))) but the cut and paste didn't work.

Question #2 is there a way of telling Excel to automatically delete trailing blanks from every data entry, import, or cut and paste?

Question #3 I believe that worksheet function ISBLANK is 100% equivalent to vba function ISEMPTY.  In other words, Bill Gates simply misnamed it. Am I correct, or is there something subtle that I am missing?

Question #4 I believe that the following vba line accomplish exactly the same thing.  Am I missing something subtle?
mycell.formula = ""
mycell.formula = null

rberke

p.s. ------------------------------------------------


To fix this, I have resorted to the following, but i don't like it because it resets the Undo chain.  I use Undo a lot, especially when I am cutting and pasting this junk.

sub myChangeToValue()
  for each cl in selection.cells
  cl.value = rtrim(cl.value)
  next cl
end sub


[+][-]05/04/04 04:24 PM, ID: 10991878

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05/04/04 05:17 PM, ID: 10992064

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/04/04 06:13 PM, ID: 10992218

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05/04/04 07:52 PM, ID: 10992574

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/05/04 07:12 AM, ID: 10996219

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/05/04 10:39 AM, ID: 10998207

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/05/04 04:10 PM, ID: 11000754

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05/05/04 05:40 PM, ID: 11001162

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/05/04 07:29 PM, ID: 11001711

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: excel, isblank, isempty
Sign Up Now!
Solution Provided By: sebastienm
Participating Experts: 4
Solution Grade: A
 
 
[+][-]05/05/04 09:31 PM, ID: 11002345

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/05/04 10:35 PM, ID: 11002680

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/06/04 09:27 AM, ID: 11007471

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/06/04 11:43 AM, ID: 11008639

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/29/04 02:43 PM, ID: 11430704

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/10/05 11:53 AM, ID: 13971418

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/10/05 12:06 PM, ID: 14645325

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74