我试图根据三个标准突出显示值。
我有两张:一张有我的详细信息(概述),一张我用作参考(LOOKUP)。
**OVERVIEW (Sheet1)**
Column A contains DAY
Column B contains ACTIVITIES
If Monday is selected in column A choices are limited to ICT, Art or Music in column B
**LOOKUP (Sheet2)**
Column A contains DAYS
Column B contains ACTIVITIES
Column C contains PLACES
A B C
1 Monday ICT 6
2 Monday Art 8
3 Monday Music 16
4 Tuesday Art 12
5 Tuesday Science 10
3 Wednesday ICT 6
4 Wednesday Science 5
我在使用INDIRECT函数的LOOKUP表中使用了Format Table,因此当我使用OVERVIEW表时,我可以在A列中选择DAY,在B列中选择相关活动
我的OVERVIEW表格中是否有一个公式可以突出显示超出LOOKUP表格标准的行?
即。 [基于示例]如果我有 7 (C列)条目同时包含星期一(A列)和 ICT (B栏)然后它会突出显示该行。
我认为我需要使用COUNTIFS和AND的组合,但我不确定如何合并它们。希望这对某人有意义。
Thanx看, 萨姆
答案 0 :(得分:0)
我对要求有不同的解释。请清除所有条件格式(来自Get-ChildItem -Files -Recurse -Path 'C:\source\dir' -Exclude "annotation.txt" |
ForEach-Ohject { Move-Item -Path $_.FullName -Destination 'C:\destination\dir' -WhatIf }
),在那里选择尽可能多的列构成行宽度和HOME>样式 - 条件格式,新规则...,使用公式确定要格式化的单元格和格式化此公式的值::
OVERVIEW
格式... ,选择高亮显示选项确定,确定。
为了使上述工作(并且我怀疑我们中的一个人使这个变得非常复杂),=COUNTIFS(LOOKUP!$A:$A,$A1,LOOKUP!$B:$B,$B1)>INDEX(LOOKUP!$C:$C,MATCH($A1&"|"&$B1,LOOKUP!$E:$E,0))
中需要一个辅助列,我在上面填充了ColumnE:
LOOKUP
复制到西装。
答案 1 :(得分:-1)
您可以在“条件格式”对话框中使用COUNTIFS
。由于AND
将计算符合多个条件的行数,因此不需要COUNTIFS
。
使用您的示例,如果您想计算两者的行:
Column A
= "Monday"
和 Column B
= "ICT"
......那么公式将是:
=COUNTIFS(A:A,"Monday",B:B,"ICT")
如果您希望Sheet 2, Row 1
根据Sheet 1
上Column A
= Sheet 2, A1
和的行数突出显示Column B
Sheet2, B1
= Sheet2, C1
,当行数超过Sheet 2
中的数字时...
Row 1
,点击Use a formula to determine which cells to format
的标题。 Format cells where this formula is true
。 在 recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_COMMUNICATION);
recorder.setOutputFormat(MediaRecorder.OutputFormat.AMR_NB);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(audiofile.getAbsolutePath());
try {
recorder.prepare();
} catch (IllegalStateException e)
{
e.printStackTrace();
}
recorder.start();
框中,输入或粘贴公式:
= COUNTIFS(Sheet 1中$ A:$ A,Sheet 2中$ A $ 1,工作表Sheet $ B:!!$ B,Sheet 2中$ B $ 1)!> Sheet 2中$ C $ 1
然后点击格式。
Office.com:COUNTIFS Worksheet Function (Excel)
Office.com:Use formulas with Conditional Formatting