Use this in F4 Range = J2:J21 in DeleteReport sheet
=SUMPRODUCT(--(Sheet2!G2:G65536='consolidated report'!B4),(Sheet2!D2:D65536))+IFERROR(VLOOKUP(C4,Range,2,0),0) From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Lokesh Loki Sent: Jan/Sun/2012 07:52 To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Add counts in sumproduct Hi All, Please find the attached excel file. And I need to add counts in consolidated report sheet based on names which is already given in "deleted report" sheet", In consolidated report sheet Cell F4 contains a sumproduct formula. Already i wrote sumproduct formula just to add another sum formula and continue it, that's it. (Please don't delete sumproduct formula). Regards Lokesh.M -- 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 -- 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