Forum Discussion
formulas
Hi,
You can add up a column of numbers even if there are some cells in that column have texts!
This can be done by using SUM function as the below Example:
The formula in cell A11 is this:
=SUM(A1:A10)
This is because the SUM function is programmed to ignore texts.
I hope this helps you
Regards
HI
Thank you, but no this is what i meant sorry
K1 | P2 | K7 | P2 | K12 | P1 | K12 | P2 | K7 | P2 | K12 | P1 | K12 | P2 | K7 | P2 | K1 | ||||||||||||||||||||||
K2 | P3 | K3 | P3 | K2 | P10 | K3 | P10 | K2 | P3 | K3 | P3 | K2 | P10 | K3 | K10 | P2 | K3 | P3 | K3 | P2 | ||||||||||||||||||
P1 | K3 | P2 | K1 | P2 | K3 | P2 | K9 | P3 | K9 | P2 | K3 | P2 | K1 | P2 | K3 | P2 | K9 | P3 | K9 | P2 | K3 | P2 | K1 | P2 | K3 | P1 | ||||||||||||
P3 | K2 | P3 | K2 | P3 | K2 | P7 | K2 | P1 | K2 | P7 | K2 | P3 | K2 | P3 | K2 | P3 | K2 | P7 | K2 | P1 | K2 | P7 | K2 | P3 | K2 | P3 | K2 | P3 | ||||||||||
K2 | P2 | K2 | P1 | K2 | P2 | K3 | P2 | K6 | P2 | K1 | P2 | K6 | P2 | K3 | P2 | K2 | P1 | K2 | P2 | K3 | P2 | K6 | P2 | K1 | P2 | K6 | P2 | K3 | P2 | K2 | P1 | K2 | P2 | K2 | ||||
P1 | K2 | P2 | K3 | P2 | K2 | K3 | P2 | K4 | P2 | K3 | P2 | K4 | P2 | K3 | P2 | K2 | P3 | K2 | P2 | K3 | P2 | K4 | P2 | K3 | P2 | K4 | P2 | K3 | P2 | K2 | P3 | K2 | P2 | K1 | ||||
P2 | K2 | P2 | K1 | P2 | K2 | P2 | K3 | P2 | K3 | P2 | K3 | P2 | K3 | P2 | K3 | P2 | K2 | P2 | K1 | P2 | K2 | P2 | K3 | P2 | K3 | P2 | K3 | P2 | K3 | P2 | K3 | P2 | K2 | P2 | K1 | P2 | K2 | P2 |
K1 | P2 | K2 | P3 | K2 | P2 | K2 | P3 | K2 | P1 | K2 | P5 | K2 | P1 | K2 | P3 | K2 | P2 | K2 | P3 | K2 | P2 | K2 | P3 | K2 | P1 | K2 | P5 | K2 | P1 | K2 | P3 | K2 | P2 | K2 | P3 | K2 | P1 |
Haytham Amairah wrote:Hi,
You can add up a column of numbers even if there are some cells in that column have texts!
This can be done by using SUM function as the below Example:
The formula in cell A11 is this:
=SUM(A1:A10)
This is because the SUM function is programmed to ignore texts.
I hope this helps you
Regards
- Sep 16, 2018
Hello,
if that is your data, what do you want to calculate? Can you give some examples of the expected output and the logic that leads to the result?
For example, if you want to sum the numbers for each column, you can use a formula that
- strips off the first character =mid(A1,2,4)
- converts the result into a number =numbervalue(mid(A1,2,4))
- applies that to more than one cell =numbervalue(mid(A1:A8,2,4))
- and since that cannot be shown in a cell, feed this into the Sumproduct function to calculate the sum of all the values =SUMPRODUCT(NUMBERVALUE(MID(A1:A8,2,4)))
In the following screenshot, this formula has been applied to cell A9 and copied across. If you want to do different calculations, please explain.
- Haytham AmairahSep 17, 2018Silver Contributor
Hi,
I advise you to try the solution provided by IngeborgHawighorst, it also works for a grid of cells such as A1:C8 as follows:
=SUMPRODUCT(NUMBERVALUE(MID(A1:C8,2,4)))
Regards