I am trying to do a formula with 2 logic rules before the true false
parts.
*IF* finish time(Column H) is lt; 8:00 and customer = BtsD (Column F)
*THEN* Sum Volume(Column G) that matches two tests above.
Any ideas, very urgent!--
timmadge
------------------------------------------------------------------------
timmadge's Profile: www.excelforum.com/member.php...oamp;userid=31266
View this thread: www.excelforum.com/showthread...hreadid=509351
If you are trying to sum only the values that have corresponding columns
that meet this criteria then you need to use SUMIF or SUMPRODUCT.
There
are probably better ways but here is one way to do it:
Create a new column, say column J and put
=IF(AND(H1lt;TIME(8,0,0),F1=quot;BtsDquot;),quot;TRUEquot;,quot;FALSEquot;)
To Sum the values in G put
=SUMIF(J1:Jn,quot;TRUEquot;,G1:Gn) where n is the bottom-most active row that
you will need to sum and 1 is your actual starting row.--
mphell0
------------------------------------------------------------------------
mphell0's Profile: www.excelforum.com/member.php...oamp;userid=30153
View this thread: www.excelforum.com/showthread...hreadid=509351
=SUMPRODUCT((F1:F122=quot;BTsDquot;)*(H1:H122lt;TIME(8,0,0)) ,J1:J122)
Where your range of data is in rows 1 to 122, adjust accordingly
Regards
Dav
PS Remember you are excluding 8:00, if you wish to have it included
select lt;= instead of lt;--
Dav
------------------------------------------------------------------------
Dav's Profile: www.excelforum.com/member.php...oamp;userid=27107
View this thread: www.excelforum.com/showthread...hreadid=509351
- Feb 22 Thu 2007 20:35
Two Logic tests in an IF Statement
close
全站熱搜
留言列表
發表留言