A simple =IF statement checks a value in a cell on a different worksheet for TRUE/FALSE and performs the string paste accordingly. I have removed the "" from around the boolean TRUE/FALSE.
The boolean values are copy/paste value from another workbook. Some formulas will update, many will not until I manually retype the TRUE/FALSE values into the cells, and even after that there are still formulas that refuse to update.
I have manually types TRUE into Table G20 multiple times, the above formula is still evaluating FALSE and placing the -SPARE at the end of the string.
=IF('Table'!G20=TRUE,"YES","NO")
I just ran that in a blank unused cell, it is evaluating to NO. That is the incorrect output. Table G20 clearly has TRUE typed in that cell and it is formatted General.
side note: After typing true and not TRUE in the cell allowing for Excel to convert to boolean and force to uppercase, the formula functions as expected and removes the -SPARE from the string and the short test code evaluates to YES.
What is wrong with Excel and my formula?
The boolean values are copy/paste value from another workbook. Some formulas will update, many will not until I manually retype the TRUE/FALSE values into the cells, and even after that there are still formulas that refuse to update.
Code:
=IF('Table'!G$20=TRUE,$B$4&"_AI"&M26&"-"&C26&" "&F26,$B$4&"_AI"&M26&"-"&C26&" "&F26&"-SPARE")
I have manually types TRUE into Table G20 multiple times, the above formula is still evaluating FALSE and placing the -SPARE at the end of the string.
=IF('Table'!G20=TRUE,"YES","NO")
I just ran that in a blank unused cell, it is evaluating to NO. That is the incorrect output. Table G20 clearly has TRUE typed in that cell and it is formatted General.
side note: After typing true and not TRUE in the cell allowing for Excel to convert to boolean and force to uppercase, the formula functions as expected and removes the -SPARE from the string and the short test code evaluates to YES.
What is wrong with Excel and my formula?
Last edited by a moderator: