首页
\
问答
\
VLOOKUP返回空白为1/0/1990,而不是什么都不可见(VLOOKUP is returning blank as 1/0/1990, rather than nothing visible)
VLOOKUP返回空白为1/0/1990,而不是什么都不可见(VLOOKUP is returning blank as 1/0/1990, rather than nothing visible)
所有单元格都按日期格式化,当单元格为空时我希望它返回一个明显空白的单元而不是
1/0/1900
。 这是我到目前为止的情况但它仍然返回日期而不是空白:= IF(ISNA(VLOOKUP($B$4,TrainingDatabase!$A$3:$S$14,3,0))= 0,"", (VLOOKUP($B$4,TrainingDatabase!$A$3:$S$14,3,0)))
All cells are formatted for dates, when a cell is blank I would like it to return an apparently blank cell rather than
1/0/1900
. Here is what I have so far however It is still returning the date instead of a blank:= IF(ISNA(VLOOKUP($B$4,TrainingDatabase!$A$3:$S$14,3,0))= 0,"", (VLOOKUP($B$4,TrainingDatabase!$A$3:$S$14,3,0)))
原文:https://stackoverflow.com/questions/28751611
更新时间:2023-07-05 14:07
最满意答案
正如我在最后一个问题中告诉你的,我不知道,但是一些研究让我相信,以下几点可能会达到你想要的水平:
var settings = new DataContractJsonSerializerSettings(); settings.EmitTypeInformation = EmitTypeInformation.Never; var serializer = new DataContractJsonSerializer(yourType, settings);
As I told you in the last question, I don't know, but some research leads me to believe that the following might achieve what you want:
var settings = new DataContractJsonSerializerSettings(); settings.EmitTypeInformation = EmitTypeInformation.Never; var serializer = new DataContractJsonSerializer(yourType, settings);
相关问答
更多-
使用DataContractJsonSerializer设置JSON对象根(Set JSON object root using DataContractJsonSerializer)[2023-12-23]
你可以做到这一点,但它不是太漂亮 - 你需要知道DataContractJsonSerializer使用的一些JSON到XML映射规则。 对于简单的情况,只需要将对象封装在类型名称中,这非常简单 - 下面的代码就是这样做的。 你需要用你想要的“root”名称创建序列化程序(在这种情况下,我使用了类型名称),并向它传递一个已被赋予根元素的XmlDictionaryWriter实例。 public class StackOverflow_7930629 { [DataContract] publ ... -
DataContractJsonSerializer包含JSON对象中的对象名称(DataContractJsonSerializer include object name in JSON object)[2021-05-14]
将datacontractjsonserializersettings添加到DataContractDataSerializer上的构造函数中 http://msdn.microsoft.com/en-us/library/system.runtime.serialization.json.datacontractjsonserializersettings.emittypeinformation.aspx 请尝试在构造函数中使用rootname设置。 http://msdn.microsoft.com/e ... -
如何将DataContractJsonSerializer与auth令牌一起使用(How to use DataContractJsonSerializer with auth token)[2021-12-04]
使用 [DataMember(Name = "json_name")] 喜欢这个: [DataContract] public class AuthToken { [DataMember(Name = ".expires")] public long expires_in { get; set; } } 如果要设置默认值,请使用: [OnDeserializing] public void OnDeserializing(StreamingContext con ... -
问题是在线DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(DataContractJsonSerializer)); 它应该是DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(Person)); The issue is on line DataContractJsonSerializer ser = new DataCon ...
-
您将Result声明为List
>但是从它看起来像字典的格式,而不是字典列表(因为它以{开头,用于对象或字典,而不是[使用]对于数组/列表)。 要将此格式用于字典,您需要配置UseSimpleDictionaryFormat属性 var serializer = new DataContractJsonSerializer(typeof(GetAssetInfoResponse), new DataContractJsonSerializerSett ... -
如何使用DataContractJsonSerializer for Json?(How to use DataContractJsonSerializer for Json?)[2020-01-27]
我发现问题是我需要将我在电子邮件中的所有属性更改为小写...我不知道为什么......但它有效。 I found the problem is I need to change all my property in Emails to lower case... I don't know why.. But it worked. -
正如我在最后一个问题中告诉你的,我不知道,但是一些研究让我相信,以下几点可能会达到你想要的水平: var settings = new DataContractJsonSerializerSettings(); settings.EmitTypeInformation = EmitTypeInformation.Never; var serializer = new DataContractJsonSerializer(yourType, settings); As I told you in the ...
-
如何配置WebMethods以使用DataContractJsonSerializer(How to configure WebMethods to use DataContractJsonSerializer)[2021-09-07]
[WebMethod]和任何数据合同序列化器是完全不相关的技术,它们不能混合使用。 如果要使用DataContractJsonSerializer,则需要使用WCF,而不是[WebMethod]使用的旧ASMX技术。 [WebMethod] and any of the Data Contract serializers are totally unrelated pieces of technology, and they cannot be mixed. If you want to use DataC ... -
F#DataContractJsonSerializer StackOverflowException(F# DataContractJsonSerializer StackOverflowException)[2023-10-07]
您不应该尝试以这种方式序列化F#列表。 使用List.toArray将其转换为数组。 (我希望DataContract序列化程序将列表视为嵌套的'first'/'rest'数据结构,这意味着JSON / Xml的树深度为50000,这不是你想要的。) You should not try to serialize an F# list this way. Convert it to an array with List.toArray. (I expect that the DataContract ser ... -
我在以前使用DataContractJsonSerializer的项目中有类似的经验。 似乎“__type”字段对DataContractJsonSerializer有特殊含义。 这是我使用Json.net的主要原因之一 只有它是对象中的第一个属性才有意义,但如果它有任何其他位置,它就可以工作,并且不会抛出异常。 你可以试试,但是在Json.txt中改变分支属性下面的__type位置。 我不知道是不是这样,你可以找到一个解决方法。 我没有尝试过这个解决方案,但值得尝试一下: 希望能帮助到你 I had si ...