vba - How to nest IF, AND, OR in excel -


The lack of a legible format in Excel formulas is making it very difficult for me.

I need to write a formula which:

  • Check if J2 is "No"
  • If not then set the value " If so, check the date in E2 against the given date
  • after the given date, set the value for "pass"
  • If the date given earlier, check that G2 is "cancel" and K2
  • if the correct set value is "unsuccessful" then
  • if false set To "pass" the value "no", or the G2 is "zero" And K2 is "Yes"

    If I was using Javascript then something like this might appear:

      Function Formulas MacHead Heart (J2, E2, G2, K2, The Date) {if (J2 == "No") {if (E2> givenDate) {if ((G2 == "Cancel" and "amp; K2! =" No ") {G2 == "Zero"! = "Yes"}) {Return "Failure" I "," At least one syntax error "does not mention the possibility to mention the logic issues I write During the formula itself, in different ways Tried to Upit, but I lost the braces and I found out where it leads. ), IF ($ E20 & gt; = DATE (20144,10), "Pass", IF (or (ISNUMBER (FIND ("Nil", G20)), and (ISNUMBER ("FIND"   

    ), " strong> Unless the same formula is easy on your eyes then the difference:

      = IF (ISNUMBER (SEARCH (J20, "no")), IF ($ E20> = DATE (I.e. (ISNUMBER (FIND ("Zero", G20)), and (ISNUMBER (FIND ("Cancel", G20)), ISERROR (SEARCH (2014), "Pass"   
  • Is it better to use this VBA script? Do you?

    This is the formula according to your liking:

      = IF (ISNUMBER (SEARCH ("no", J2)), IF (E2> = DATE (20144,10)), "pass", (or (AND ( ISNUMBER (search ("cancel", G2), ISNUMBER (search ("no", K2)), and (ISNUMBER (search ("zero", G2)), ISNUMBER (search ("yes"   

    Or you can use this UDF if you wish: p> Function Formulas MacHydie Hart (J2 String, E2 as Strait, String As the G2, G2 in the form of straight, date given as string, date given date) as string as slow ashes, if not as "J * 2" then If CDAT (E2) & gt; = If given then then (resemble "* Cancel *" like "G2" and "no *" like K2) or _ ("* zero *" like G2 and "yes *" like K2) then res = "Failed" other option = "pass" end if other = if "left" if left = "N / A" end if the formulas McMahide Hart = Ridge and Function

    Also call in the cell: = Formats in Ehrhardt (J2, E2, G2, K2, Date (2014, 4, 10))

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -