+ Reply to Thread
Results 1 to 4 of 4

Compare multiple values in other text string

  1. #1
    Registered User
    Join Date
    08-13-2009
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    20

    Compare multiple values in other text string

    I have made a duplicate check based on 'Duplicate_key' because first an item begins as a NoContract item and over time we get the item on a contract. Now we want to inactivate the NoContract items, but before we can do that we have to see if the contract item is valid for the same hospital as the NoContract item.

    So for example if the duplicate key 9000057_1000184_Stk found on the NoContract item is valid for the following hospitals Bispebjerg;Hilleroed;Rigshospitalet, then the contract item must at least be valid for the same hospitals. In this case the Contract item is not valid for Hilleroed and Rigshospitalet. I need this information to add the hospitals to the Contract item.

    How can I make this check - please see attached document.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,569

    Re: Compare multiple values in other text string

    Quote Originally Posted by morsoe View Post
    So for example if the duplicate key 9000057_1000184_Stk found on the NoContract item is valid for the following hospitals Bispebjerg;Hilleroed;Rigshospitalet, then the contract item must at least be valid for the same hospitals. In this case the Contract item is not valid for Hilleroed and Rigshospitalet. I need this information to add the hospitals to the Contract item.
    Attached is how I understand your problem.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-13-2009
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    20

    Re: Compare multiple values in other text string

    Quote Originally Posted by jindon View Post
    Attached is how I understand your problem.
    Thank you Jindon.
    That's the way it should be. But my concern is when I have three lines with same Duplicate_key e.g. two contracts and one NoContract, where all three lines have different Valid_for hospitals. Please see attached document.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,569

    Re: Compare multiple values in other text string

    Change
    Please Login or Register  to view this content.
    To
    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] Substitute a text string with multiple values
    By dihris in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-03-2012, 03:25 PM
  2. Replies: 7
    Last Post: 08-31-2012, 11:27 AM
  3. [SOLVED] Outputting different values depending on which text value of multiple is found in a string
    By RichieAHB in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-15-2012, 12:15 PM
  4. Display a string of text with multiple cell values
    By paxile2k in forum Excel General
    Replies: 9
    Last Post: 04-20-2012, 06:38 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