+ Reply to Thread
Results 1 to 5 of 5

I'd like to add a suffix...

  1. #1
    Dr. Darrell
    Guest

    I'd like to add a suffix...

    I would like to add a suffix <<< "hrs" >>>to some fields. The fields are the
    result of Formulas <<< "=SUM(C11:C42)" >>> I would like the field to be
    displayed as the resultant number (49) & the desired text (hrs) = 49 hrs.

    Is there a means to do this?


  2. #2
    Domenic
    Guest

    Re: I'd like to add a suffix...

    Try...

    =SUM(C11:C42)&" hrs"

    Hope this helps!

    In article <D48ACA07-18D9-44F9-8070-93FF8AA70D7D@microsoft.com>,
    "Dr. Darrell" <DrDarrell@discussions.microsoft.com> wrote:

    > I would like to add a suffix <<< "hrs" >>>to some fields. The fields are the
    > result of Formulas <<< "=SUM(C11:C42)" >>> I would like the field to be
    > displayed as the resultant number (49) & the desired text (hrs) = 49 hrs.
    >
    > Is there a means to do this?


  3. #3
    Earl Kiosterud
    Guest

    Re: I'd like to add a suffix...

    Dr.,

    Probably the best way to add your suffix is with the number formatting of
    the cell. With the cells selected, Format - Cells - Number - Custom.
    append the following to whatever is in the box:

    " hrs"

    If there are semicolons in the current formatting stuff, put the above in
    front of each semicolon, as well as at the end. If this doesn't work, post
    back with the current formatting code, and we'll go from there.

    With this method, your total remains a number, which can be used by other
    formulas if needed.
    --
    Earl Kiosterud
    mvpearl omitthisword at verizon period net
    -------------------------------------------

    "Dr. Darrell" <DrDarrell@discussions.microsoft.com> wrote in message
    news:D48ACA07-18D9-44F9-8070-93FF8AA70D7D@microsoft.com...
    >I would like to add a suffix <<< "hrs" >>>to some fields. The fields are
    >the
    > result of Formulas <<< "=SUM(C11:C42)" >>> I would like the field to be
    > displayed as the resultant number (49) & the desired text (hrs) = 49 hrs.
    >
    > Is there a means to do this?
    >




  4. #4
    Don Guillett
    Guest

    Re: I'd like to add a suffix...

    try this
    Sub addsuffix()
    For Each c In Selection
    'to leave formula and add suffix
    If Left(c.Formula, 1) = "=" Then c.Formula = c.Formula & "&" & """ hrs"""
    'or this line to leave the value only
    'If Left(c.Formula, 1) = "=" Then c.Value = c & " hrs"
    Next
    End Sub

    --
    Don Guillett
    SalesAid Software
    donaldb@281.com
    "Dr. Darrell" <DrDarrell@discussions.microsoft.com> wrote in message
    news:D48ACA07-18D9-44F9-8070-93FF8AA70D7D@microsoft.com...
    > I would like to add a suffix <<< "hrs" >>>to some fields. The fields are

    the
    > result of Formulas <<< "=SUM(C11:C42)" >>> I would like the field to be
    > displayed as the resultant number (49) & the desired text (hrs) = 49 hrs.
    >
    > Is there a means to do this?
    >




  5. #5
    Dr. Darrell
    Guest

    Re: I'd like to add a suffix...

    Earl:

    Thank you, that was very simple and very helpful.

    Darrell

    "Earl Kiosterud" wrote:

    > Dr.,
    >
    > Probably the best way to add your suffix is with the number formatting of
    > the cell. With the cells selected, Format - Cells - Number - Custom.
    > append the following to whatever is in the box:
    >
    > " hrs"
    >
    > If there are semicolons in the current formatting stuff, put the above in
    > front of each semicolon, as well as at the end. If this doesn't work, post
    > back with the current formatting code, and we'll go from there.
    >
    > With this method, your total remains a number, which can be used by other
    > formulas if needed.
    > --
    > Earl Kiosterud
    > mvpearl omitthisword at verizon period net
    > -------------------------------------------
    >
    > "Dr. Darrell" <DrDarrell@discussions.microsoft.com> wrote in message
    > news:D48ACA07-18D9-44F9-8070-93FF8AA70D7D@microsoft.com...
    > >I would like to add a suffix <<< "hrs" >>>to some fields. The fields are
    > >the
    > > result of Formulas <<< "=SUM(C11:C42)" >>> I would like the field to be
    > > displayed as the resultant number (49) & the desired text (hrs) = 49 hrs.
    > >
    > > Is there a means to do this?
    > >

    >
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1