If statement returning [true value] when blank

Blobajob88

Board Regular
Joined
Mar 27, 2020
Messages
55
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I've written an IF statement on excel as shown below. However I would expect the cell K132 to say "false" when the value is blank but it returns "true". Why is this? It is unique to this sheet of my workbook. When I try it on other sheets, it returns false as expected. Any help would be appreciated.

1676367109495.png
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
From your image we have no idea which cell is K132.
Also, your description sounds like the formula is in cell K132 yet the formula you posted refers to K132 which does not make sense.

Perhaps you could post the sample data again with XL2BB and explain in relation to the new post data.
 
Upvote 0
From your image we have no idea which cell is K132.
Also, your description sounds like the formula is in cell K132 yet the formula you posted refers to K132 which does not make sense.

Perhaps you could post the sample data again with XL2BB and explain in relation to the new post data.
The cell in blue is K132. The formula is in L132. When K132 is blank, it returns "TRUE" in L132, when it should return "FALSE"
 
Upvote 0
The cell in blue is K132. The formula is in L132. When K132 is blank, it returns "TRUE" in L132, when it should return "FALSE"

So when you said this..

.. did you mean "I would expect the cell L132 to say false"?


Does K132 contain a formula? If so, what is that formula?
The formula is in the top of the image if(K132="y", "TRUE", "FALSE"). So L132 should say "FALSE" when empty. K132 is where the values are inputted, the formula is in L132 only
.
 
Upvote 0
The formula is in the top of the image if(K132="y", "TRUE", "FALSE").
Surely that is the formula in L132?

I asked about any formula in K132.

Most of these questions could be avoided if you posted the sample with XL2BB as suggested.
 
Upvote 0
Surely that is the formula in L132?

I asked about any formula in K132.

Most of these questions could be avoided if you posted the sample with XL2BB as suggested.
Yes, that is the formula in L132 like I said. The formula is in L132 only. There are no formulas in K132. It would be immediately overwritten when I input a value anyway. The only formula to concern yourself with is the if statement mentioned above.
 
Upvote 0
There are no values in K132.
Then, based on your image, there is no reason why L132 would return "TRUE". If it is returning "TRUE" then there must be something happening in your worksheet/workbook that is not evident from the image. Again, that is why XL2BB could help.
 
Upvote 0
What happens if you put this in cell M132?
Excel Formula:
=LEN(K132)
 
Upvote 0

Forum statistics

Threads
1,215,593
Messages
6,125,716
Members
449,254
Latest member
Eva146

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top