+ Reply to Thread
Results 1 to 10 of 10

Formula =IF(SERROR)

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    203

    Formula =IF(SERROR)

    Hi Guys,

    WHAT I NEED TO DO IS AT THE MOMENT THIS FORMUAL CHECKS THE PACK BACK DATA FOR E:E I ALSO NEED THIS FORMUAL TO CHECK COLUMNS F:F & G:G

    HOW WOULD I EXTEND THE FORMULA TO CHECK THE OTHER 2 COLUMS

    FORMULA BELOW

    =IF(ISERROR(VLOOKUP(G2,'Pack Back Data'!E:E,1,FALSE)),"NOT IN","IN")

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,690

    Re: Formula =IF(SERROR)

    Please do not post in all caps.

    =IF(ISERROR(MATCH(G2,'Pack Back Data'!E:G,0)),"NOT IN","IN")
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    203

    Re: Formula =IF(SERROR)

    Quote Originally Posted by 6StringJazzer View Post
    Please do not post in all caps.

    =IF(ISERROR(MATCH(G2,'Pack Back Data'!E:G,0)),"NOT IN","IN")
    Sorry about caps. for some reason that dont seem to work?

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,690

    Re: Formula =IF(SERROR)

    I'm sorry, I jumped the gun on that. Try this

    =IF(SUMPRODUCT(--(G2='Pack Back Data'!E:G))>0,"IN","NOT IN")
    Last edited by 6StringJazzer; 02-18-2011 at 12:50 PM. Reason: corrected sheet name

  5. #5
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    203

    Help repeating formula

    Hi Guys,

    what i need to is at the moment the formula checks the pack data for E:E and if the data is in columns E:E it will show as in if its not in E:E it will show as not in

    what i need is for it to also check all of column F:F and G:G so in this case it will be checking E:E, FF & G:G how would i do that?


    Forumla Below

    =IF(ISERROR(VLOOKUP(G2,'Pack Back Data'!E:E,1,FALSE)),"NOT IN","IN")

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Help repeating formula

    see the COUNTIF function (if the answer > 0 then "In")

  7. #7
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    203

    Re: Formula =IF(SERROR)

    Is there no way of me using the same formula as before
    =IF(ISERROR(VLOOKUP(G2,'Pack Back Data'!E:E,1,FALSE)),"NOT IN","IN")

    and adding F:F & G:G

    that formula seems to slow excel down :S

  8. #8
    Forum Contributor TechRetard's Avatar
    Join Date
    06-14-2009
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Formula =IF(SERROR)

    VLookup by definition checks the first column of the array you select. If you want to check 3 different columns you would need to use 3 different vlookup functions in the formula which would be a lot slower than 6String's suggestion.

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula =IF(SERROR)

    Possibly:


    =IF(COUNTIF('Pack Back Data'!E:G,G2)>0,"IN","NOT IN")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  10. #10
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Formula =IF(SERROR)

    duplicate threads merged.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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