+ Reply to Thread
Results 1 to 7 of 7

2 IFs with wildcards and a LOOKUP

  1. #1
    Registered User
    Join Date
    09-12-2013
    Location
    New Mexico
    MS-Off Ver
    2010
    Posts
    4

    2 IFs with wildcards and a LOOKUP

    Hi - I created a lookup table but need some IFs thrown in the equation and can't seem to make it work:

    Current formula is: =LOOKUP(B2,$L$1:$M$7)

    =IF(AND(B2="S2",F2<>"132*","POSS"),IF(AND(B2="S2",F2="132*","Lockbox"),LOOKUP(B2,$L$1:$M$7)))

    do I need an OR in there somewhere? or can I add a 3rd column to the lookup table to account for the "132*" variation?

    Sara
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: 2 IFs with wildcards and a LOOKUP

    do you mean
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by martindwilson; 09-12-2013 at 07:02 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    09-12-2013
    Location
    New Mexico
    MS-Off Ver
    2010
    Posts
    4

    Re: 2 IFs with wildcards and a LOOKUP

    Not quite...it doesn't work with the document type that is not S2. Thanks for replying so quickly.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: 2 IFs with wildcards and a LOOKUP

    it does for me what bit doesn't work?
    Attached Files Attached Files
    Last edited by martindwilson; 09-12-2013 at 07:28 PM.

  5. #5
    Registered User
    Join Date
    09-12-2013
    Location
    New Mexico
    MS-Off Ver
    2010
    Posts
    4

    Re: 2 IFs with wildcards and a LOOKUP

    I am getting #VALUE error when I change column B. I have everything formatted as general like you. Not sure what the problem is...colum F is alpha/numeric so needs to stay the way it is. When I copied to my working spreadsheet I received a #NA error.
    Attached Files Attached Files
    Last edited by sarawall; 09-14-2013 at 06:58 PM.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: 2 IFs with wildcards and a LOOKUP

    attach a workbook showing some with #value in
    =IF(AND(B2="S2",LEFT(F2,3)<>"132"),"POSS",LOOKUP(B2,$L$1:$M$7)) would give the same result
    Last edited by martindwilson; 09-14-2013 at 06:46 PM.

  7. #7
    Registered User
    Join Date
    09-12-2013
    Location
    New Mexico
    MS-Off Ver
    2010
    Posts
    4

    Re: 2 IFs with wildcards and a LOOKUP

    Got it...didn't change the row reference! Thanks for all your help!!! This will save checking 26,000 lines manually this month and each month forward!

    Sara

+ 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. lookup array of values using wildcards
    By skalaima in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-10-2013, 03:01 AM
  2. VLOOKUP (Or Similar) with Wildcards in Both Lookup Value and Range
    By LarryLegend in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-03-2013, 06:05 PM
  3. Wildcards in RTD
    By JKC in forum Excel General
    Replies: 0
    Last Post: 02-03-2006, 03:35 PM
  4. [SOLVED] Using wildcards in lookup?
    By Michael at Thin Air in forum Excel General
    Replies: 0
    Last Post: 02-03-2006, 07:50 AM
  5. [SOLVED] RE: Using wildcards in lookup?
    By JMB in forum Excel General
    Replies: 0
    Last Post: 02-03-2006, 07:45 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