Hello Sreejith, As Seema said, not sure about how do you want to compare due to duplicate trade ID's. If you are looking to total the headings based on TradeID's use SUMIF.
In C11, then copy down. Assume Trade Id always be in column A in detailed sheet * =IFERROR(SUMIF(Detailed!A:A,C$8,INDEX(Detailed!A:K,0,MATCH(B11,Detailed!A$2:K$2,0))),0) * In F11, then copy down. Assume Trade ID's always be in column B in summary sheet * =IFERROR(SUMIF(Summary!B:B,C$8,INDEX(Summary!A:K,0,MATCH(E11,Summary!A$2:K$2,0))),0) * If the Trade ID heading also may have in different places, use like this, In C11, then copy down. * =IFERROR(SUMIF(INDEX(Detailed!A:K,0,MATCH(B$8,Detailed!A$2:K$2,0)),C$8,INDEX(Detailed!A:K,0,MATCH(B11,Detailed!A$2:K$2,0))),0) * In F11, then copy down. * =IFERROR(SUMIF(INDEX(Summary!A:K,0,MATCH(B$8,Summary!A$2:K$2,0)),C$8,INDEX(Summary!A:K,0,MATCH(E11,Summary!A$2:K$2,0))),0) * ___________ HTH,, Haseeb -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com