View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
caveman.savant caveman.savant is offline
external usenet poster
 
Posts: 31
Default Filtering based on Value

That's Perfect!

Could the statement
OR(ISNUMBER(FIND("SHORT",G20368)),ISNUMBER(FIND("S HT",G20368)))

Be simplified to "SHT" since "SHORT" contains those characters?


On Apr 27, 9:28*am, "Bernie Deitrick" <deitbe @ consumer dot org
wrote:
Perhaps combine the two truth statements with a master OR:

=IF(OR(AND(ISNUMBER(FIND(LEFT(B20368,1),"JCR")),IF (SUM(COUNTIF(C20368,{"DST ","LVN","DNM"}))0,TRUE(),FALSE())),
OR(AND(B20368<"", ISNUMBER(FIND(LEFT(B20368,1), "AWFUY"))),OR(ISNUMBER(FIND("SHORT",
G20368)),ISNUMBER(FIND("SHT",
*G20368))),SUM(COUNTIF(C20368,{"BOG","BLM","CMO"}) ))),I20368-0.01, J20368)

HTH,
Bernie
MS Excel MVP

"caveman.savant" wrote in message

...



I would like to combine these 2 into one formula


=IF(AND(ISNUMBER(FIND(LEFT(B20368,1),"JCR")),IF(SU M(COUNTIF(C20368,
{"DST","LVN","DNM"}))0,TRUE(),FALSE())),I20368-0.01,J20368)


=IF(OR(AND(B20368<"", ISNUMBER(FIND(LEFT(B20368,1),
"AWFUY"))),OR(ISNUMBER(FIND("SHORT", G20368)),ISNUMBER(FIND("SHT",
G20368))),SUM(COUNTIF(C20368,{"BOG","BLM","CMO"})) ),I20368-0.01,
J20368)


Each statement stands alone as far as filtering, so ISNUMBER(FIND
(LEFT
(B20368,1), "JCRAWFUY"))) won't work.


The 1st 'True' test looks at Column B and looks for values starting
with the Letter J, C, or R while at the same time checking for values
in Column C that are either * "DST","LVN","DNM"


The Second Test looks at Column B and looks for values starting with
the Letter A, W, F, U, Y. The test would also be True if Column G
contains "SHORT" or "SHT". Finally check for values in Column C that
are either *"BOG","BLM","CMO"