小编Sea*_*ers的帖子

Excel 如果 <> #NA

首先,我尝试搜索论坛,但找不到我要查找的内容。

我正在尝试使用以下公式:

=IF(C70<>"#NA",C70,IF(D70<>"#NA",D70,IF(E70<>"#NA",E70,IF(F70<>"#NA",F70,"No Value"))))
Run Code Online (Sandbox Code Playgroud)

该公式试图将 4 个不同的列与数据组合在一起,只有一个单元格包含非 #NA 的值,我想在 G70 中显示该值。

示例数据集:

     C      D          E       F
70   #N/A   30245_3    #N/A #N/A
Run Code Online (Sandbox Code Playgroud)

该值仅在 C 列中返回,如果是其他列,则返回#NA。

任何帮助表示赞赏!

excel

3
推荐指数
1
解决办法
3万
查看次数

如何修复警告:mail() [function.mail]:SMTP 服务器响应:需要 530 SMTP 身份验证。在 C:\xampp\htdocs\.. 第 22 行错误

我是 PHP 新手,并以在线脚本为例。我已经设置了 Xampp,并且 php 已安装并正常工作。我尝试使用 hMailServer 设置本地邮件服务器,但是我不完全确定这是否设置正确。无论如何,这是PHP代码:

<?php

$subject="";
$detail="";
$customer_mail="";
$name="";

// Contact subject
$subject ="$subject"; 

// Details
$message="$detail";

// Mail of sender
$mail_from="$customer_mail"; 

// From 
$header="from: $name <$mail_from>";

// Enter your email address
$to ='sean.myers92@gmail.com';
$send_contact=mail($to,$subject,$message,$header);

// Check, if message sent to your email 
// display message "We've recived your information"
if($send_contact){
echo "We've recived your contact information";
}
else {
echo "ERROR";
}
?>
Run Code Online (Sandbox Code Playgroud)

以及相应的 HTML 代码:

<table width="400" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td><strong>Contact Form …
Run Code Online (Sandbox Code Playgroud)

php xampp mail-server

2
推荐指数
1
解决办法
2万
查看次数

检查单元格= 0,如果它显示消息框并取消保存

我遇到了一些VBA代码的问题,这些代码看起来很基本,但却无法正常工作.我是VBA的新手,所以可能我错过了一些东西.

代码应该检查单元格(XFD3002)以查看它是否等于0,如果它然后显示消息并停止保存文件.对于背景,有一个检查,看到某些单元格被填充,如果没有,它将返回0.

代码是:

Private Sub Check_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)

Dim check As Integer
check = Sheets("Data").Range("XFD3002").Value

If check = 0 Then
    MsgBox ("You have missed one or more required field")
    Cancel = True
End If

End Sub
Run Code Online (Sandbox Code Playgroud)

任何人都可以看到上面的错误吗?

excel vba excel-vba

0
推荐指数
1
解决办法
88
查看次数

标签 统计

excel ×2

excel-vba ×1

mail-server ×1

php ×1

vba ×1

xampp ×1