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

Match column headers and add value

Hi,

I have main table with many columns. I have to map columns from 2nd table for given rows and add values in table1. Please find below attachments.
 

Attachments

  • Tables.JPG
    Tables.JPG
    87.4 KB · Views: 7
  • Match_ColumnsAnd_AddValues.xlsm
    8.9 KB · Views: 2
Using your pictur4 as a template:
O2: =IFERROR(INDEX($B$2:$E$19,MATCH($N2,$A$2:$A$19,0), MATCH(O$1,$B$1:$E$1,0)),0) + IFERROR(INDEX($J$2:$K$10,MATCH($N2,$I$2:$I$10,0), MATCH(O$1,$J$1:$K$1,0)),0)

or see attached file:
 

Attachments

  • Copy of Match_ColumnsAnd_AddValues.xlsm
    9.9 KB · Views: 5
Back
Top