Hi,
I've seen variations of this question but haven't found anything that solves what I am trying to accomplish.
I have 2 worksheets, a Summary worksheet, and a Details worksheet. The summary worksheet summarizes what is on the detail worksheet (pretty crazy eh??).
The Details worksheet is as follows:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Account[/TD]
[TD]Jan[/TD]
[TD]Feb[/TD]
[TD]Mar[/TD]
[TD]Apr[/TD]
[/TR]
[TR]
[TD]61000[/TD]
[TD]100[/TD]
[TD]150[/TD]
[TD]125[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]61000[/TD]
[TD]200[/TD]
[TD]200[/TD]
[TD]150[/TD]
[TD]175[/TD]
[/TR]
[TR]
[TD]61001[/TD]
[TD]250[/TD]
[TD]175[/TD]
[TD]125[/TD]
[TD]150[/TD]
[/TR]
[TR]
[TD]61001[/TD]
[TD]150[/TD]
[TD]150[/TD]
[TD]125[/TD]
[TD]125[/TD]
[/TR]
</tbody>[/TABLE]
The Summary worksheet is as follows:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Month[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Account[/TD]
[TD]Amount[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]61000
[/TD]
[TD](Calculated result - 175)
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]61001[/TD]
[TD](Calculated result - 150)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]etc.[/TD]
[TD](Calculated result)[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
On the Summary worksheet, C1 (value = 3 in the example above), this value is able to be changed by the user, they can select which month they want to see the results for. It was originally to be used as a helper value for an Index/Match formula to return the value in the March (3) column, or whatever month was selected. The issue is that when an account has multiple lines in the Details worksheet, such as 61000 and 61001 in the above example, the Index/Match formula doesn't work because there are multiple values. I'm wondering if there is a way to incorporate the SUMIF function to get the desired result...
Any help would be greatly appreciated.
Thanks!
I've seen variations of this question but haven't found anything that solves what I am trying to accomplish.
I have 2 worksheets, a Summary worksheet, and a Details worksheet. The summary worksheet summarizes what is on the detail worksheet (pretty crazy eh??).
The Details worksheet is as follows:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Account[/TD]
[TD]Jan[/TD]
[TD]Feb[/TD]
[TD]Mar[/TD]
[TD]Apr[/TD]
[/TR]
[TR]
[TD]61000[/TD]
[TD]100[/TD]
[TD]150[/TD]
[TD]125[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]61000[/TD]
[TD]200[/TD]
[TD]200[/TD]
[TD]150[/TD]
[TD]175[/TD]
[/TR]
[TR]
[TD]61001[/TD]
[TD]250[/TD]
[TD]175[/TD]
[TD]125[/TD]
[TD]150[/TD]
[/TR]
[TR]
[TD]61001[/TD]
[TD]150[/TD]
[TD]150[/TD]
[TD]125[/TD]
[TD]125[/TD]
[/TR]
</tbody>[/TABLE]
The Summary worksheet is as follows:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Month[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Account[/TD]
[TD]Amount[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]61000
[/TD]
[TD](Calculated result - 175)
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]61001[/TD]
[TD](Calculated result - 150)[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]etc.[/TD]
[TD](Calculated result)[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
On the Summary worksheet, C1 (value = 3 in the example above), this value is able to be changed by the user, they can select which month they want to see the results for. It was originally to be used as a helper value for an Index/Match formula to return the value in the March (3) column, or whatever month was selected. The issue is that when an account has multiple lines in the Details worksheet, such as 61000 and 61001 in the above example, the Index/Match formula doesn't work because there are multiple values. I'm wondering if there is a way to incorporate the SUMIF function to get the desired result...
Any help would be greatly appreciated.
Thanks!