+ Reply to Thread
Results 1 to 7 of 7

Re: Text and numbers

  1. #1
    paul
    Guest

    Re: Text and numbers

    Using Excel 2003 I want to get the sum of cells containing numbers, but the
    these cells also contain some text. I only want the sum of the numbers.

    Please help. P



  2. #2
    David McRitchie
    Guest

    Re: Text and numbers

    Hi Paul,

    =SUM(A1:A20)
    or any other range will ignore cells with text values, and ignore empty cells
    ---
    HTH,
    David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

    "paul" <[email protected]> wrote in message news:[email protected]...
    > Using Excel 2003 I want to get the sum of cells containing numbers, but the
    > these cells also contain some text. I only want the sum of the numbers.
    >
    > Please help. P
    >
    >




  3. #3
    Ragdyer
    Guest

    Re: Text and numbers

    Are text and numbers in the *same* cell?

    If they are, post explicit examples.
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "paul" <[email protected]> wrote in message
    news:[email protected]...
    > Using Excel 2003 I want to get the sum of cells containing numbers, but

    the
    > these cells also contain some text. I only want the sum of the numbers.
    >
    > Please help. P
    >
    >



  4. #4
    paul
    Guest

    Re: Text and numbers

    Okay, here goes. I use W5 in one cell, the next cell in that row might be
    R5. These are the only letters I use, but the numbers will change, but
    never more than 9.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------
    "Ragdyer" <[email protected]> wrote in message
    news:[email protected]...
    > Are text and numbers in the *same* cell?
    >
    > If they are, post explicit examples.
    > --
    > Regards,
    >
    > RD
    >
    > ---------------------------------------------------------------------------
    > Please keep all correspondence within the NewsGroup, so all may benefit !
    > ---------------------------------------------------------------------------
    > "paul" <[email protected]> wrote in message
    > news:[email protected]...
    >> Using Excel 2003 I want to get the sum of cells containing numbers, but

    > the
    >> these cells also contain some text. I only want the sum of the numbers.
    >>
    >> Please help. P
    >>
    >>

    >




  5. #5
    RagDyeR
    Guest

    Re: Text and numbers

    If your data is in A1 to E1,
    AND
    You only have one letter and one number in a cell, try this *array* formula:

    =SUM(--RIGHT(A1:E1))

    --
    Array formulas are entered using CSE, <Ctrl> <Shift> <Enter>, instead of the
    regular <Enter>, which will *automatically* enclose the formula in curly
    brackets, which *cannot* be done manually. Also, CSE *must* be used when
    revising the formula.


    If, on the other hand, you have *more* then one number combined with the
    single letter, try this *array* formula:

    =SUM(--RIGHT(A1:E1,LEN(A1:E1)-1))

    Don't forget the CSE.
    --

    HTH,

    RD
    =====================================================
    Please keep all correspondence within the Group, so all may benefit!
    =====================================================



    "paul" <[email protected]> wrote in message
    news:[email protected]...
    Okay, here goes. I use W5 in one cell, the next cell in that row might be
    R5. These are the only letters I use, but the numbers will change, but
    never more than 9.
    ----------------------------------------------------------------------------
    ----------------------------------------------------------------------------
    -----------
    "Ragdyer" <[email protected]> wrote in message
    news:[email protected]...
    > Are text and numbers in the *same* cell?
    >
    > If they are, post explicit examples.
    > --
    > Regards,
    >
    > RD
    >
    > --------------------------------------------------------------------------

    -
    > Please keep all correspondence within the NewsGroup, so all may benefit !
    > --------------------------------------------------------------------------

    -
    > "paul" <[email protected]> wrote in message
    > news:[email protected]...
    >> Using Excel 2003 I want to get the sum of cells containing numbers, but

    > the
    >> these cells also contain some text. I only want the sum of the numbers.
    >>
    >> Please help. P
    >>
    >>

    >





  6. #6
    paul
    Guest

    Re: Text and numbers

    Thank you very much. It works fine now. P


    "RagDyeR" <[email protected]> wrote in message
    news:[email protected]...
    > If your data is in A1 to E1,
    > AND
    > You only have one letter and one number in a cell, try this *array*
    > formula:
    >
    > =SUM(--RIGHT(A1:E1))
    >
    > --
    > Array formulas are entered using CSE, <Ctrl> <Shift> <Enter>, instead of
    > the
    > regular <Enter>, which will *automatically* enclose the formula in curly
    > brackets, which *cannot* be done manually. Also, CSE *must* be used when
    > revising the formula.
    >
    >
    > If, on the other hand, you have *more* then one number combined with the
    > single letter, try this *array* formula:
    >
    > =SUM(--RIGHT(A1:E1,LEN(A1:E1)-1))
    >
    > Don't forget the CSE.
    > --
    >
    > HTH,
    >
    > RD
    > =====================================================
    > Please keep all correspondence within the Group, so all may benefit!
    > =====================================================
    >
    >
    >
    > "paul" <[email protected]> wrote in message
    > news:[email protected]...
    > Okay, here goes. I use W5 in one cell, the next cell in that row might be
    > R5. These are the only letters I use, but the numbers will change, but
    > never more than 9.
    > ----------------------------------------------------------------------------
    > ----------------------------------------------------------------------------
    > -----------
    > "Ragdyer" <[email protected]> wrote in message
    > news:[email protected]...
    >> Are text and numbers in the *same* cell?
    >>
    >> If they are, post explicit examples.
    >> --
    >> Regards,
    >>
    >> RD
    >>
    >> --------------------------------------------------------------------------

    > -
    >> Please keep all correspondence within the NewsGroup, so all may benefit !
    >> --------------------------------------------------------------------------

    > -
    >> "paul" <[email protected]> wrote in message
    >> news:[email protected]...
    >>> Using Excel 2003 I want to get the sum of cells containing numbers, but

    >> the
    >>> these cells also contain some text. I only want the sum of the numbers.
    >>>
    >>> Please help. P
    >>>
    >>>

    >>

    >
    >
    >




  7. #7
    Ragdyer
    Guest

    Re: Text and numbers

    You're welcome!
    Thanks for the feed-back.

    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "paul" <[email protected]> wrote in message
    news:[email protected]...
    > Thank you very much. It works fine now. P
    >
    >
    > "RagDyeR" <[email protected]> wrote in message
    > news:[email protected]...
    > > If your data is in A1 to E1,
    > > AND
    > > You only have one letter and one number in a cell, try this *array*
    > > formula:
    > >
    > > =SUM(--RIGHT(A1:E1))
    > >
    > > --
    > > Array formulas are entered using CSE, <Ctrl> <Shift> <Enter>, instead of
    > > the
    > > regular <Enter>, which will *automatically* enclose the formula in curly
    > > brackets, which *cannot* be done manually. Also, CSE *must* be used

    when
    > > revising the formula.
    > >
    > >
    > > If, on the other hand, you have *more* then one number combined with the
    > > single letter, try this *array* formula:
    > >
    > > =SUM(--RIGHT(A1:E1,LEN(A1:E1)-1))
    > >
    > > Don't forget the CSE.
    > > --
    > >
    > > HTH,
    > >
    > > RD
    > > =====================================================
    > > Please keep all correspondence within the Group, so all may benefit!
    > > =====================================================
    > >
    > >
    > >
    > > "paul" <[email protected]> wrote in message
    > > news:[email protected]...
    > > Okay, here goes. I use W5 in one cell, the next cell in that row might

    be
    > > R5. These are the only letters I use, but the numbers will change, but
    > > never more than 9.

    >
    > --------------------------------------------------------------------------

    --
    >
    > --------------------------------------------------------------------------

    --
    > > -----------
    > > "Ragdyer" <[email protected]> wrote in message
    > > news:[email protected]...
    > >> Are text and numbers in the *same* cell?
    > >>
    > >> If they are, post explicit examples.
    > >> --
    > >> Regards,
    > >>
    > >> RD
    > >>

    >
    >> -------------------------------------------------------------------------

    -
    > > -
    > >> Please keep all correspondence within the NewsGroup, so all may benefit

    !
    >
    >> -------------------------------------------------------------------------

    -
    > > -
    > >> "paul" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >>> Using Excel 2003 I want to get the sum of cells containing numbers,

    but
    > >> the
    > >>> these cells also contain some text. I only want the sum of the

    numbers.
    > >>>
    > >>> Please help. P
    > >>>
    > >>>
    > >>

    > >
    > >
    > >

    >
    >



+ 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