+ Reply to Thread
Results 1 to 5 of 5

complex if with index & match formula based on criteria in a column to extract data

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    complex if with index & match formula based on criteria in a column to extract data

    I have workbook with 2 sheets Database tax code and calculation sheet.

    On calculation sheet column O header general rate % I am looking a formula to extract from database tax code General % column E, the criteria is

    column A2 of calculation sheet which has to lookup in database tax code column B, if they both match then extract the corresponding rate applicable, but

    the most difficult part is the column N preferential code of calculation sheet that if there is an imput in this column that is SADC as example then extract the corresponding rate of column L based on column B of database tax code .

    then same principle applies if it is one of these code tax applies to COMESA1,COMESA2, SADC, IOC, INDIA, PAKISTAN, EC, TURKEY. then put the corresopnding rates , If column N of calculation sheet is blank then applied normal rate of column E of database code
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: complex if with index & match formula based on criteria in a column to extract data

    In O7

    =IF($N2="",VLOOKUP($A2,'DATABASE TAX CODE '!$B$3:$Q$55,4,0),VLOOKUP($A2,'DATABASE TAX CODE '!$B$3:$Q$55,MATCH('Calculation Sheet'!$N2,'DATABASE TAX CODE '!$B$1:$Q$1,0)))

    Or

    =VLOOKUP($A2,'DATABASE TAX CODE '!$B$2:$Q$55,MATCH(IF($N2="",$O$1,$N2),'DATABASE TAX CODE '!$B$1:$Q$1,0))

    Change "O1" to "General %"
    Attached Files Attached Files
    Last edited by JohnTopley; 01-14-2018 at 12:33 PM.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: complex if with index & match formula based on criteria in a column to extract data

    Additional formula in previous post
    Last edited by JohnTopley; 01-14-2018 at 12:32 PM.

  4. #4
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: complex if with index & match formula based on criteria in a column to extract data

    Thank you John I prefer the second option the formula more simple

    Works smartly

    Kinds Rega

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: complex if with index & match formula based on criteria in a column to extract data

    You're welcome. And thank you for the rep.

+ 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] formula to extract data using small , index and match functions
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-22-2017, 02:07 PM
  2. [SOLVED] Complex LOOKUP and Return Criteria possibly using INDEX/MATCH...
    By Ourkid123uk in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 04-19-2017, 08:43 AM
  3. Replies: 4
    Last Post: 04-14-2017, 07:47 PM
  4. Replies: 3
    Last Post: 07-20-2016, 03:52 AM
  5. [SOLVED] Multiple Criteria lookup to extract data from a dump - INDEX MATCH????
    By Rossovich in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-30-2016, 01:14 PM
  6. [SOLVED] formula to basically index/match based on three criteria
    By Rerock in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-26-2016, 03:14 PM
  7. Extract data from one sheet to another (Index/Match Formula)
    By pauldaddyadams in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-31-2013, 06:51 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