+ Reply to Thread
Results 1 to 12 of 12

If error formula

  1. #1
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    If error formula

    Hi All,

    Just wondering how can I put this condition into formula?

    IF Account Group = YSTP
    AND Sales Organization <> IT*
    AND Distribution Channel = 14 only
    AND Division = 02, 03, 05, 06, 12 only (no other Sales Area)
    WHERE Condition Group 1 <> 04
    THEN FAILED

    IS MY FORMULA BELOW CORRECT?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: If error formula

    =IF(AND(I5="YSTP",E5<>"IT",F5&""="14",OR(G5={"02","03","05","06","12"}),H5<>4),"PASSED","FAIL")
    try this
    if not worked attach sample excel file
    Please Login or Register  to view this content.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: If error formula

    Try this...
    =IF(AND(I5="YSTP",E5<>"IT",F5=14,H5<>4,OR(G5={"02","03","05","06","12"})),"PASSED","FAIL")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: If error formula

    Hi,

    One way

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    take care with F5. Is it a numeric or string?
    Last edited by Richard Buttrey; 06-01-2015 at 07:43 AM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: If error formula

    Three for the price of one...

  6. #6
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: If error formula

    Hi Richard,

    it should always be number.

    I used all the formula and it should actually passed but i got failed.

  7. #7
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: If error formula

    here's the file.
    Attached Files Attached Files

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: If error formula

    =IF(AND(I6="YSTP",E6<>"IT",F6=14,OR(G6={2,3,5,6,12}),H6<>4),"PASSED","FAIL")
    Try this
    In your 1st post you enter all the numbers as text string
    H6<>4, in column H all numbers are 4 then how it will be Pass

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: If error formula

    Until we saw the sheet, we could not tell what was TEXT that looked like numbers and what were REALLY numbers...#
    =IF(AND(I5="YSTP",E5<>"IT",F5=14,OR(G5={2,3,5,6,12}),H5<>4),"PASSED","FAIL")
    Attached Files Attached Files

  10. #10
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: If error formula

    Is that based on this scenario below?


    IF Account Group = YSTP
    AND Sales Organization <> IT*
    AND Distribution Channel = 14 only
    AND Division = 02, 03, 05, 06, 12 only (no other Sales Area)
    WHERE Condition Group 1 <> 04
    THEN FAILED

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: If error formula

    I have just noticed that you have typed IT* and not IT. Was that intentional?

    Otherwise all answers have been based on the scanario that you asked for.

  12. #12
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: If error formula

    Quote Originally Posted by geliedee View Post
    Hi Richard,

    it should always be number.

    I used all the formula and it should actually passed but i got failed.
    It is incumbent on you to be quite clear when you post details without also providing the workbook. Excel is very fussy about stuff like numbers and text that looks like numbers, i.e. 2 and '02'. They may even LOOK the same when formatted but underlying they are not equivalent. I did mention this in my first post.

    Here's the updated formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Inputbox error message. Formula you typed contains an error.
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-09-2013, 02:25 PM
  2. Excel 2007 : Formula error:bring up an #VALUE! Error.
    By burner007 in forum Excel General
    Replies: 3
    Last Post: 06-20-2011, 06:10 AM
  3. Formula Error-Error Message
    By Paige in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2006, 04:15 PM
  4. Error values:DIV/0! error in SumProduct formula with no division
    By Jerry W. Lewis in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 PM
  5. Formula error with Mac resulting in '#NAME' error
    By Linking to specific cells in pivot table in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2005, 03:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1