+ Reply to Thread
Results 1 to 5 of 5

IF Partial Fuzzy Match then Calculate Percentage

  1. #1
    Registered User
    Join Date
    11-03-2004
    Posts
    75

    Question IF Partial Fuzzy Match then Calculate Percentage

    I know I've done this b4 but can't recall how -- and hv tried multiple variations today that don't work (to include these, ones with VLOOKUP, IFSUM, MATCH, etc)
    =IF(B18="*PAYROLL*",C18*10%,"")
    =IF(B18="PAYROLL*",C18*10%,"")
    =IF(B21="*PAYROLL*",C21*10%)

    THIS ONE WORKS GREAT FOR AN EXACT MATCH: (but need to be able to use partial text phrases and have it calc if match)
    =IF(B18="ACCOUNTING/PAYROLL",C18*10%,"")

    B18 holds the text
    C18 holds the $dollar amount
    D18 holds the function that should show the percentage result (if no partial match, then leave cell blank)

  2. #2
    Forum Contributor
    Join Date
    07-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: IF Partial Fuzzy Match then Calculate Percentage

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-03-2004
    Posts
    75

    Re: IF Partial Fuzzy Match then Calculate Percentage

    Fantastic! Thank you for the help --
    I think this is what I needed:
    =IF(OR(ISERROR(FIND("PAYROLL",B18))),"",C18*10%)

    So if the text of COL B was:
    1 ACCOUNTING/PAYROLL
    2 SHIPPING DEPT PAYROLL
    3 PARTS DEPT STOCK
    4 PARTS DEPT PAYROLL
    5 AIRPLANE PARTS
    6 AIRPLANE REPAIR PERSONNEL'S PAYROLL

    Then, only the cells with the word "PAYROLL" (1,2,4,6) would generate a percentage calculate within COL C

    I think the one you posted was to find 2 criteria at the same time (both the words ACCOUNTING and PAYROLL) right?

  4. #4
    Forum Contributor
    Join Date
    07-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: IF Partial Fuzzy Match then Calculate Percentage

    Quote Originally Posted by CHRISOK View Post
    Fantastic! Thank you for the help --
    I think this is what I needed:
    =IF(OR(ISERROR(FIND("PAYROLL",B18))),"",C18*10%)

    So if the text of COL B was:
    1 ACCOUNTING/PAYROLL
    2 SHIPPING DEPT PAYROLL
    3 PARTS DEPT STOCK
    4 PARTS DEPT PAYROLL
    5 AIRPLANE PARTS
    6 AIRPLANE REPAIR PERSONNEL'S PAYROLL

    Then, only the cells with the word "PAYROLL" (1,2,4,6) would generate a percentage calculate within COL C

    I think the one you posted was to find 2 criteria at the same time (both the words ACCOUNTING and PAYROLL) right?
    Correct. You can even simplify it to:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    (You don't need the OR if you only have one thing to check)

  5. #5
    Registered User
    Join Date
    11-03-2004
    Posts
    75

    Re: IF Partial Fuzzy Match then Calculate Percentage

    Thanks! That's exactly what I needed --- but happy to have learned 3 variations!
    This will be extremely useful!
    5 stars for your reputation! Thx, C.

+ 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. Replies: 3
    Last Post: 06-17-2015, 02:42 PM
  2. fuzzy lookup add on, specifying what to match against
    By IronCladRooster in forum Excel General
    Replies: 0
    Last Post: 08-14-2014, 10:06 AM
  3. [SOLVED] Calculate sum based on partial text match and latest date
    By moondog1023 in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 06-20-2014, 04:02 PM
  4. [SOLVED] Fuzzy Match Help
    By montanaheather in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-10-2012, 04:20 PM
  5. Fuzzy Match Problem
    By Ikuk in forum Excel General
    Replies: 4
    Last Post: 06-25-2009, 10:54 AM
  6. fuzzy match
    By Marcy in forum Excel General
    Replies: 5
    Last Post: 02-01-2006, 05:10 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