+ Reply to Thread
Results 1 to 4 of 4

Lookup and Return

  1. #1
    Registered User
    Join Date
    08-25-2015
    Location
    Des Moines, Iowa
    MS-Off Ver
    Excel 2010
    Posts
    2

    Lookup and Return

    Hello,

    New to forum stuck on an issue. Here is my sample data below, but what I need done is to check the flag status of an order, if the flag is "l" then i need to check to see if there are any other lines on that order that are not "l", in the data below, I would want only order # 6 and 20 to show as "yes" or some other description letting me know that it meets my criteria. Basically put another way theses are all open orders and the orders with all items on the order being "l" need to be deleted, but I need to know which orders have all lines on that order being "l". Hope I explained myself well enough.

    Order # Flag
    6 l
    11 l
    11 l
    11 l
    11
    12 l
    12 l
    12
    13
    13
    14
    15 l
    15
    15
    16 l
    16
    20 l
    111
    1323
    Last edited by smilelock; 08-25-2015 at 02:19 PM.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lookup and Return

    That's kind of a strange character to use as a flag.

    When I copy/pasted the data into Excel I had to try to figure out exactly what character that is.

    There are 2 possibilities:

    | = char 108
    | = char 124

    Your data is using char 108. So, try this:

    D2 = some order number like 6

    =COUNTIF(A2:A20,D2)=COUNTIFS(A2:A20,D2,B2:B20,CHAR(108))

    It might be easier to change flags to something like X.
    Last edited by Tony Valko; 08-25-2015 at 02:36 PM.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    08-25-2015
    Location
    Des Moines, Iowa
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Lookup and Return

    Perfect, got me where i needed. Thank you very much.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lookup and Return

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. Two Lookup and Return (Lookup the column, then lookup the row)
    By Branbran10 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-05-2015, 04:55 PM
  2. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  3. Replies: 2
    Last Post: 05-07-2015, 04:38 PM
  4. Lookup a blank cell in a Lookup table and return a figure.
    By jonnops in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-20-2014, 07:33 AM
  5. Replies: 4
    Last Post: 03-13-2013, 12:38 PM
  6. Replies: 1
    Last Post: 11-07-2012, 01:57 PM
  7. Replies: 1
    Last Post: 01-19-2005, 09:06 PM

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