+ Reply to Thread
Results 1 to 11 of 11

Need formula involving multiple Vlookup and/or multiple if situation

  1. #1
    Registered User
    Join Date
    08-12-2015
    Location
    Mumbai India
    MS-Off Ver
    2010
    Posts
    5

    Post Need formula involving multiple Vlookup and/or multiple if situation

    Note Data as follows:-

    Product Code
    1001
    1002
    1003
    1004
    1005

    COUNTRY OF EXPORT
    Group "A"
    Saudi
    UAE
    Oman
    Qatar
    Bahrain

    Group "B"
    USA
    UK
    France
    Germany
    Spain

    Group "C"
    Kenya
    Nigeria
    S.Africa
    Sudan
    Senegal

    COMMISSION DUE FOR EXPORT TO COUNTRIES BELONGING TO GROUP
    P.C.--- "A"--- "B"---- "C"
    1001---5%----7%-----3%
    1002---3%----5%-----2%
    1003---5%----5%-----5%
    1004---6%----8%-----4%
    1005---3%----5%-----2%

    Information of each sale
    Product Code : _____________ (This will be selected from a Drop Down List)
    Country of Export : _____________ (This also will be selected from a Drop Down List)
    Rate of Commission: _____________ NEED FORMULA TO DISPLAY THIS INFORMATION IMMEDIATELY.

    Eg.: If Product Code is 1004 and Country of Export is USA - Rate must display 8%
    or If Product Code is 1001 and Country of Export is Bahrain - Rate must display 5%

    (Above is only an short illustration - Actual Data involves hundreds of Products & more than 30 countries in each group)
    Please advise best way to enter data and formula.

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Need formula involving multiple Vlookup and/or multiple if situation

    Upload a sample file.

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Need formula involving multiple Vlookup and/or multiple if situation

    Please share example excel book with expecting result for better understanding.

    Thanks
    Ankur

  4. #4
    Registered User
    Join Date
    08-12-2015
    Location
    Mumbai India
    MS-Off Ver
    2010
    Posts
    5

    Post Re: Need formula involving multiple Vlookup and/or multiple if situation

    CommissionIndicatorDraft.xlsx

    Sample File Attached

  5. #5
    Registered User
    Join Date
    03-14-2015
    Location
    Hamburg
    MS-Off Ver
    7
    Posts
    32

    Re: Need formula involving multiple Vlookup and/or multiple if situation

    Hi there,
    pls find my solution attached. It works in several steps. However, first of all I have adjusted the underlying data, compare E1:E9. This way my index(match()match()) formulae can run smoothly …
    Doing so, it is an approach of nested index(match()match())looking at step1 of 2 and 2 of 2


    Kind regards from Hamburg,

    Henning


    p.s.: if that was helpfull, please provide POSITIVE FEEDBACK
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-12-2015
    Location
    Mumbai India
    MS-Off Ver
    2010
    Posts
    5

    Re: Need formula involving multiple Vlookup and/or multiple if situation

    Thank You Very Much.
    Excellent - Though I find it difficult to understand the formula (as I am not at all conversant with the Index & Match functions), but your solution does exactly what I wanted. Fantastic.
    I only hope that I will be able to replicate this in my actual working file which is very large.
    Keep up the good work and Thank You Once Again.

  7. #7
    Registered User
    Join Date
    03-14-2015
    Location
    Hamburg
    MS-Off Ver
    7
    Posts
    32

    Re: Need formula involving multiple Vlookup and/or multiple if situation

    Dear WKMAHESH,

    no wories, just follow the logic step by step. Just in case, send me a message and we'll figure things out together

    Kind regards from Hamburg

    Henning

  8. #8
    Registered User
    Join Date
    08-12-2015
    Location
    Mumbai India
    MS-Off Ver
    2010
    Posts
    5

    Re: Need formula involving multiple Vlookup and/or multiple if situation

    Dear Mr. Henning;

    I applied your formula to my actual table using the same logic.. it seems to be working.. but I am doing something wrong as the answers are incorrect... I cannot figure out what wrong I am doing.

    I am attaching the actual file in which the data of just one item is shown, the actual data consists of many many items, and I can insert rows to insert the remaining data once this formula works correctly in this short version.

    So please help by checking the formula and correcting it (please put a note down telling me what wrong I am doing)
    I sincerely appreciate your help and thank you in advance for the same.

    Kind regards from Mumbai, India

    Mahesh WoolvaraEXCEL FORUM - ACTUAL EXAMPLE.xlsx

  9. #9
    Registered User
    Join Date
    03-14-2015
    Location
    Hamburg
    MS-Off Ver
    7
    Posts
    32

    Re: Need formula involving multiple Vlookup and/or multiple if situation

    Dear WKMAHESH,

    please find the file attached. In there I copied your sheet and corrected the formula. Your issue was in the mechanism how the formulae 1. index() and 2. match() have been put together.
    To make that crystal clear, I have put in an example, sheet: index( match() match () ). In plain text it is just about coordinates or like the children’s game "battleships": Depending on 2 elements, one per each dimension, i.e. cell b21 and d19 the formula reads the corresponding figure of the “playground”, i.e. the index area. Looking at this, you will see the obvious: The arrays of the nested formulae need to be exactly set parallel, i.e. with the same length! You have missed a row in your formula!

    This is it – thumb up .
    In the sheet ‘correction!’ you’ll find my other comments.

    All the best and just in case, send me an email and we keep on working together


    Regards from Hamburg,

    Henning

    p.s.: And now it is time for a super positive feedback isn’t it?! –> hit the * Add Reputation in the bottom left corner

  10. #10
    Registered User
    Join Date
    03-14-2015
    Location
    Hamburg
    MS-Off Ver
    7
    Posts
    32

    Re: Need formula involving multiple Vlookup and/or multiple if situation

    Atention: I think the "calculation options" of my last attached example file are set to manual. --> hit F9 for calculations

  11. #11
    Registered User
    Join Date
    03-14-2015
    Location
    Hamburg
    MS-Off Ver
    7
    Posts
    32

    Re: Need formula involving multiple Vlookup and/or multiple if situation

    Atention: I think the "calculation options" of my last attached example file are set to manual. --> hit F9 for calculations

+ 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: 8
    Last Post: 03-03-2015, 06:58 AM
  2. Calculation Involving Multiple Inputs For Each Of Two Variables
    By ericrichard25 in forum Excel General
    Replies: 2
    Last Post: 01-26-2015, 09:18 PM
  3. Help: Multiple criteria involving strings
    By oasafox in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 08-28-2014, 12:06 PM
  4. Replies: 7
    Last Post: 08-11-2014, 12:05 PM
  5. [SOLVED] Help with a Master Dynamic Table involving multiple sheets
    By adawg in forum Excel General
    Replies: 4
    Last Post: 04-17-2012, 07:07 PM
  6. Macro involving multiple sheet and files
    By dguenther in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2011, 08:41 AM
  7. [SOLVED] Counting multiple criteria involving dates
    By S Davis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-10-2006, 06:35 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