Sumif/sumproduct help!

KATYCUSHEN

New Member
Joined
Sep 9, 2019
Messages
2
I am struggling with creating a formula that works for the below scenario

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Item[/TD]
[TD]Budget v1[/TD]
[TD]Budget v2[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Item A[/TD]
[TD]50[/TD]
[TD]55[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Item B[/TD]
[TD]60[/TD]
[TD]65[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Item C[/TD]
[TD]70[/TD]
[TD]75[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Item D[/TD]
[TD]80[/TD]
[TD]85[/TD]
[/TR]
</tbody>[/TABLE]

I have two sheets in one workbook. One with full budget data with in this scenario a Budget v1 and Budget v2 along with individual item names

I want to set up a formula in a separate sheet to input the correct number based on two criteria, the specific item name and the specific budget number

I can get SUM IF to work if there is only one criteria but not both. I have also tried SUMPRODUCT and INDEX MATCH scenarios but not successfully!

I also want to avoid writing "Item A" as this formula will need to scan hundreds of lines of data - all individually named

All help appreciated
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Welcome to the lounge.

Do you mean something like this:

Code:
=INDEX(A1:C5,MATCH("Item C",A1:A5,0),MATCH("Budget v2",A1:C1,0))

Where you could put the item reference in a cell and the budget reference in another and change the specific quoted values above.

The above formula would return 75.

Alternatively:

Code:
=INDEX(Budget!A1:C5,MATCH("Item C",Budget!A1:A5,0),MATCH("Budget v2",Budget!A1:C1,0))
 
Last edited:
Upvote 0
More general it would look like this:


Excel 2010
ABC
1Item CBudget v275
2Item ABudget v255
3Item BBudget v160
NewBudget
Cell Formulas
RangeFormula
C1=INDEX(Budget!$A$1:$C$500,MATCH(A1,Budget!$A$1:$A$500,0),MATCH(B1,Budget!$A$1:$C$1,0))
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top