I have a cell that is where the data type is 'custom' and then [h]:mm:ss. The value in the cell is 66:33:00. When clicking on the cell, the formula bar in Excel shows the value as: 02/01/1900 18:30:00.
I am unable to use functions such as SUM or SUMIFS on this cell as the value keeps returning 0:00:00.
What's the reason this?
You should not use 66:33:00 in SUMIFS. Because this value is only for your eyes. The Excel can work with true value only, i.e. 02/01/1900 18:30:00.
Related
I'm having trouble understanding the result of this function VLOOKUP(A39,'pvtBM ATP'!$A$4:$E$9,5, FALSE).
e.g. in the A39 cell, the value is '< 8 days'
As you can see in this screenshot:
Range From A4:E9 has the data in the image below:
So the highlighted value in the above screenshot has the result of the formula which I'm unable to understand.
How is this function providing the highlighted result?
This is looking up the value of cell A39, from the table in A4:E9, where the value we want is in the 5th column, and the FALSE means we want an exact match of the cell in A39
I am not looking for a specific solution in Excel, just trying to understand a few key difference between certain data types.
Imagine this, I have error code #N/A in cell A1.
I copy and paste this error code in cell A1 as Value (now the red triangle in the top left corner is gone).
I run the following formula in cell B1: =IF(A1="#N/A","Yes","No").
This returns an #N/A error.
But when I change the value in cell A1 to '#N/A, the formula works correctly; it returns Yes in cell B1. If I change the value in Cell A1 to N/A, the formula works correctly as well.
# is being seen by Excel as Text. If for instance I have # in cell A1, and I ask Excel whether this is text using =ISTEXT(A1), Excel returns a True value. If I change the value in cell A1 to #N/A, it is no longer seen as text.
So, my question, why does Excel not treat '#N/A, #N/A, N/A, and # the same?
When the #N/A error code comes up as the result of a formula, Excel is saying "This cell has a not-available type error". When you enter the value of '#N/A into a cell, Excel is saying "This cell has a text/string value of the characters '#N/A". What's happening in each cell is not equivalent to Excel.
You probably want to incorporate the IFERROR or ISNA function into your formula. Right now your code is searching for the later example, the text/string value of '#N/A. You need to use a function that is looking for an error, not a string of text.
My formula:
=IF(ISNA(VLOOKUP(B2,Dists!$D$1:$D$22250,1,FALSE) & AND(B2<>"")),"","MATCHES")
This essentially looks at B2 to see if it returns a VLOOKUP value and if it's blank.
If it's not blank, and VLOOKUP returns a value, then it displays "MATCHES" in the designated cell. If it does not return a value or it is blank, it displays the cell as blank.
I would like to expand on this, but I can't figure it out for the life of me. I am trying to have a cell display blank if B2 is blank, but display "NOT FOUND" if it's not blank and the VLOOKUP returns false. It will display "MATCHES" if the vlookup returns a value.
For example..
B2 is blank so my cell shows as blank.
B2 is not blank and VLOOKUP returns true, so my cell says MATCHES.
B2 is not blank and VLOOKUP returns false, so my cell says NOT FOUND.
Any clue?
Use this:
=IF(B2="","",IF(ISNA(VLOOKUP(B2,Dists!$D$1:$D$22250,1,FALSE)),"NOT FOUND","MATCHES"))
While your code has other structural errors resolved in the answer provided by Scott, your original function =IF(ISNA(VLOOKUP(B2,Dists!$D$1:$D$22250,1,FALSE) & AND(B2<>"")),"","MATCHES") uses the AND() function incorrectly.
AND(), OR(), XOR(), and NOT() in Excel are placed before the different condition. For example, =IF(OR(A1="Foo",A1="Bar"),"Yes","No") returns YES when A1 contains either Foo or Bar.
Microsoft Office Support - AND() function
I wrote this formula in an Excel cell:
=IF(VLOOKUP(A2, VS!$B2:$B98,1,FALSE ),A2,NA)
What I want to do is, if it finds the A2 value in VS table from B2 to B92 then the function will return and input the value in A2 (in VS table) to my current table. But instead of getting the A2 values, which are text values, I got #VALUE!.
How can I solve it?
Try the following:
=IFERROR(VLOOKUP(A2,VS!$B2:$B98,1,FALSE),"")
What this does is return the value if it finds A2, in the range B2:B98, it doesn't find A2, it returns "" (blank), instead of #VALUE.
Secondly if you're planning on extending this formula, you may want to make the table more 'strictly typed' by adding '$' before the numbers so the range doesn't shift:
=IFERROR(VLOOKUP(A2,VS!$B$2:$B$98,1,FALSE),"")
Lastly, try right click -> Format Cells... and format column A as 'Text' and column B (on sheet VS) as Text as well. Sometimes Excel's Autoformatting features mess with vlookup's results.
I'm using the following formula:
=IFERROR(VLOOKUP($A42,SHEET2!$A$2:$N$91,11,FALSE),"")
Of the 100 plus rows of data, the formula has returned correct data. For the cells where the formula returns incorrect data, it appears that data from the preceeding cell (which had returned a correct value) is being returned.
For example, if in column 11 of SHEET2, the VLOOKUP value weight for product #246 is 0.04. Products #247-#300 should return the weight of 0.02. However, the formula returns 0.04.
I've painted the format for the cells that work on each sheet over the cells that haven't been working. Nothing has changed.
Any ideas?
Sounds like you have Calculation set to manual - Change that to Automatic by using "Calculation Options" to the right of the "Formulas" tab .......or just press F9 key to re-calculate