• 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.

Compbination of Vlookup for two lines

salil nagpal

New Member
Hi,

Friends i need some help in vlookup formula. I have a dump where in i have project code and expenses code with monthly expenses.
Now i have individual sheet where in i need data from the dump.
I have attached a sheet for your reference , i need to fillin data in yellow colour cells.

regards
Salil
 

Attachments

  • Trail Balance.xlsx
    8 KB · Views: 9
@Salil

you can try another method with Array formula Ctrl+Shift+Enter also

Code:
=IFERROR(INDEX(D:D,MATCH($F$5&$G5,$B:$B&$C:$C,0)),"")

Thanks
 
@salil nagpal

Please have a look of uploaded file. I had use two formulas two get exp code & net amount.

To get exp code use :
Code:
=IF(ROWS(G$5:G5)<=COUNTIF($B$4:$B$21,F$5),INDEX($C$4:$C$21,SMALL(IF($B$4:$B$21=F$5,ROW($B$4:$B$21)-ROW($B$4)+1),ROWS(G$5:G5))),"")

As this is an Array formula enter with Ctrl+Shift+Enter.

To get net amount use:
Code:
=SUMPRODUCT((--($B$4:$B$21=F$5))*(--($C$4:$C$21=G5))*($D$4:$D$21))

Regards!
 

Attachments

  • Trail Balance.xlsx
    10.3 KB · Views: 2
Back
Top