Re: how to include special characters in a formula?



See one more reply at your other thread.

a wrote:
>
> Hi,
>
> I have tried the suggestion below, but it still doesnt work.
> -------------------------------------------------------------------------
>
> ya, i tried tat,
> VBA would give me a "expected: line nubmer or label or statement or end of
> statement" compile error.
> i guess its bcos, by using double quotes, we break the formula up into 3
> parts.
>
> "Chip Pearson" <chip@xxxxxxxxxxxx> wrote in message
> news:uffx2rVhFHA.576@xxxxxxxxxxxxxxxxxxxxxxx
> > Use double quotes instead of apostrophes.
> >
> > Range("N2").FormulaR1C1 = "=HOUR(RC[-1]" & ":" & MINUTE(RC[-1])"
> >
> >
> > --
> > Cordially,
> > Chip Pearson
> > Microsoft MVP - Excel
> > Pearson Software Consulting, LLC
> > www.cpearson.com
> >
> >
>
> >> one minor question.
> >> how do you include special characters in formula? i am tryign to
> >> achieve something like 9: 30.
> >> with the semi-colon separating hours and mins.
> >>
> >> Range("N2").FormulaR1C1 = "=hour(rc[-1])& ':' &minute(rc[-1])"
> >>

--

Dave Peterson
.



Relevant Pages

  • Re: insert into statement problem
    ... Helck, Timothy wrote: ... >but it doesnt work because the values need quotes around them since its ... >i am not able to get quotes around them. ...
    (perl.dbi.users)
  • Re: how to include special characters in a formula?
    ... VBA would give me a "expected: line nubmer or label or statement or end ... > Use double quotes instead of apostrophes. ... > Pearson Software Consulting, LLC ...
    (microsoft.public.excel.programming)
  • Re: Bahais need a new strategy
    ... to non-Baha'is is peppered with quotes I sometimes get funny looks. ... point is, as you say, the teachings, not necessarily the writings. ... I made a suggestion and you "hit the roof", without even experimenting with the suggestion. ... But when you tell others they should not do this you are not encouraging their own heartfelt method of presenting the Faith. ...
    (soc.religion.bahai)
  • Re: If value is in a list
    ... Is there a point in your repeating your suggestion ... ... And please trim your quotes. ... Anyone who slaps a 'this page is best viewed with Browser X' label on ...
    (comp.lang.javascript)
  • Re: select according to category, count, and order
    ... Thanks for posting DDL + INSERTS for sample data. ... opportunity to test the suggestion I made earlier in this thread. ... consisted of two quotes in the CASE-expression of the ORDER BY. ... SELECT Category, EmployeeCount ...
    (microsoft.public.sqlserver.programming)