• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Formatting error?

Eloise T

Active Member
Please see attached file: Chandoo - Formatting issue.xlsx.

Column G is a list of dates in this format:

upload_2017-3-8_10-33-3.png

The yellow highlighted cells in Column G have a leading space in them.
Trying to figure out which is better: =TRIM(CLEAN(Gx)) OR =CLEAN(TRIM(Gx))
I created Columns P & Q using the formulas.

upload_2017-3-8_10-23-56.png

My conundrum is, why am I unable to format columns P & Q with the Date format like what is used in Column G?
 

Attachments

  • Chandoo - Formatting issue.xlsx
    30.7 KB · Views: 5
Last edited:
Hi to all!

The CLEAN and TRIM function are Text Functions. When you use it, the Dates are converted as text.

Try any of this formulas:

=--CLEAN(TRIM(Gx))
=--TRIM(CLEAN(Gx))


Double Negative (--) convert the text into number. Just later give date format.

Blessings!
 
Back
Top