+ Reply to Thread
Results 1 to 7 of 7

Combining 2 Index Match functions!

  1. #1
    Registered User
    Join Date
    06-29-2016
    Location
    Ireland
    MS-Off Ver
    2019
    Posts
    47

    Combining 2 Index Match functions!

    Hello guys!

    I have the following table:

    test.jpg

    My ultimate goal is to derive a formula on column "V" (TOTAL in green) to give me the results
    I have there and are based on the following premises:

    - Companies A and B have to allocate 100% of the costs of their own employees plus the percentage
    imported from the other company (the other company exported to it). These costs have to be allocated
    on the Cost Centres CC-A1 to CC-A5 (if company A) or CC-B1 to CC-B5 (if company B) in row 3.

    - When a company export some costs, it also has to allocate the same percentages on the "mirror" Cost Centres
    in row 4 (CC-A101 to CC-A105 and CC-B101 to CC-B105).

    Hence, I need a formula to give me (in column "V"): All costs allocated on table "Company A Cost Centres
    Allocation" plus whatever is allocated on table "Company B Cost Centres Allocation" ONLY when column E
    (export to B) is different than 0%.

    Likewise, the formula should also cover the counterpart situation which is: All costs allocated on table
    "Company B Cost Centres Allocation" plus whatever is allocated on table "Company A Cost Centres Allocation"
    ONLY when column M (export to A) is different than 0%.

    This would be something like:

    =(IFERROR(INDEX($F$16:$J$16,MATCH($U3,$F$3:$J$3,0)),"0")) + (IFERROR(INDEX($N$16:$R$16,MATCH($U3,$N$18:$R$18,0)),"0"))

    Obviously the "+" is not right. I tried to concatenate these the 2 statements above with several functions but for
    whatever reason I can't make it work. Once I have it concatenated it wouldn't be difficult to repeat if for the
    counterpart using column C (values A or B) as logical test in an IF function but my problem is really the sintax
    to put the two togheter.

    Regards,

    Ricardo
    Last edited by Hellion; 09-06-2016 at 05:09 AM. Reason: Insert .xlsx attachment. Unsuccessful!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Combining 2 Index Match functions!

    Hi,

    You'd be better advised to upload the workbook so that we have something to work with. Pictures are rarely much use.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,418

    Re: Combining 2 Index Match functions!

    You should change the ,"0" to ,0 in both expressions.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    06-29-2016
    Location
    Ireland
    MS-Off Ver
    2019
    Posts
    47

    Re: Combining 2 Index Match functions!

    Richard,

    I tried to attach it a first place but when I click the Attachment button the only thing that appears is a very thin white strip and not a box allowing me to browse the file. That's why I uploaded a picture. What am I doing wrong?

    Regards,

    Ricardo
    Last edited by Hellion; 09-06-2016 at 05:37 AM.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Combining 2 Index Match functions!

    Hi

    If Pete's answer has not helped you then see here for attaching....FAQ How to attach a file

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,418

    Re: Combining 2 Index Match functions!

    I have found that the FAQ description is a bit out of date, and not very detailed, so here's what to do to attach a file:

    Click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and you should see your filename listed on screen. Click on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Pete

  7. #7
    Registered User
    Join Date
    06-29-2016
    Location
    Ireland
    MS-Off Ver
    2019
    Posts
    47

    Re: Combining 2 Index Match functions!

    Guys,

    Thank you for your replies and I'm sorry for the long delay answering this but shortly after that I went on Holidays and sincerely forgot to do it.

    I figured out what was happening. I don't know why but when I was writing the formulae I left a space before and after the "+" sign. Tiredness, i guess.

    Just for reference, the expressions work with both forms, 0 and "0", maybe because the cell where the formula is contained is formatted to percentages and it transforms it into numbers automatically.

    Regards,

    Ricardo

+ 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. Combining Index Match and max functions
    By ifu06416 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-29-2015, 02:48 AM
  2. [SOLVED] Combining Offset or Index and Sum functions
    By tonylyx in forum Excel General
    Replies: 3
    Last Post: 01-26-2015, 12:33 AM
  3. [SOLVED] Combining 3 Formulas: Return all Names that Match Criteria Using Index/Match
    By bchilme in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-29-2014, 09:28 AM
  4. [SOLVED] Need help combining two Index Match functions into one
    By BeachRock in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-23-2012, 10:35 PM
  5. Combining INDEX functions
    By wilsoa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-26-2012, 03:07 PM
  6. Combining Index & Match Functions
    By bmc1975 in forum Excel General
    Replies: 7
    Last Post: 10-28-2010, 11:04 AM
  7. Combining Match & Index Functions
    By bmc1975 in forum Excel General
    Replies: 10
    Last Post: 08-09-2010, 03:33 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