+ Reply to Thread
Results 1 to 10 of 10

more efficient formula using index and match for breakdown of values in one cell

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

    Question more efficient formula using index and match for breakdown of values in one cell

    I have a datasheet of puchase orders which are itemised according to taxes paid .

    However when there are different purchase orders but same itemised number for taxes, It's a chore to do this manually as attached in yellow and in blue the manual breakdown and brown the expected results which should tally with the totals for each itemised taxes

    The data goes up to 1000 rows !!!

    Take note the taxes are on sheet 2 but for ease of understanding I have put it on same sheet and label it at end of data.

    Can anyone help to have a more efficient formula in one cell for each taxes
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: more efficient formula using index and match for breakdown of values in one cell

    you can use a vlookup() or an index/match

    for the F column
    =Index( $N$1:$N$1000, match(B2, $M$1:$M$1000,0))

    for the G column
    =Index( $O$1:$O$1000, match(B2, $M$1:$M$1000,0))


    Which you have already
    so not sure what I'm calculating now
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

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

    Lightbulb Re: more efficient formula using index and match for breakdown of values in one cell

    See attached column B8.B9,B10 AND B19 B20

    AND TAX CODE M8 and M14 .


    Ihave to make make extra calculation from column H to K for a complete breakdown per itemised tax because there are different purchase orders associated to their itemised tax ,
    this is the issues, looking a formula that can embed a single calculation without doing manual formula from column H to k.

    In summing it should tally as example item 13 in red

    13 1699 1954 expected results

    12088 13 72.55 1699 1954 485.08 557.88
    12241 13 181.56 1699 1954 1,213.92 1,396.12

    Also itemised column 7 AND 9 shows same issues ??

    With one puchase order and 1 itmised Tax the formual index and match works fine but different purchase orders same itemised tax is the issue
    Attached Images Attached Images

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: more efficient formula using index and match for breakdown of values in one cell

    so you are just using the same lookup values
    I8,I9,I10
    has
    =C8/$K$8*$O$8

    so O8 could be replaced by
    =INDEX($O$2:$O$20,MATCH(B8,$M$2:$M$20,0))

    and H18
    =C18/$K$18*$N$14
    N14
    could be replaced with
    =INDEX($N$2:$N$20,MATCH(B18,$M$2:$M$20,0))

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

    Re: more efficient formula using index and match for breakdown of values in one cell

    For item 13 break down tax should be 485.08 and 1213.92= total 13 tax 1699 and vat 577.88 & 1396.12= 1954 in tax colum itemised 13
    Actuallu reading taotal 1699 and 1954 for both itmised which is incorrect

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: more efficient formula using index and match for breakdown of values in one cell

    but in your table you have in column M lookup 13
    and for that value column N & O are 1699 and 1954
    so code 13 is those values

    really sorry I'm just not getting the problem you have

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

    Re: more efficient formula using index and match for breakdown of values in one cell

    I have amended the tax sheet with the expected results in column tax and vat.
    The previous file was a bit confusing to understand,
    Attached Files Attached Files

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: more efficient formula using index and match for breakdown of values in one cell

    i'm really sorry , I just dont understand what you are trying to achieve even with the amended sheet

    Hopefully other members may understand - but for me , i would need a full explanation

    and what you expect Excel to do

    Lookup item from B in column G, which returns H or I
    for item 13
    TAX = 1699
    VAT = 1944

    So now we have this information
    How do you get to 485.08 and 557.88
    in columns D and E
    ?

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

    Re: more efficient formula using index and match for breakdown of values in one cell

    I have to do this manually

    =SUM(C20+C21) sum amount manually for item 13
    =C20/$N$17*$H$16 =C20/$N$17*$I$16 then for item 13 amount with different purchase orders divide by total amount fot item purchase orders* tax (called prorating) so that total amount tally with amount tax sheet
    =C21/$N$17*$H$16 =C21/$N$17*$I$16

    That is sum amount

  10. #10
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: more efficient formula using index and match for breakdown of values in one cell

    i dont have anything in the N or i columns now - i assume this is the old sheet now

    whats the formula you would use to calculate
    D20
    E20
    D21
    E21

    results

+ 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] Using INDEX + MATCH formula for ascending/descending values
    By BrettE in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-11-2015, 02:37 AM
  2. Replies: 2
    Last Post: 02-20-2015, 05:23 PM
  3. Replies: 2
    Last Post: 11-13-2014, 11:22 AM
  4. Issues with Index Match formula returning values and some #ref
    By kokapelly in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-27-2014, 04:47 PM
  5. Replies: 4
    Last Post: 01-13-2014, 04:16 AM
  6. [SOLVED] Help-> Index+Match formula pulling wrong values
    By sashafierce in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-29-2013, 07:13 PM
  7. Replies: 2
    Last Post: 08-26-2011, 09:59 AM

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