I have a row containing cells with different formatting
they look the following
85
32%
45
23%
11
5%
the result i need to achieve is to SUM only the number formatted cells (not the percentage ones) without any additional rows. No clue how to do it.
Thanks so much.
Asuumuing your data is in A1:A6
=SUMIF(A1:A6,">"&1)
Unfortunately this will only work if all numbers in range are positive, I've just tried this with a larger dataset and is excluded negative values - wish I could provide a better solution but I don't know one.
Related
Okay so as you can see each column has a value of 1-3. Currently there's just a basic formula at the end that works out the percentage by adding whats there and then dividing by the total possible if every column was 3 and then multiplying by 100.
My problem is I would like to put 'n/a' down as a result sometimes where a number value/score wasn't relevant. But when it comes to calculating the percentage it would be marked lower since it would be three less than the total possible.
So I assume there a few different ways I could tackle this problem, either by a formula that calculates the possible total based upon only the cells that have a numerical value or a formula which reads n/a as the value 3. But I can't seem to find something that works.
Please help, thanks.
You can do this:
The countif() counts the n/a and multiplies by 3 to be subtracted from the 24.
Okay I think I figured this out and the solution was far more simple that I thought it would be.
Originally the Score as % formula was =SUM(T14/24*100) 24 being the total is all cells were 3.
So what I've done is add a new column called possible total with the formula =COUNT(K14:R14)*3 As the count function only counts cells that have a numerical value, thus will ignore any cells with n/a and since 3 is the maximum value that can be entered into the cell I've multiplied the count by 3.
Then it was a simple case of changing the score formula to =SUM(T14/S14*100) where the S column will be the new possible total.
DESPERATE for any help :-)
I need to exclude 0 values from my =COUNT excel formula in order to get an automated frequency value feeding another formula in my model.
Actual Base Formula:
=COUNT(J10,J11,J12,N10,N11,N12,J14,J15,J16,N14,N15,N16)
I am trying to get the formula to NOT count when any of these cells have O values. For instance, if J10 is greater than 0, include it in the count.
I have tried several different "IF" statements, but am failing miserably!
I basically need to dummy proof this by automating it versus having users simply count the cells with values and enter the number into the frequency field for my score calculator. Thanks so much for any help!!
Since your range is disjointed the best method is four(4) countifs:
=COUNTIF(J10:J12,">0")+COUNTIF(N10:N12,">0")+COUNTIF(J14:J16,">0")+COUNTIF(N14:N16,">0")
Fixed based on the comments.
=COUNTIF(J10:J12,">0")+COUNTIF(N10:N12,">0")+COUNTIF(J14:J16,">0")+COUNTIF(N14:N16,">0")
Cell A2: 5555550000
Cell A3: 5555550003
Trying to find a way to count the number of phone numbers in this range. The cheat way is:
=A3-A2+1
This would give me "4" because the first phone number actually is a value that needs to be calculated. Such is the case with a range like 5550000-5550099 which is 100 numbers, not 99.
Is there a function in excel that actually does the same thing as my cheat formula? I'm in the mood to learn something. Upon searching the internet, I didn't find anything that could help me in this case.
Thanks!
For many small and large blocks Excel can help. With the lower limit of each in ColumnA and the upper in ColumnB (a repeat of the A value where a single number 'range') then summing the two columns (say in Row12) and:
=B12-A12+COUNT(A1:B11)/2
should give the total. This is barely easier than B1-A1+1 - very similar to your approach - and then copying down and summing but may have a slight advantage in that it might be used as a template, where if the totals are in a row with high enough number there will always be empty rows available (and the result always in the same cell). The +1 in the shorter formula would not allow that, though would easily be overcome with:
=IF(A1<>0,B1-A1+1,0)
I have an excel file that uses formulas to calculate the percent of incentive generated. I have been asked to set up cell (G14) to never exceed 7% no matter what the values of cells C6,D6 and E11 are changed to. This is weird for me because the percentage should either go up or down depending on those values.
Can anyone help me figure out what can be done to lock this cell from exceeding 7%? hereĀ“s a link to the file http://1drv.ms/1El030y
Thanks
You just need to set a maximum value on it:
=min(0.07,F14+$F$11)
Use an IF() statement?
=IF(F14+$F$11>0.07,0.07,F14+$F$11)
I have a list of 1s and 0s in excel ranging from A1:A74 and I am looking to work out what the current streak of 1's is.
For example I have:
1
0
1
1
1
I would want the streak to give me 3.
I have tried the following formula which seems to work for smaller ranges, but for my full set it gives me the wrong amount:
=COUNTA(A1:A73)-MATCH(1,INDEX(1/(A1:A73=0),0))
Any help would be much appreciated.
edit - I believe i've fixed the formula above to work:
=COUNTA(S$2:S$74)-MATCH(2, 1/(S2:S$74=0), 1)
This is basically finding the last position of 0 and minusing this from the overall number of rows which have values.
As Above, I've figured out the answer to my own question by just simplifying exactly what I needed to do and it became very obvious:
=COUNTA(S$2:S$74)-MATCH(2, 1/(S2:S$74=0), 1)
This is basically finding the last position of 0 and minusing this from the overall number of rows which have values.
If you can afford a helper column then there is another very easy way to do this.
Enter this formula in B2 (or any other cell in row 2(Assuming you are using a header)) and copy it down.
=IF(AND(A2=0,A3=0),B1+1,1)
You can then pick up the maximum value from this range and if required hide the column.