Hi Amar,

For the best response to your questions, please explain your question in
your email message.

 

In your follow-up message today,  which had neither the question nor the
attachment, it was impossible to tell what you needed help with without
checking the list archives!

 

Here is a solution.

In cell W20 place this formula:

=SUMPRODUCT(--($V20=$C$8:$C$17),--($W$14=$D$8:$D$17),--($Y$14=$E$8:$E$17),OF
FSET(INDEX($G$7:$I$7,,MATCH(W$19,$G$7:$I$7)),1,($X$14-1)*COLUMNS($F$7:$I$7),
ROWS($C$8:$C$17)))

 

Then copy that formula to all other cells in the range W20:Y24 -- the
formula will adjust properly for each cell automatically.

 

I notice that You have two groups of names that you are selecting from (with
Data Validation in V18).  Your existing formulae, and the formula I
provided, do not consider the name group as a criterion.  For the most part,
the names ni each group are different, so in those cases it's irrelevant.
But you have a "Sam" in each group.  Both our formulae will return the
values for whichever Sam matches all the other criteria -- regardless of
name group.

 

Here is an upate to my provided formula that will limit the result to the
specified name group, too.  Put in cell W20 and copy across and down:

=SUMPRODUCT(--($V20=INDIRECT($V$18)),--($W$14=OFFSET(INDIRECT($V$18),,1)),--
($Y$14=OFFSET(INDIRECT($V$18),,2)),OFFSET(INDEX(OFFSET(OFFSET(INDIRECT($V$18
),,4),,,,3),,MATCH(W$19,$G$7:$I$7)),,($X$14-1)*COLUMNS($F$7:$I$7),ROWS(OFFSE
T(INDIRECT($V$18),,1))))

 

Gains in efficiency could be made with further analysis, but hope this
helps.  If with all your real data the spreadsheet is too slow, you can come
back for further help if needed.

 

Asa

 

 

 

From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com]
On Behalf Of amar takale
Sent: Friday, September 07, 2012 6:48 AM
To: excel-macros@googlegroups.com
Subject: $$Excel-Macros$$ Solution for Index array formula

 

 

-- 
Join official facebook page of this forum @
https://www.facebook.com/discussexcel
 
FORUM RULES (1120+ 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. 
 
6) Jobs posting is not allowed.
 
7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups
"MS EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to
excel-macros+unsubscr...@googlegroups.com.
 
 

-- 
Join official facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES (1120+ 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. 

6) Jobs posting is not allowed.

7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to 
excel-macros+unsubscr...@googlegroups.com.


Reply via email to