首先,我尝试搜索论坛,但找不到我要查找的内容。
我正在尝试使用以下公式:
=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。
任何帮助表示赞赏!
我是 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) 我遇到了一些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)
任何人都可以看到上面的错误吗?