Jan 06, 2023 05:49 AM
Hi,
I tried using != Blank() and NOT(Blank()) on several occasions for my formulars and have been getting different results. I'm not sure why.
Is it because only one of the two works and the other is ignored by my formular? Or does it depend on the format that I am trying to evaluate (dates, integers, strings)?
Any help on clarifying this would be greatly appreciated and prevent mistakes in the future.
Jan 09, 2023 03:08 PM
You've mentioned "NOT(Blank())" - but I'm not sure this makes sense?
For example, if I have a Currency Field called "Price" that contains a numeracy value, in another Formula Field, to check if "Price" contains a value or is blank, I would write the formula;
Jan 10, 2023 12:26 AM
Well, if I look at the documentation (https://support.airtable.com/docs/identifying-blank-values) I would have to write Price = Blank(), to check if it is blank. And I am interpreting, that != Blank() would be the way to check if it is NOT blank. But like I said: I've been using != Blank() and NOT(Blank()) with different results. Confusing.
Jan 10, 2023 01:12 AM
Well, to clarify what you're doing, what result are you trying to achieve? What field types are you checking for blank values (Link Fields, Numeric Fields, Email fields etc), and what is the output you're needing in the formula field that's checking if the target fields are blank? In my Not(Price) example, whenever there's a value a 0 will return, if price is blank then a 1 will appear.
Alternatively, in my formula field if I write;
Aug 12, 2024 04:33 AM - edited Aug 12, 2024 04:42 AM
Guys, is this me or is the Airtable way of interpreting empty number fields as True super weird? I come from Python where you can easily use np.isnan(). I have a column with 0,1 and empty values. I want to resolve my logical condition as follows:
0 -> True
1 -> True
empty -> False
i've now wasted 15 min on this to no avail. Any tips?
Ok wtf, it gets even more ridiculous.
Aug 12, 2024 04:35 AM
when the price is zero, it returns a false which is unexpected.