• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Please help allocate cost by department....

vaxo

New Member
hello, need to allocate cost by department using match index or vlookup... in the yellow range with formulas ..
 

Attachments

  • cost allocation.xlsx
    9.9 KB · Views: 10
C5: =IFERROR($B5*(OFFSET(C$2,MATCH($H5,$A$3:$A$14,0),)/OFFSET($B$2,MATCH($H5,$A$3:$A$14,0),)),0)

Copy across and down

A14 has a trailing space which you need to remove

Refer attached file:
 

Attachments

  • cost allocation.xlsx
    10.2 KB · Views: 4
Last edited:
Hi

Paste below formula in C5 and drag it working fine.
check the attached file.
=(C$14/$B$14)*$B5
 

Attachments

  • cost allocation.xlsx
    9.9 KB · Views: 3
Cost allocated based on other account.
Plz refer attach file. In this case you can use simple sum formula.
 

Attachments

  • cost allocation.xlsx
    9.8 KB · Views: 5
Can you help in this case ?? like previous one but i cannot know how to solve..
 

Attachments

  • cost allcoation1.xlsx
    9.5 KB · Views: 9
B21: =INDEX($B$5:$B$10,MATCH($A21,$A$5:$A$10,0))*OFFSET(B$13,MATCH($G21,$A$14:$A$16,0),)/OFFSET($F$13,MATCH($G21,$A$14:$A$16,0),)
 
One more formula... (paste this in B21) and copy.

=VLOOKUP($G21,$A$14:$F$16,COLUMNS($B$20:B$20)+1,FALSE)/VLOOKUP($G21,$A$14:$F$16,6,FALSE)*$B5

For total column, simply addup B21:E21 and drag down.
 
Hi!

Another way (just for fun). Put it B21 this array formula (CSE):

=PRODUCT($B5,VLOOKUP($G21,$A$14:$F$16,CHOOSE({1,2},COLUMNS($A21:B21),6),)^{1,-1})

And drag it down and right. Blessings!
 
Back
Top