A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Blank cell not really blank



 
 
Thread Tools Display Modes
  #11  
Old June 10th, 2009, 11:53 PM posted to microsoft.public.excel.misc
OperationsNETTC15
external usenet poster
 
Posts: 14
Default Blank cell not really blank

I solved my dilemma.

IF($B2=48, $A2, "000000")

Code() did the trick for me, thank you!
  #12  
Old June 11th, 2009, 05:01 AM posted to microsoft.public.excel.misc
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
Default Blank cell not really blank

I'm not entirely clear on what is in your cell or whether the formula you
posted is what you really need or want. The CODE function (which is
returning 48 for the entry 039617) is giving you the code value for the
leading 0... do all your non-blank cells start with 0? Also, you are showing
32 for the code your "blank" cells... 32 *is* the code for a blank space; so
your "blank" cells are not really empty, they contain at least one blank
character (I guess there could be more). You could one of two things
(besides what you showed us for your solution)... one, clean up your data to
remove the blank characters or, two, you should be able to eliminate the
helper column (the one with the CODE function in it) and use this instead...

=IF(TRIM($B2)="","000000",$A2)

Doing the test this way will allow entries in your Column A cells that don't
start with a 0. This, of course, assumes the "blank" cells in Column A have
one or more spaces in them and no other non-printable characters.

--
Rick (MVP - Excel)


"OperationsNETTC15" wrote in
message ...
I solved my dilemma.

IF($B2=48, $A2, "000000")

Code() did the trick for me, thank you!


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:15 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.