can anyone help ?
Thanks - Del
with a formula like this:
=LEN(A1)=LEN(SUBSTITUTE(A1," ",""))
or
=ISERROR(FIND(" ",A1))
I bet you'll get more answers, too.
--
Dave Peterson
ec3...@msn.com
don't allow blanks in any cell in the range a1:c20 ?
On Sat, 28 Apr 2001 07:32:36 -0500, Dave Peterson <ec3...@msn.com>
wrote:
Thanks - Del
Since you are using relative cell references, the validation formula will
adjust to address each of the cells in the selection.
Regards,
Tom Ogilvy
del <sea...@XXXnew-ark.co.uk> wrote in message
news:3aeb5277.3109898@news.btinternet.com...
compares the original length of A1 to the possibly
shorter length of A1 without spaces.
The object of the comparison is to return
TRUE OR FALSE. if both lengths are equal returns TRUE
so the validation allows entry; otherwise, validation prevents entry.
From HELP
SUBSTITUTE(text,old_text,new_text,instance_num)
HTH, (see Tom's reply for
David McRitchie, Microsoft MVP - Excel (site changed 2000-04-15)
My Excel Macros: http://www.geocities.com/davemcritchie/excel/excel.htm
Search Page: http://www.geocities.com/davemcritchie/excel/search.htm
Google newsgroup search now covers Mar 29, 1995 to current
"Jimmy L. Day" <two...@cableone.net> wrote in message
news:3AEB586D...@cableone.net...
I have tried yours, Dave's and also Tom's formulas but the spaces in the
selected range do not seem to go. (to avoid any typing mistakes, in fact I
copied your text and pasted it into the formula box of data validation with
Ctrl+V)
Will you please verify it once again?
Regards,
Murthy
Bangalore, in India
"Jimmy L. Day" <two...@cableone.net> wrote in message
news:3AEB586D...@cableone.net...
>
Tested in Excel 97 SR2
Regards,
Tom Ogilvy
For that you need a search and replace.
In article <u1Ls#iF0AHA.1540@tkmsftngp03>,
"Murthy" <murt...@hotmail.com> wrote:
--
J.E. McGimpsey
Remove NOSPAM from address to send email.
Data validation only applies to keyed in entry, you can paste
something in, you can do a global
change and undo all your good data validated entries
with Replace i.e. Replace "abc" with "ab cd"
HTH,
David McRitchie, Microsoft MVP - Excel (site changed 2000-04-15)
My Excel Macros: http://www.geocities.com/davemcritchie/excel/excel.htm
Search Page: http://www.geocities.com/davemcritchie/excel/search.htm
Google newsgroup search now covers Mar 29, 1995 to current
"J.E. McGimpsey" <ne...@NmOcSgPiAmMpsey.com> wrote in message
news:news-10954B.2...@msnews.microsoft.com...
I apologise to everyone!
Regards,
Murthy
Bangalore, in India
"Tom Ogilvy" <twog...@email.msn.com> wrote in message
news:#KvGIrF0AHA.572@tkmsftngp05...
Validate / Validation
http://www.geocities.com/davemcritchie/excel/validation.htm
HTH,
David McRitchie, Microsoft MVP - Excel (site changed 2000-04-15)
My Excel Macros: http://www.geocities.com/davemcritchie/excel/excel.htm
Search Page: http://www.geocities.com/davemcritchie/excel/search.htm
Google newsgroup search now covers Mar 29, 1995 to current
"Murthy" <murt...@hotmail.com> wrote in message
news:exo$TxK0AHA.2236@tkmsftngp02...
But I think that there's a small problem with the no trailing/leading spaces.
you have:
=LEN(A1)=LEN(TRIM(A1))
But if you enter "asdfasdf asdfasdf", you'll see the problem. The worksheet
function TRIM gets rid of multiple internal spaces, too.
So I think your description should be more like:
Disallow spaces (leading/trailing/multiple internal)
If you just want leading/trailing disallowed:
=AND(LEFT(A1,1)<>" ",RIGHT(A1,1)<>" ")
(Hey, my name is in your site twice now! Wahoo!)
--
Dave Peterson
ec3...@msn.com
That's nice. Atleast the confusion led to something creative. I will visit
your new page right away.
--
Regards,
Murthy
Bangalore, in India
murt...@hotmail.com
--
Regards,
Murthy
Bangalore, in India
murt...@hotmail.com
"David McRitchie" <DMcRi...@msn.com> wrote in message
news:udXU1CM0AHA.1416@tkmsftngp03...
David McRitchie, Microsoft MVP - Excel (site changed 2000-04-15)
My Excel Macros: http://www.geocities.com/davemcritchie/excel/excel.htm
Search Page: http://www.geocities.com/davemcritchie/excel/search.htm
Google newsgroup search now covers Mar 29, 1995 to current
"Dave Peterson" <ec3...@msn.com> wrote in message
news:3AEC9DFA...@msn.com...
> Another nice page! [validation.htm]
On Sun, 29 Apr 2001 08:54:48 +0530, "Murthy" <murt...@hotmail.com>
wrote:
Thanks - Del
Regards,
Tom Ogilvy
"del" <sea...@XXXnew-ark.co.uk> wrote in message
news:3aec68a1...@news.btinternet.com...