jfgoodhew1
New Member
- Joined
- Oct 16, 2012
- Messages
- 19
Hello lucky people, I have a Friday Afternoon style question...
I have panels, which are linked to frames. Different panels are linked to different frames.
I need to find the overall frame heights, by summing all panel heights which are linked to that frame.
I had it all working when the groups of frames each panel referenced were contiguous... Now, they're not
So, my sample data:
Panel height Panel width Frame # Frame # Frame #
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]400[/TD]
[TD]700[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]730[/TD]
[TD]700[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]730[/TD]
[TD]700[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]400[/TD]
[TD]850[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]730[/TD]
[TD]850[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD]13[/TD]
[/TR]
</tbody>[/TABLE]
I want to:
- Find all instances of 1 from range C1:E5
- Sum the values in A1:A5 accordingly
Sounds dead simple, right?
I managed to find the rail width using an *array* formula below (entered by CTRL+SHIFT+ENTER). This works because the width is the same throughout the frame, so the MIN() part works.
This was from Aladin Ayurek here (with extra for insert rows robustness):
=IF(COUNTIF(B2:F8,O1),INDEX(A2:A8,MIN(IF(B2:F8=O1,ROW(A2:A8)-ROW(A2)+1))),"")
https://www.mrexcel.com/forum/excel-questions/562451-find-value-across-multiple-columns-2.html
The height of the frame, however, is a different game because I need to sum all those instances in A1:A5 - preferably without VBA for reasons that exist. I feel like we are ever so close but missing something vital.
Thanks for all your help!
I have panels, which are linked to frames. Different panels are linked to different frames.
I need to find the overall frame heights, by summing all panel heights which are linked to that frame.
I had it all working when the groups of frames each panel referenced were contiguous... Now, they're not
So, my sample data:
Panel height Panel width Frame # Frame # Frame #
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]400[/TD]
[TD]700[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]730[/TD]
[TD]700[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]730[/TD]
[TD]700[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]400[/TD]
[TD]850[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]730[/TD]
[TD]850[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD]13[/TD]
[/TR]
</tbody>[/TABLE]
I want to:
- Find all instances of 1 from range C1:E5
- Sum the values in A1:A5 accordingly
Sounds dead simple, right?
I managed to find the rail width using an *array* formula below (entered by CTRL+SHIFT+ENTER). This works because the width is the same throughout the frame, so the MIN() part works.
This was from Aladin Ayurek here (with extra for insert rows robustness):
=IF(COUNTIF(B2:F8,O1),INDEX(A2:A8,MIN(IF(B2:F8=O1,ROW(A2:A8)-ROW(A2)+1))),"")
https://www.mrexcel.com/forum/excel-questions/562451-find-value-across-multiple-columns-2.html
The height of the frame, however, is a different game because I need to sum all those instances in A1:A5 - preferably without VBA for reasons that exist. I feel like we are ever so close but missing something vital.
Thanks for all your help!
Last edited: