发布网友 发布时间:2024-10-22 07:49
共2个回答
热心网友 时间:2024-11-09 20:28
完整公式为=IF(O11<>"",O11 & "年" & P11 & "月") & IF(Q11<>0,"物业费"&Q11 & "元" & IF(SUM(R11:S11)=0,"。",","),"") & IF(R11<>0,"水费"&R11&"元"&IF(S11<>0,",","。"),"") & IF(S11<>0,"电费"&S11&"元。","")
热心网友 时间:2024-11-09 20:33
很简单,把你判断的条件改一下,逗号带在公式里,比如说物业费就是
IF(Q11=0,'',O11&"年"&P11&"月物业费"&Q11&"元)
后面再附加一样的,比如
& IF(R11=0,'',"," & IF(P11=1,12,P11-1)&"月水费"&R11&"元)
其它的一样的,最后就是
& "。"