Ok so the issue is a spreadsheet where the goal is to check if two columns end up equaling the same. One column has the 'goal result' and the other column is usually a formula. (A starting number, plus a number of changes that haven't yet been issued in the paperwork, should equal the 'goal result.)
There's a third 'check column' that will display either TRUE or FALSE depending on whether the two have equal values.
Now the issue is that sometimes, for no reason I can discern at all, the 'check column' will display FALSE even though the result values are clearly the same. There's no change in format, no difference in cell structure or formula structure. I appreciate that one shows a formula and one doesn't but my spreadsheet it massive, hundreds of rows, so there's no reason this should only be an issue in 1/50 or so cells.
A snippet example
An example of the formula in the working (top) row.
An example of the formula in the row working differently
The forumla that generates the TRUE or FALSE is as simple as "=H=I" (With the cell numbers obviously.)
EDIT: Thanks for the great response guys. The rounding solution worked. There was only addition and the true value IS only two decimals so I still don't quite understand why that would be an issue but I've replaced the formula throughout the sheet anyway, to be safe. Thanks again!
Related
I am trying to create a formula that checks for several things at the same time but I am having trouble with one part of it.
The formula is the following:
=IF(COUNTIFS($N$2:$N$17095,N3,$K$2:$K$17095,"<>"&"")>6,
IF((SUMPRODUCT(--(ROUND($K$2:$K$49,2)=ROUND(K3,2)))>9),"Always Late / Possible Automation",
IF(COUNTIFS($N$2:$N$17088,N3,$K$2:$K$17088,"<3.5")>0,"Delivered Earlier At Least Once",IF(COUNTIFS($N$2:$N$17088,N3,$K$2:$K$17088,">3.5")>6,"Always Late","False"))))
The first part checks how many entries in the range having the same value as it is in cell N3 have values different to blank and we want those to be more than 6.
Second part is the tough one, it is supposed to check how many values in the rounded range match the rounded value in cell K3. The issue is the formula checks the whole range and I want to check only for the values which match N3 (in essence like the CountIf works only for that value).
The rest is not so relevant.
Some example data:
![enter image description here][1]
As you see in the end of the table the formula with the rounding works but only because I have limited the data shown to 3 unique values in column N. Even here though if i have a blank it doesnt work becaus ei haven't considered it.
Thanks in advance.
Assuming you have Office 365 compatibility/Excel version, use a bunch of filters. To avoid an unwieldy formula I've extended ranges to maximum number of rows (customize as required)...
=LET(x_,$E$3:$E$25,a_,FILTER($E$3:$E$25,--(x_=E3)),b_,FILTER($B$3:$B$25,--(x_=E3)),IF(SUM(--(a_=E3)*(b_<>""))>6,IF((SUMPRODUCT(--(ROUND(b_,2)=ROUND(B3,2)))>9),"Always Late / Possible Automation",IF(SUM(--(a_=E3)*(b_<3.5))>0,"Delivered Earlier At Least Once",IF(SUM(--(a_=E3)*(b_>3.5))>6,"Always Late","False")))))
Note: filter does not appear to work too well within countifs for some reason (must be related to syntax RE: arrays vs. criteria TBC). Thus have replaced countifs(filter_range,X) eqn 'types' with sum(--(filter_range=X)) which works as intended.
=VLOOKUP($I2&"|"&$J$1,MatrixD!A1:D5030,4,0)
That's my formula for the problem I am having. So the problem is this will return the proper value for say the first ten values when dragged down then it will show N/A for the remaining values that are exactly a like. The other problem is if I manually go and write the formula in it gets a value. So why does it works for some and not for others when everything is the same and i've checked for spaces and formatting issues everything came back true when tested.
For a little more context it is looking for a value in a helper row (ex.ABC|123)
so the first part of the formula is putting together the value it should look for since there are eight things for each ABC.
Dragging down MatrixD!A1:D5030 it does not remain "exactly the same" - Excel automatically adjusts the range when not anchored (with $s).
So I've got this system here where I'm tallying up a score difference.
Here is the formula I have for this cell:
=IF(SUM(P6:X6)>0,Y5-Z5,N5-O5)
The thing is when there is no sum (as in the cells in the formula are blank), I'm left with the 0 in this cell and I'm wanting it to just be blank like the others. The only thing is the cells it is referring to are formulas themselves, so when I've tried to do ISBLANK and such it didn't work. I want it to check whether Y5 has a number in it. If it does, then my cell does the formula above, if not, then returns blank. The only other thing is I need it to be able to state 0 as well so simply hiding 0 won't work. I'm confused as to how I can get that to do it, I'm sure there's a way though.
If it helps to understand, I'm doing a golf scoresheet. The cell in question is the total score. So could be -10 or 0 or 20. Y5 is the total strokes. I'm wanting the cell to be blank if nothing is on the scorecard. But I also need it to be able to say 0 if the score actually goes 0. P-X column is holes 10-18. The reason "(P6:X6)>0" is there, so the score only reflects holes 10-18 if those were played, whereas it will show the score relative for the first 9 holes instead if not. Hope that makes sense.
Maybe you could use ISNUMBER() for your Y5 cell.
Then, if TRUE, you use the formula.
Else, you return "".
=IF(ISNUMBER(Y5),IF(SUM(P6:X6)>0,Y5-Z5,N5-O5),""))
Is that what you are aiming for ?
Hope it helps.
Change the cell number format to,
general;general;;general
In fact, the number format couls be much more specific than that but you are short on details. The main point is that the third argument's format mask is blank. This halts the display of zero values.
A custom number works like this
<positive>;<negative>;<zero>;<text>
Test the cases separately:
=IF(SUM(P6:X6)>0,IF(AND(Y5="",Z5=""),"",Y5-Z5),IF(AND(N5="",O5=""),"",N5-O5))
You can use COUNTBLANK; it will count a cell as blank even if the cell's contents is a formula that results in blank. The formula below has holes 1-18 in columns A-R with a total in column S. If all cells are blank, the result is blank. If any of the cells contain numbers, the result is a number (zero, positive or negative).
=IF(COUNTBLANK(A2:R2)=18,"",SUM(A2:R2))
Managed through lots of trial and error to solve it myself. Thanks to all those that posted.
Here was what I came up with which seems to work well:
=IF(SUM(P8:X8)>0,SUM(Y7-AA7), IF(SUM(E8:M8)>0,SUM(N7-O7),""))
I came across an interesting issue today that I can't seem to find a solution on the internet for. I have a formula that looks like this:
=IFERROR(INDEX(Table,MATCH(1,(Table,Col1=A1)*(Col2= B1),0),3),"NOPE")
The formula works correctly, but in some cases where the return value is 0 (i.e. the value is blank in column 3 that is being returned, but there are appropriate matches in Col1 and Col2) something wonky happens. When I execute the formula the 0 value shows briefly and then slowly fades to blank. When you copy the cell and try to paste the value plain text it is also blank. What concerns me is this only happens in some cases, other cells have a 0 value returned and it remains in the cell.
My best guess is it has something to do with the cell formatting (even though it is set to general for all cells), but I'm at a loss. This doesn't really impact the performance of the spreadsheet, but it looks sloppy having some cells with 0's and others that are blank even though they indicate the same result.
Any help would be greatly appreciated.
Edit 2: Changed the values from numeric to text 1=A, 2=B, etc. and this did not solve the problem, there are still some stubborn cells with the issue described above.
EDIT 3: Haven't had any luck fixing the issue. My work around for the time being is IF(original formula)= 0,"", (original formula)) for uniformity so empty results are returned as a blank and not a 0 or blank. Strangely, I tried IF(original formula)= 0,0, (original formula)) and the zero still faded in some cells.
I have had this happen before. I suspect you might be using Office 365, and a recent update threw Excel on this one. What I got to work is to create a new worksheet, format the column in question from the beginning as a number (or currency), and then enter the formula into the cell (do not copy from the other worksheet). Paste this formula down and it should be a consistent "0" or "-".
I also have found that it helps to save the file as a ".xlsb" for larger files. This tends to add stability in all areas.
I'm trying to get some cells from a column to matchup in one of my sheets, however they get completely different answers than they should. I've made 2 exact same formulas, one which was a test and works, and the other one that I need to get working but doesn't work:
I can't post images because of 10 needed reputation but following link shows the problem:
http://gyazo.com/23ce860234ad74b7c287e638c64d5d2f
Notice that I'm swedish, therefore the "LETAUPP" instead of "VLOOKUP". The first formula works perfectly and get's the right numbers each time. However the second picture gets a number that doesn't match. You can see the correct numbers in F1 and F2 for "Upplands Väsby" and "Vallentuna". The numbers they get now are on row 270, matching with "Dorotea". How come they don't get "0114" and "0115" as they should?
The syntax for the VLOOKUp formula is:
=VLOOKUP("Fontana",B2:E7,2,[TRUE/FALSE])
You should specify either true or false in your formulas. If you want to get the exact values you should add false to your formula, examples.