making sure a cell is empty

huorsa

Board Regular
Joined
Feb 15, 2002
Messages
101
How can I make sure that a cell is empty. I am concatenating several cell separated by "|" symbol and when a cell is emppty the concatenation should be || but sometimes I get | |, I don't know why because the cell looks empty.

I want to avoid the space between the pipes if the cell is empty.

Hugo
 
The TRIM function removes non-printing characters such as spaces and paragraph returns. But it only removes them before and after *real* characters, and not from in between *real* characters.

_________________
TheWordExpert
This message was edited by Dreamboat on 2002-02-23 11:50
 
Upvote 0

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
On 2002-02-23 11:49, Dreamboat wrote:
The TRIM function removes non-printing characters such as spaces and paragraph returns. But it only removes them before and after *real* characters, and not from in between *real* characters.
This message was edited by Dreamboat on 2002-02-23 11:50


Enter in A1:B1 the following:

{" ",
2}

That is, a space in A1 and 2 in B1.

In C1 enter:

="|"&TRIM(A1)&"|"&TRIM(B1)

Please report back the result in C1.
This message was edited by Aladin Akyurek on 2002-02-28 16:32
This message was edited by Aladin Akyurek on 2002-02-28 16:33
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,861
Members
449,052
Latest member
Fuddy_Duddy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top