How to SUM Cells with same text on Excel? [closed] - excel

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 7 months ago.
Improve this question
I have something like that on Excel
row
G
H
2
Manual
810
3
Manual
600
I want the Cell to check if any G column says Manual, and for every one it does it will then SUM the H column, if it doesn't, it does nothing, the only way I could do it was as bellow:
=IF(((G2)="Manual");SUM(H2);"")+IF(((G3)="Manual");SUM(H3);"")
If I try something like:
=IF((($G$2:$G$3)="Manual");SUM($H$2:$H$3);"")
It just give me an error stating an array value could not be found
I have other 99 items and I would like to keep it as clean as possible, can anyone assist?

Below all formula should work for you.
=SUMIFS(H:H,G:G,"Manual")
=SUMPRODUCT((H:H)*(G:G="Manual"))
=SUM(FILTER(H:H,G:G="Manual"))
=SUM(IF(G:G="Manual",H:H,0))

Related

MS Excel - replicating a series of cells [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 9 years ago.
Improve this question
I have the following data in a spreadsheet:
I
I need a formula/workaround that would give me the following:
Thanks,
You can reference and repeat data by using the INDEX function.
Placing the formula =INDEX(A:A,FLOOR((ROW()+4)/5,1),1) into a cell on the first row (B1, C1, etc.) and copying down will repeat everything in column A 5 times.

Functions constantly returns a '0' [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
A1 = 317.84, B1 = 422.79.
Cell A1 and B1 performs a SUM on couple of numbers that are calculated through basic math operators and a ROUND function.
Calling the following function in a nearby cell:
=SQRT(A1*A1+B1*B1) constantly yields a 0.
Edit: this actually applies to any function that contains any of those two cells
Now this problem is reproducible but clearly doesn't make any sense.
Some Information That Might Help
Working on Excel 2010
I did add some VBA code but it has nothing to do with the functions
A download link of the file:
http://speedy.sh/QaZ7Z/.xlsm
http://speedy.sh/bfMZM/.xlsx
See cells BY35:BW35
Any ideas what might lead to that?
The reason is that you have circular references in BX68, BW68, BU68, BS68, BR68. Change in each of this cells 68 to 67. Correct formulas:
BX68: =SUM(BX65:BX67)
BW68: =SUM(BW65:BW67)
BU68: =SUM(BU65:BU67)
BS68: =SUM(BS65:BS67)
BR68: =SUM(BR65:BR67)
A guide for finding circular references easly: http://blogs.mccombs.utexas.edu/the-most/2012/06/22/find-circular-references-in-excel/

sum values in a column with if statement in Excel [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I need to sum the integer values in a column in my excel spreadsheet. I also need to consider 2 to be 1. for example, I have the following column:
./.
./.
1
2
2
./.
./.
./.
0
To get the sum, I need: sum(A1:A11), but how do I count 2 as 1 for the summation?
What about other numbers, does 3 count as 3....or are there only 1s and 2s? if the latter perhaps use COUNTIF like this
=COUNTIF(A2:A10,">=1")
Make a second column with a formula like
=IF(A1=2;1;A1)

Replace values between range to single value [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a column with numerical data in cells ranging from 1 to 500.
I want to replace numbers 1,2,3,4,5,6,7,8,9 with string "1-9".
Meaning
If cell has 1 then replace with "1-9".
If cell has 22 replace with "20-29"
And so on.
What is the formula to do this?
Please help.
Here is a crude way:
=IF(LEN(A1)=1,"1-9",IF(LEN(A1)=2,LEFT(A1,1)&"0-"&LEFT(A1,1)&"9",IF(LEN(A1)=3,LEFT(A1,2)&"0-"&LEFT(A1,2)&"9")))
Examples
1 1-9
22 20-29
488 480-489
Assumes your values are listed in column A.

Formula to Detect Certain Range [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
This question does not appear to be about programming within the scope defined in the help center.
Improve this question
I have an excel that looks like this:
I need a formula that will prompt 'NOK' (or 'OK') when the size is not with the range (Lowest & Highest). The expected output should looks like this:
For O2, your formula would be:
=IF(AND(L2<=M2, L2>=M2),"OK","NOK")
and of course, you can drag it down for all other cells under column O

Resources