Solved

Need Help with a formula

Posted on 2014-10-13
7
102 Views
Last Modified: 2014-10-14
Hello

please see attached file.

the sum-product formula  needs one improvement, currently  it operates with the use of two helper columns. i want to the formula to be improved so that it operates without the need of helper columns or if there is any better way to achieve getting the same result .

thanks.
EE.xlsx
0
Comment
Question by:ProfessorJimJam
  • 4
  • 3
7 Comments
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 40379304
Why do you think it will be better to not use the helper columns? In all likelihood it will simply require an extremely complicated formula that will be much harder to understand and maintain, and probably perform worse.
0
 
LVL 25

Author Comment

by:ProfessorJimJam
ID: 40379333
Thank you Rory for your comment.

I would also prefer using helper columns, but in the worksheet that is heavily populated with formulas, i have no visible range space to keep the helper columns. i was thinking, whether it would be possible or not. i tried it myself but messed it up when combined them together.

if it would not be possible then i would have no option but to continue with the same structure.

thanks.
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 40379600
If you insist - in N2:

=SUMPRODUCT(--(SUM(M$2:M2)>SUBTOTAL(109,OFFSET($C$1,0,0,ROW($C$1:$C$2)-MIN(ROW($C$1:$C$2))+1))),SUM(M$2:M2)-SUBTOTAL(109,OFFSET($C$1,0,0,ROW($C$1:$C$2)-MIN(ROW($C$1:$C$2))+1)),SUBTOTAL(109,OFFSET($D$2,ROW($D$2:$D$3)-MIN(ROW($D$2:$D$3)),0))-N(OFFSET($D$1,ROW($D$1:$D$2)-MIN(ROW($D$1:$D$2)),0)))-SUM(N$1:N1)

and copy down. I'm sure there are more compact formulas!
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 25

Author Comment

by:ProfessorJimJam
ID: 40379683
Thank you very much Rory.

i changed some of the cell reference from absolute reference to mixed reference and it worked.

i do not think, there would be any other solution but the one you provided. because, my request on one of other forums were pending for months and nobody came up with any solution, except i got the message that it is impossible. so i had to ask the mod to delete the question. but finally here you got it right.  thanks a lot.  i am also a fan of your web excelmatters

=SUMPRODUCT(--(SUM(M$2:M2)>SUBTOTAL(109,OFFSET($C$1,0,0,ROW($C$1:$C2)-MIN(ROW($C$1:$C2))+1))),SUM(M$2:M2)-SUBTOTAL(109,OFFSET($C$1,0,0,ROW($C$1:$C2)-MIN(ROW($C$1:$C2))+1)),SUBTOTAL(109,OFFSET($D$2,ROW($D$2:$D3)-MIN(ROW($D$2:$D3)),0))-N(OFFSET($D$1,ROW($D$1:$D2)-MIN(ROW($D$1:$D2)),0)))-SUM(N$1:N1)
0
 
LVL 25

Author Closing Comment

by:ProfessorJimJam
ID: 40379690
you have a great intellect
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 40379762
Oh so it's you that reads it! :)
0
 
LVL 25

Author Comment

by:ProfessorJimJam
ID: 40379860
:-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now