+ Reply to Thread
Results 1 to 5 of 5

Complex Comparison forumula - Help

Hybrid View

Rjwilliams93 Complex Comparison forumula -... 07-08-2013, 12:24 AM
JBeaucaire Re: Complex Comparison... 07-08-2013, 01:16 AM
Rjwilliams93 Re: Complex Comparison... 07-08-2013, 01:39 AM
JBeaucaire Re: Complex Comparison... 07-08-2013, 10:12 AM
Rjwilliams93 Re: Complex Comparison... 07-08-2013, 06:58 PM
  1. #1
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Complex Comparison forumula - Help

    Ok, now that I understand the tests better, hopes for a simple formula have evaporated.

    I reformatted your Prefix Table sheet so the data is complete and in standard format table. With that in place, we have to test each code to see if it's a 2-prefix match, a 3 prefix match, or then separately test if its CHS and check the numbers that follow that prefix.

    =IF(ISNUMBER(MATCH(LEFT(A2,2), 'Prefix Table'!$B$2:$B$7, 0)), B2=300,
    IFERROR((INDEX('Prefix Table'!$C$8:$C$13, MATCH(LEFT(A2, 3), 'Prefix Table'!$B$8:$B$13, 0))=B2),
    IF(LEFT(A2,3)="CHS", IF(MID(A2,4,4)+0<168, B2='Prefix Table'!$C$14, B2='Prefix Table'!$C$15))))
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  2. #2
    Registered User
    Join Date
    01-20-2013
    Location
    Gold coast, australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Complex Comparison forumula - Help

    Much Appreciated,

    This works perfectly, I have tested it with all possible profiles for the prefixes listed.

    This is a lot more easier to manage then what I was planning to do.

    Cheers

    Rob

+ 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