I have successfully troubleshot VLOOKUP issues for years but this one has me stumped. I'm referencing between lists by full names (John Doe, for example) but getting #N/A. I've already tried TRIM (didn't change anything and by inspection I can see that there are no extra spaces in the original data anyway). I also tried Text-to-Columns, which in the past has magically fixed my VLOOKUPs but not now. I also tried a Stack Overflow suggestion to check each pair of names using the CODE function but both have the same numerical Code.
I've attached a sample file containing the issue.
Vlookup Excel File
The problem is that space in between Paul and Casey is not a normal space in B3.
To illustrate I put This in F1:
=CODE(MID($A$1,ROW(1:1),1))
And in G1:
=CODE(MID($B$3,ROW(1:1),1))
And copied down.
32 is what we want but the space in B3 is 160
To fix this we can substitute the 160 for 32:
=VLOOKUP(SUBSTITUTE(B3,CHAR(160),CHAR(32)),A1,1,0)
Related
I'm using counting invoice numbers (text) in a table's column, but the Excel formula seems to be confusing some values.
I copied small sample of these - please refer to below:
The formulas are as follow:
=COUNTIFS(A1:A19,A1)
=COUNTIF(A1:A19,A1)
As you can see these invoice numbers differ and the results of these functions suggest as if all were the same.
I googled it for 1 hour but I didn't find such as issue as mine.
If anybody had any clue why could this behave in such way I'll be super grateful!
Rob
Each time you copy down this formula it will add 1 row to each. For example the second row of datas formula will be =COUNTIFS(A2:A20,A2). To lock these cells in the formula use $
Your formula should be =COUNTIFS(A$1:A$19,A1)
I've solved this myself:
ROOTCAUSE
Excel tried to be helpful and read these invoice numbers as actual numbers (despite these being defined already in Power Query as text)
Then, Excel fooled me and despite showing that it works on it as a string (I was evaluating the formula) it worked on it as number
Above means that it transformed exemplary "00100001010000018525" to 1.00001E+17, which cut down this to "100001010000018000" - that's the moment Excel stopped fooling around and showed that value in the formula bar.
I think I don't need to tell why countif perceived all these values as equal.
SOLUTION
I simply appended one letter after each invoice number to get e.g. "00100001010000018525a" what forces Excel to quit its gimmicks and games.
Case closed.
I suspect this is a bug in COUNTIF, or maybe by design.
However, to workaround this in the formula, without having to change your data, try adding a wild-card character:
=COUNTIF(A1:A19,"*"&A1)
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 am working with an excel file and I am trying to "map" some values with the vLookUp function.
The first parameter of the vLookUp function is giving me headaches: The function works with certains values (typed by hand in a text format)...but doesnt work with pre-generated values (the sames ones...but generated from an ERP system..). I checked to make sure that I was looking for "same nature" values ( text vs text ) ...but I can't find out why the first 3 values (typed by hand) are fine... but the last 3 (pre generated) gives me a #N/A error: It has to be a difference of "format" ..but I can't find out where's the difference...
This is the formula used: =VLOOKUP(D1;$A$1:$B$219;2;FALSE)
The actual file
1008600 379.99 1008600 379.99
1008601 379.99 1008601 379.99
1010600 449.99 1010600 449.99
1010601 449.99 1010601 #N/A
1013600 489.99 1013600 #N/A
1014601 509.99 1014601 #N/A
1015600 569.99
1018603 679.99
1019600 809.99
Thank you !
Using this formula will address the issue highlighted by RocketDonkey
=VLOOKUP(TEXT(D1,"#"),$A$1:$B$219,2,FALSE)
The issue is that you haven't converted you values in column A to numbers. Since the first three values in your lookup range are themselves strings, they are matching the stringified numbers.
In order to fix, click on one of the numbers in column A, press Ctrl+Space to select the entire column, and then click on the exclamation mark and select Convert to number:
After that, you'll notice that your previous values now show errors, so follow the same process to conver them to numbers as well. #nutsch's solution is does not require you to modify your data, so if the type of your data is not crucial, that is a good fix as well :)
This has been a major pain for me as well(Excel is full of stupid assumptions). What I do is copy the entire column to a text editor, change the column to match the lookup column, and copy and paste the data back into the column. This has worked well for me.
May I highlight the little noticeable reply that Barry Houdini came with in 2012 above:
=VLOOKUP(D1&"",$A$1:$B$219,2,FALSE)
that really works (for me in Excel 2010), despite you are dealing with Numbers or a mix of Numbers or Text strings.
Cudos to Barry, you are a truely Houdini
I've got a table made up of a number of tabs and VLOOKUPs. I'm just looking for a way of pulling through a text entry into a cell where there are multiple #N/A's and one text entry.
I've attached a screenshot which hopefully explains what I'm trying to do.
Column E has what I would expect the answers to be with the correct formula. The problem is, the original spreadsheet I'm working on has over 2000 rows (and will be continually updated with more entries). I've tried multiple IF/Or, IF/And as well as Index/Match formulas to no avail.
Not able to attach pics yet but have included a link.
You may have to use ISNUMBER combined with search to get the results that you are looking for.
=IF( ISNUMBER(SEARCH("n/a",B1)),"true","false")
Whilst working with Microsoft Excel, I created a very big formula which has many symbols, and its total string length is about 8047 in Excel 2007. When I researched I saw that the maximum number of characters allowed for a formula is 8129.
I extracted the Excel file and I could see that the Microsoft Excel is applying single quotes ('') before the sheet name, and it varies: for some sheet names there are single quotes but for others, there are no quotes.
Can anyone explain why this is?
I have given below the formula that was represented in the Excel spreadsheet.
SUM(╟!$C$34+╟!$G$26:$K$29+╚!$B$40+╚!$G$33:$K$38+╔!$D$38+╔!$F$35:$I$37+╩!$C$39+╩!$D$36:$F$40+╦!$E$36+╦!$D$37:$F$39+╠!$E$38+╠!$K$24:$M$35+═!$E$40+═!$H$35:$J$39+╬!$I$33+╬!$L$23:$N$33+╧!$F$40+╧!$K$25:$L$35+╨!$G$39+╨!$L$23:$M$34+╤!$G$40+╤!$K$27:$M$38+╥!$G$39+╥!$J$31:$L$37+╙!$H$39+╙!$J$28:$L$39+╘!$H$39+╘!$J$28:$M$34+╒!$I$38+╒!$K$27:$M$38+╓!$H$40+╓!$J$24:$M$34+╫!$H$36+╫!$J$25:$L$38+╪!$I$35+╪!$K$24:$L$34+┘!$I$38+┘!$L$23:$M$34+┌!$I$37+┌!$K$24:$M$34+█!$I$39+█!$K$23:$M$35+▄!$J$38+▄!$K$27:$M$35+▌!$J$38+▌!$L$24:$N$34+'▐'!$J$41+'▐'!$J$30:$L$37+'▀'!$J$37+'▀'!$K$27:$M$38+ї!$G$39+ї!$K$28:$M$34+Ў!$G$41+Ў!$I$33:$J$39+°!$H$39+°!$K$27:$L$35+'∙'!$J$37+'∙'!$J$32:$K$37+·!$H$40+·!$I$29:$K$35+√!$I$39+√!$J$31:$K$38+¤!$I$38+¤!$I$31:$J$36+■!$I$39+■!$J$29:$K$36+' '!$J$34+' '!$J$26:$K$35,Cells!$A$1+Cells!$J$12:$L$15+'Merged Cells'!$A$1:$G$9+'Merged Cells'!$K$24+Styles!$A$1+Styles!$M$10:$M$21+'Row Column'!$A$1+'Row Column'!$L$7:$N$25+'#'!$A$2+'#'!$L$19:$M$31+'!'!$C$2+'!'!$M$10:$M$26+'~'!$H$37+'~'!$M$16:$P$30+'#'!$G$37+'#'!$L$17:$N$33+'$'!$F$35+'$'!$L$17:$M$30+'%'!$G$35+'%'!$L$16:$N$31+'^'!$G$37+'^'!$K$19:$N$32+'&'!$H$38+'&'!$L$17:$N$33+'()'!$H$37+'()'!$L$20:$N$36+'-'!$H$38+'-'!$L$18:$O$34+_!$G$37+_!$L$25:$N$34+'='!$H$36+'='!$K$29:$N$36+'+'!$I$34+'+'!$K$27:$M$35+'|'!$H$35+'|'!$I$32:$L$36+'{}'!$H$36+'{}'!$I$35:$L$38+'`'!$H$37+'`'!$J$33:$M$39+№!$I$36+№!$J$35:$M$39+';'!$G$38+';'!$H$37:$I$39+ё!$G$41+ё!$G$40:$L$44+'"'!$C$30+'"'!$C$30:$D$35+','!$G$39+','!$G$38:$J$39+'.'!$G$37+'.'!$H$35:$H$38+'<>'!$I$35+'<>'!$I$35:$K$36+'1'!$H$37+'1'!$H$36:$J$39+▲!$I$37+▲!$K$30:$L$39+'☺'!$H$36+'☺'!$I$34:$K$37+'☻'!$J$38+'☻'!$L$28:$M$34+♥!$I$37+♥!$K$27:$M$36+'♦'!$I$36+'♦'!$K$30:$M$35+♣!$I$37+♣!$K$34:$L$39+♠!$J$31+♠!$L$31:$N$39+'•'!$H$34+'•'!$I$30:$L$37+'◘'!$K$32+'◘'!$M$19:$O$29+○!$J$35+○!$K$29:$M$35+'◙'!$I$36+'◙'!$L$27:$N$34+♂!$K$32+♂!$M$26:$N$34+♪!$I$35+♪!$M$25:$O$35+♀!$K$34+♀!$L$28:$N$36+'♫'!$I$34+'♫'!$L$30:$M$36+'☼'!$J$37+'☼'!$K$29:$L$36+'►'!$J$39+'►'!$K$33:$M$38+'◄'!$J$38+'◄'!$L$27:$N$35+↕!$L$32+↕!$L$30:$N$36+'‼'!$J$38+'‼'!$K$31:$M$38+¶!$J$33+¶!$L$25:$N$33+§!$K$33+§!$L$25:$N$33+'▬'!$J$39+'▬'!$K$33:$M$38+'↨'!$J$34+'↨'!$L$29:$N$38+↑!$K$35+↑!$M$28:$N$36+↓!$K$37+↓!$L$25:$N$32+→!$L$32+→!$M$16:$P$28+←!$J$39+←!$K$30:$N$38+∟!$J$36+∟!$L$30:$M$36+∟!$J$39+∟!$L$29:$N$37+↔!$I$35+↔!$L$25:$N$30+▼!$J$31+▼!$L$27:$M$34+' '!$K$34+' '!$M$23:$O$33+'0'!$L$33+'0'!$L$31:$O$35+'░'!$J$36+'░'!$M$29:$N$38+▒!$J$39+▒!$K$30:$N$35+▓!$J$35+▓!$K$28:$N$35+│!$K$35+│!$M$29:$O$37+┤!$J$38+┤!$L$31:$N$37+╡!$J$38+╡!$L$31:$M$37+╢!$J$40+╢!$K$34:$M$37+╖!$J$38+╖!$K$33:$L$36+╕!$J$38+╕!$L$32:$M$38+╣!$J$38+╣!$K$24:$N$33+║!$J$38+║!$M$25:$O$36+╗!$J$39+╗!$L$27:$N$37+╝!$J$39+╝!$L$27:$N$38+╜!$J$38+╜!$M$30:$N$38+╛!$J$39+╛!$L$26:$O$37,╟!$C$34+╟!$G$26:$K$29+╚!$B$40+╚!$G$33:$K$38+╔!$D$38+╔!$F$35:$I$37+╩!$C$39+╩!$D$36:$F$40+╦!$E$36+╦!$D$37:$F$39+╠!$E$38+╠!$K$24:$M$35+═!$E$40+═!$H$35:$J$39+╬!$I$33+╬!$L$23:$N$33+╧!$F$40+╧!$K$25:$L$35+╨!$G$39+╨!$L$23:$M$34+╤!$G$40+╤!$K$27:$M$38+╥!$G$39+╥!$J$31:$L$37+╙!$H$39+╙!$J$28:$L$39+╘!$H$39+╘!$J$28:$M$34+╒!$I$38+╒!$K$27:$M$38+╓!$H$40+╓!$J$24:$M$34+╫!$H$36+╫!$J$25:$L$38+╪!$I$35+╪!$K$24:$L$34+┘!$I$38+┘!$L$23:$M$34+┌!$I$37+┌!$K$24:$M$34+█!$I$39+█!$K$23:$M$35+▄!$J$38+▄!$K$27:$M$35+▌!$J$38+▌!$L$24:$N$34+'▐'!$J$41+'▐'!$J$30:$L$37+'▀'!$J$37+'▀'!$K$27:$M$38+ї!$G$39+ї!$K$28:$M$34+Ў!$G$41+Ў!$I$33:$J$39+°!$H$39+°!$K$27:$L$35+'∙'!$J$37+'∙'!$J$32:$K$37+·!$H$40+·!$I$29:$K$35+√!$I$39+√!$J$31:$K$38+¤!$I$38+¤!$I$31:$J$36+■!$I$39+■!$J$29:$K$36+' '!$J$34+' '!$J$26:$K$35,Cells!$A$1+Cells!$J$12:$L$15+'Merged Cells'!$A$1:$G$9+'Merged Cells'!$K$24+Styles!$A$1+Styles!$M$10:$M$21+'Row Column'!$A$1+'Row Column'!$L$7:$N$25+'#'!$A$2+'#'!$L$19:$M$31+'!'!$C$2+'!'!$M$10:$M$26+'~'!$H$37+'~'!$M$16:$P$30+'#'!$G$37+'#'!$L$17:$N$33+'$'!$F$35+'$'!$L$17:$M$30+'%'!$G$35+'%'!$L$16:$N$31+'^'!$G$37+'^'!$K$19:$N$32+'&'!$H$38+'&'!$L$17:$N$33+'()'!$H$37+'()'!$L$20:$N$36+'-'!$H$38+'-'!$L$18:$O$34+_!$G$37+_!$L$25:$N$34+'='!$H$36+'='!$K$29:$N$36+'+'!$I$34+'+'!$K$27:$M$35+'|'!$H$35+'|'!$I$32:$L$36+'{}'!$H$36+'{}'!$I$35:$L$38+'`'!$H$37+'`'!$J$33:$M$39+№!$I$36+№!$J$35:$M$39+';'!$G$38+';'!$H$37:$I$39+ё!$G$41+ё!$G$40:$L$44+'"'!$C$30+'"'!$C$30:$D$35+','!$G$39+','!$G$38:$J$39+'.'!$G$37+'.'!$H$35:$H$38+'<>'!$I$35+'<>'!$I$35:$K$36+'1'!$H$37+'1'!$H$36:$J$39+▲!$I$37+▲!$K$30:$L$39+'☺'!$H$36+'☺'!$I$34:$K$37+'☻'!$J$38+'☻'!$L$28:$M$34+♥!$I$37+♥!$K$27:$M$36+'♦'!$I$36+'♦'!$K$30:$M$35+♣!$I$37+♣!$K$34:$L$39+♠!$J$31+♠!$L$31:$N$39+'•'!$H$34+'•'!$I$30:$L$37+'◘'!$K$32+'◘'!$M$19:$O$29+○!$J$35+○!$K$29:$M$35+'◙'!$I$36+'◙'!$L$27:$N$34+♂!$K$32+♂!$M$26:$N$34+♪!$I$35+♪!$M$25:$O$35+♀!$K$34+♀!$L$28:$N$36+'♫'!$I$34+'♫'!$L$30:$M$36+'☼'!$J$37+'☼'!$K$29:$L$36+'►'!$J$39+'►'!$K$33:$M$38+'◄'!$J$38+'◄'!$L$27:$N$35+↕!$L$32+↕!$L$30:$N$36+'‼'!$J$38+'‼'!$K$31:$M$38+¶!$J$33+¶!$L$25:$N$33+§!$K$33+§!$L$25:$N$33+'▬'!$J$39+'▬'!$K$33:$M$38+'↨'!$J$34+'↨'!$L$29:$N$38+↑!$K$35+↑!$M$28:$N$36+↓!$K$37+↓!$L$25:$N$32+→!$L$32+→!$M$16:$P$28+←!$J$39+←!$K$30:$N$38+∟!$J$36+∟!$L$30:$M$36+∟!$J$39+∟!$L$29:$N$37+↔!$I$35+↔!$L$25:$N$30+▼!$J$31+▼!$L$27:$M$34+' '!$K$34+' '!$M$23:$O$33+'0'!$L$33+'0'!$L$31:$O$35+'░'!$J$36+'░'!$M$29:$N$38+▒!$J$39+▒!$K$30:$N$35+▓!$J$35+▓!$K$28:$N$35+│!$K$35+│!$M$29:$O$37+┤!$J$38+┤!$L$31:$N$37+╡!$J$38+╡!$L$31:$M$37+╢!$J$40+╢!$K$34:$M$37+╖!$J$38+╖!$K$33:$L$36+╕!$J$38+╕!$L$32:$M$38+╣!$J$38+╣!$K$24:$N$33+║!$J$38+║!$M$25:$O$36+╗!$J$39+╗!$L$27:$N$37+╝!$J$39+╝!$L$27:$N$38+╜!$J$38+╜!$M$30:$N$38+╛!$J$39+╛!$L$26:$O$37,╟!$C$34+╟!$G$26:$K$29+╚!$B$40+╚!$G$33:$K$38+╔!$D$38+╔!$F$35:$I$37+╩!$C$39+╩!$D$36:$F$40+╦!$E$36+╦!$D$37:$F$39+╠!$E$38+╠!$K$24:$M$35+═!$E$40+═!$H$35:$J$39+╬!$I$33+╬!$L$23:$N$33+╧!$F$40+╧!$K$25:$L$35+╨!$G$39+╨!$L$23:$M$34+╤!$G$40+╤!$K$27:$M$38+╥!$G$39+╥!$J$31:$L$37+╙!$H$39+╙!$J$28:$L$39+╘!$H$39+╘!$J$28:$M$34+╒!$I$38+╒!$K$27:$M$38+╓!$H$40+╓!$J$24:$M$34+╫!$H$36+╫!$J$25:$L$38+╪!$I$35+╪!$K$24:$L$34+┘!$I$38+┘!$L$23:$M$34+┌!$I$37+┌!$K$24:$M$34+█!$I$39+█!$K$23:$M$35+▄!$J$38+▄!$K$27:$M$35+▌!$J$38+▌!$L$24:$N$34+'▐'!$J$41+'▐'!$J$30:$L$37+'▀'!$J$37+'▀'!$K$27:$M$38+ї!$G$39+ї!$K$28:$M$34+Ў!$G$41+Ў!$I$33:$J$39+°!$H$39+°!$K$27:$L$35+'∙'!$J$37+'∙'!$J$32:$K$37+·!$H$40+·!$I$29:$K$35+√!$I$39+√!$J$31:$K$38+¤!$I$38+¤!$I$31:$J$36+■!$I$39+■!$J$29:$K$36+' '!$J$34+' '!$J$26:$K$35,Cells!$A$1+Cells!$J$12:$L$15+'Merged Cells'!$A$1:$G$9+'Merged Cells'!$K$24+Styles!$A$1+Styles!$M$10:$M$21+'Row Column'!$A$1+'Row Column'!$L$7:$N$25+'#'!$A$2+'#'!$L$19:$M$31+'!'!$C$2+'!'!$M$10:$M$26+'~'!$H$37+'~'!$M$16:$P$30+'#'!$G$37+'#'!$L$17:$N$33+'$'!$F$35+'$'!$L$17:$M$30+'%'!$G$35+'%'!$L$16:$N$31+'^'!$G$37+'^'!$K$19:$N$32+'&'!$H$38+'&'!$L$17:$N$33+'()'!$H$37+'()'!$L$20:$N$36+'-'!$H$38+'-'!$L$18:$O$34+_!$G$37+_!$L$25:$N$34+'='!$H$36+'='!$K$29:$N$36+'+'!$I$34+'+'!$K$27:$M$35+'|'!$H$35+'|'!$I$32:$L$36+'{}'!$H$36+'{}'!$I$35:$L$38+'`'!$H$37+'`'!$J$33:$M$39+№!$I$36+№!$J$35:$M$39+';'!$G$38+';'!$H$37:$I$39+ё!$G$41+ё!$G$40:$L$44+'"'!$C$30+'"'!$C$30:$D$35+','!$G$39+','!$G$38:$J$39+'.'!$G$37+'.'!$H$35:$H$38+'<>'!$I$35+'<>'!$I$35:$K$36+'1'!$H$37+'1'!$H$36:$J$39+▲!$I$37+▲!$K$30:$L$39+'☺'!$H$36+'☺'!$I$34:$K$37+'☻'!$J$38+'☻'!$L$28:$M$34+♥!$I$37+♥!$K$27:$M$36+'♦'!$I$36+'♦'!$K$30:$M$35+♣!$I$37+♣!$K$34:$L$39+♠!$J$31+♠!$L$31:$N$39+'•'!$H$34+'•'!$I$30:$L$37+'◘'!$K$32+'◘'!$M$19:$O$29+○!$J$35+○!$K$29:$M$35+'◙'!$I$36+'◙'!$L$27:$N$34+♂!$K$32+♂!$M$26:$N$34+♪!$I$35+♪!$M$25:$O$35+♀!$K$34+♀!$L$28:$N$36+'♫'!$I$34+'♫'!$L$30:$M$36+'☼'!$J$37+'☼'!$K$29:$L$36+'►'!$J$39+'►'!$K$33:$M$38+'◄'!$J$38+'◄'!$L$27:$N$35+↕!$L$32+↕!$L$30:$N$36+'‼'!$J$38+'‼'!$K$31:$M$38+¶!$J$33+¶!$L$25:$N$33+§!$K$33+§!$L$25:$N$33+'▬'!$J$39+'▬'!$K$33:$M$38+'↨'!$J$34+'↨'!$L$29:$N$38+↑!$K$35+↑!$M$28:$N$36+↓!$K$37+↓!$L$25:$N$32+→!$L$32+→!$M$16:$P$28+←!$J$39+←!$K$30:$N$38+∟!$J$36+∟!$L$30:$M$36+∟!$J$39+∟!$L$29:$N$37+↔!$I$35+↔!$L$25:$N$30+▼!$J$31+▼!$L$27:$M$34+' '!$K$34+' '!$M$23:$O$33+'0'!$L$33+'0'!$L$31:$O$35+'░'!$J$36+'░'!$M$29:$N$38+▒!$J$39+▒!$K$30:$N$35+▓!$J$35+▓!$K$28:$N$35+│!$K$35+│!$M$29:$O$37+┤!$J$38+┤!$L$31:$N$37+╡!$J$38+╡!$L$31:$M$37+╢!$J$40+╢!$K$34:$M$37+╖!$J$38+╖!$K$33:$L$36+╕!$J$38+╕!$L$32:$M$38+╣!$J$38+╣!$K$24:$N$33+║!$J$38+║!$M$25:$O$36+╗!$J$39+╗!$L$27:$N$37+╝!$J$39+╝!$L$27:$N$38+╜!$J$38+╜!$M$30:$N$38+╛!$J$39+╛!$L$26:$O$37)/╫!K6
I think the formula limit applies to the R1C1 version of the formula, which is usually longer than the A1 version you are showing, so you are probably over the limit anyway.
Sheet names are surrounded by single quotes when they contain a space (and possibly other strange characters).
But anyway my advice would be to break this monster formula up into a large number of smaller ones in separate cells. Megaformulae like this are very hard to understand, test and debug.
Charles
As Charles Williams suggests it is the space in the Sheet name.
If you explained what you are trying to do in this formula, it most likely could be simplified.