Hi Sam,

Thanks for solving the problem. All the best for your future.

Once again thanks a lot.

Regards
Lokesh.M

On Sun, Jan 8, 2012 at 11:56 PM, Sam Mathai Chacko <samde...@gmail.com>wrote:

> To add it to the sumproduct formula, all you had to do was ensure that the
> correct sheet and the correct cells are being referred. Otherwise,
> everything else remaining the same, you just had to add it to your original
> formula. Here's how you do it.
>
> =SUMPRODUCT(--(Sheet2!$G$2:$G$65536='consolidated
> report'!B4),(Sheet2!$D$2:$D$65536))+IF(ISERROR(MATCH(FALSE,ISNUMBER(OFFSET(INDEX('Deleted
> report'!$A:$A,MATCH(D4,'Deleted report'!$A:$A,0)),1,0):'Deleted
> report'!$A$65536),0)),COUNT(OFFSET(INDEX('Deleted
> report'!$A:$A,MATCH(D4,'Deleted report'!$A:$A,0)),1,0):'Deleted
> report'!$A$65536),MATCH(FALSE,ISNUMBER(OFFSET(INDEX('Deleted
> report'!$A:$A,MATCH(D4,'Deleted report'!$A:$A,0)),1,0):'Deleted
> report'!$A$65536),0)-1)
>
> I have attached your file with this formula in cell F4 (and F5).
>
> Again, if you want to make the formula shorter, you can use named ranges,
> but I am not going in to that (you can explore yourself). Also, since the
> formula is an array, using the entire rows of the sheet may (will) slow
> down the calculation. Try giving a smaller row size to speed up the
> calculation. To save time, I have used 65536 rows as you have.
>
> Regards,
>
> Sam Mathai Chacko
>
>
> On Sun, Jan 8, 2012 at 11:42 PM, Lokesh Loki <lokeshsmg2...@gmail.com>wrote:
>
>> Hi Sam,
>>
>> I have checked this formula and i get the correct counts. and just add
>> these counts to your sumproduct formula based on name wise.
>>
>> Thanks for solving the problem.
>>
>> Regards
>> Lokesh
>>
>> On Sun, Jan 8, 2012 at 11:28 PM, Sam Mathai Chacko <samde...@gmail.com>wrote:
>>
>>> Here's the formula as an array.
>>>
>>>
>>> =IF(ISERROR(MATCH(FALSE,ISNUMBER(OFFSET(INDEX($A$1:$A$613,MATCH(J2,$A$1:$A$613,0)),1,0):$A$613),0)),COUNT(OFFSET(INDEX($A$1:$A$613,MATCH(J2,$A$1:$A$613,0)),1,0):$A$613),MATCH(FALSE,ISNUMBER(OFFSET(INDEX($A$1:$A$613,MATCH(J2,$A$1:$A$613,0)),1,0):$A$613),0)-1)
>>>
>>> If you are using Excel 2010, you are use IFERROR to make the formula
>>> above even smaller.
>>>
>>> Regards,
>>>
>>> Sam Mathai Chacko
>>>
>>>
>>> On Sun, Jan 8, 2012 at 9:18 PM, Lokesh Loki <lokeshsmg2...@gmail.com>wrote:
>>>
>>>> Hi sam,
>>>>
>>>> thanks for your valuable reply,
>>>> Yes. i am looking deleted sheet count ANUSHA CHANNAPPA get 54 is to be
>>>> added in consolidated report cell F4.
>>>>
>>>> regards
>>>> lokesh
>>>>
>>>> On Sun, Jan 8, 2012 at 9:12 PM, Sam Mathai Chacko 
>>>> <samde...@gmail.com>wrote:
>>>>
>>>>> Lokesh, your request is not very clear. Can you please explain what
>>>>> exactly are you wanting to do?
>>>>>
>>>>> For example, how did ANUSHA CHANNAPPA get 54 counts??!!
>>>>>
>>>>> Sam
>>>>>
>>>>>
>>>>> On Sun, Jan 8, 2012 at 8:37 PM, lokesh <lokeshsmg2...@gmail.com>wrote:
>>>>>
>>>>>> Hi Experts,
>>>>>>
>>>>>> I am looking any updates from you. Please do the needful.
>>>>>>
>>>>>> Regards
>>>>>> Lokesh.M
>>>>>>
>>>>>>
>>>>>> ---------- Forwarded message ----------
>>>>>> From: Lokesh Loki <lokeshsmg2...@gmail.com>
>>>>>> Date: Jan 8, 7:22 pm
>>>>>> Subject: Add counts in sumproduct
>>>>>> To: MS EXCEL AND VBA MACROS
>>>>>>
>>>>>>
>>>>>> 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
>>>>>>
>>>>>>  Production Quality report.xls
>>>>>> 1758KViewDownload
>>>>>>
>>>>>> --
>>>>>> 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
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Sam Mathai Chacko
>>>>>
>>>>> --
>>>>> 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
>>>>
>>>
>>>
>>>
>>> --
>>> Sam Mathai Chacko
>>>
>>> --
>>> 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
>>
>
>
>
> --
> Sam Mathai Chacko
>
> --
> 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

Reply via email to