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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,213,527
Messages
6,114,144
Members
448,552
Latest member
WORKINGWITHNOLEADER

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