87563, 8930, 98279 are in one cell I'd like to have the total in another
colum, the total of numbers not the sum, e.g. 3
Thanks,
The formula *must* be entered in the cell to the immediate right of the cell
that you want to sum. For example:
E1 = 87563, 8930, 98279
The formula *must* be entered in cell F1.
Create this named formula.
Select cell B1. ***this is important***
Goto the menu Insert>Name>Define
Name: ESum (or whatever name you want to use)
Refers to:
=EVALUATE(SUBSTITUTE(A1,",","+"))
OK out
Then:
E1 = 87563, 8930, 98279
Enter this formula in **F1** :
=ESum
--
Biff
Microsoft Excel MVP
"pandd15" <pan...@discussions.microsoft.com> wrote in message
news:C320B08F-CC79-42BD...@microsoft.com...
=SUMPRODUCT(--TRIM(MID(SUBSTITUTE(A1,", ",REPT(" ",99)),
(99*(ROW(INDIRECT("1:"&LEN(A1)-LEN(SUBSTITUTE(A1,",",""))+1))-1))+1,99)))
Download and install the free Morefunc.xll add-in from:
http://xcell05.free.fr/morefunc/english/index.htm
Alternate download site:
http://www.download.com/Morefunc/3000-2077_4-10423159.html
The use this formula (entered anywhere!):
=EVAL(SUBSTITUTE(E1,",","+"))
--
Biff
Microsoft Excel MVP
"T. Valko" <biffi...@comcast.net> wrote in message
news:OjO1sXMM...@TK2MSFTNGP05.phx.gbl...
a b c
d
1 700-2, 88-00,
900-4, 33-00,
2
3
Thanks so much.
>>Is there a formula that will add these numbers?
>>87563, 8930, 98279
The "numbers" you just posted don't look anything like the the numbers you
posted in your original sample!
What are the dashes for?
If these are the numbers:
>700-2, 88-00,
>900-4, 33-00,
Then what results do you expect?
What about that last comma? If there is not another number why is it there?
--
Biff
Microsoft Excel MVP
"pandd15" <pan...@discussions.microsoft.com> wrote in message
news:0074A42A-1C91-460D...@microsoft.com...
Thanks for your quick response.
=LEN(A1)-LEN(SUBSTITUTE(A1,",",""))
Ok, so this leaves me even more confused!
If the result you expect is 4 then you must want to COUNT the "numbers", not
SUM them.
If that's the case then counting the number of commas will work as long as
every cell is in the same format:
number, number,
If you also have cells like this:
number
number, number
Then you'll have to let us know.
--
Biff
Microsoft Excel MVP
"Glenn" <add...@not.valid> wrote in message
news:O4nzjqYM...@TK2MSFTNGP04.phx.gbl...
=LEN(TRIM(A1))-LEN(SUBSTITUTE(TRIM(A1)," ",""))+1
=SUMPRODUCT(TEXT(MID(A1&".",257-COLUMN(A:IV),1),"0;;0;\0")*10^(COLUMN(A:IV)-
LOOKUP(COLUMN(A:IV),COLUMN(A:IV)/ISERR(-MID(A1&".",257-COLUMN(A:IV),1)))-1))
Thanks,
=SUM(--(FREQUENCY(COLUMN(A:IV),COLUMN(A:IV)*ISERR(-MID("."&A1&".",COLUMN(A:IV),1)))>1))
=LEN(TRIM(SUBSTITUTE(A1,","," ")))-LEN(SUBSTITUTE(TRIM(SUBSTITUTE(A1,",","
"))," ",""))+1
I have dates in several columns that track how long a processes take. These
dates are manually added however the process may still be incomplete thus
leaving a blank in that column. These blank columns are causing my
calculations to have incorrect #'s. Is there a way I can leave a cell blank
without having this happen?
Probably, but without more information about your data layout and existing
formulas, a specific answer is not likely.