简体   繁体   English

返回多个空白(如果)条件(IsBlank)

[英]Return Multiple Blank (If) Conditions (IsBlank)

I have a problem with this forumula: 我有这个论坛的问题:

=LOWER(IF(D1="";IF(C1="";IF(B1="";IF(A1="";"";A1);A1&"."&B1);A1&"."&B1&"."&C1);A1&"."&B1&"."&C1&"."&D1))

on pre 2011 Excel work's fine but on Excel 2011 it dosen't work .. why? 在2011年以前的Excel工作还不错,但是在Excel 2011上却没有工作..为什么呢?

I want to use it to make the usernames 我想用它来做用户名

  A     B      C     D           E
NAME1 NAME2  NAME3 NAME4    =name1.name2.name3.name4  (if name3 missing, then no extra dot(leave blank))

I think that you will always get an extra dot when name3 is missing, using that formula in any version of excel. 我认为,如果在任何版本的excel中使用该公式,当name3丢失时,您总会得到一个额外的点。 Try this version 试试这个版本

=LOWER(SUBSTITUTE(IF(A1="";"";"."&A1)&IF(B1="";"";"."&B1)&IF(C1="";"";"."&C1)&IF(D1="";"";"."&D1);".";"";1))

All populated cells are preceded by "." 所有填充的单元格前均带有“。”。 in the concatenation.....SUBSTITUTE removes the first "." 在串联中..... SUBSTITUTE删除第一个“。” that isn't required. 这不是必需的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM