Microsoft Excel
(1)
Excel
(1)
SUM
(1)
Errorhowever
(1)
Gsnu200909
(1)
Mixture
(1)
Ab123
(1)

Excel - Ignoring the contents of cells when there are letters in the cell

Asked By James McErlain
20-Jan-10 02:01 PM
When using MS Works I can enter letters and numbers in a cell and the total of the cells in a row will be calculated correctly(for my particular requirement) by ignoring anyone of the cells in the row which has letters and numbers together. All the cells are formated as 'General'.



When I try to do this task in Excel it gives an error in the result cell.

Note that any cell may have a mixture of letters and cells.

Any help would be appreciated.



Thank you

James

Use the SUM function.

T. Valko replied to James McErlain
20-Jan-10 02:15 PM
Use the SUM function.

=SUM(A1:A3)

Instead of doing this:

=A1+A2+A3

The SUM function will ignore any cells that contain text.

--
Biff
Microsoft Excel MVP

If A1 thru A3 contain:1junk3then =A1+A2+A3 will show an errorhowever

Gary''s Student replied to James McErlain
20-Jan-10 02:45 PM
If A1 thru A3 contain:

1
junk
3

then =A1+A2+A3 will show an error
however =SUM(A1:A3) will show 4
This is because the SUM() function ignores text.
--
Gary''s Student - gsnu200909

SUM function ignores text cells.

Gord Dibben replied to James McErlain
20-Jan-10 02:48 PM
SUM function ignores text cells.

ab123  is text

123 is a number

=SUM(A1:A10) will sum cells with numbers only.


Gord Dibben  MS Excel MVP
Post Question To EggHeadCafe