Sumifs with Dynamic Columns

RudRud

Active Member
Joined
Feb 2, 2023
Messages
275
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
  2. MacOS
Hi Sir,

I'd like to ask for help to make the sum range and criteria columns dynamic, bcos the values2 and name columns are changing every time therefore I need to change the formula whenever the said columns have been changed

C:C
A:A

Book1
ABCDEFGH
1NameValueValue2Value2
2Rud18Rud16
3Test28Test8
4Rud38
Sheet1
Cell Formulas
RangeFormula
H2:H3H2=SUMIFS(C:C,A:A,G2)


Thanks
 
Last edited:

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Something like this?

23 03 03.xlsm
ABCDEFGH
1NameValueValue2Value2
2Rud18Rud16
3Test28Test8
4Rud38
5
RudRud
Cell Formulas
RangeFormula
H2:H3H2=SUMIFS(INDEX(B:E,0,MATCH(H$1,B$1:E$1,0)),A:A,G2)
 
Upvote 1
Well Noted, Thanks for your assist Sir
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0
Hi Sir, Sorry for asking again

Is that possible for the sum range and criteria range based on other selected Workbook Name and Sheets?

For Example, I want to sumifs the Book3 Sheet1 area (always different based on what I input in the k2 and k3 values) instead of the current workbook

Book2
ABCDEFGHIJK
1NameValueValue2Value2
2Rud18Rud16Wb Name:[Book3]
3Test28Test8Wb sheets:Sheet1
4Rud38
5
Sheet1
Cell Formulas
RangeFormula
H2:H3H2=SUMIFS(INDEX(B:E,0,MATCH(H$1,B$1:E$1,0)),A:A,G2)


Book3
AB
1NameValue2
2Rud5
3Rud5
Sheet1
 
Upvote 0
I'm afraid that I don't have anything for you. Perhaps somebody else will step in with an offering though.
 
Upvote 0
Hi, see the linked files for a possible solution for your #5 message...

The formula used in the table:
=SUMIFS(INDEX(INDIRECT(K$2&K$3&"!B:E"),0,MATCH(H$1,INDIRECT(K$2&K$3&"!B$1:E$1"),0)),INDIRECT(K$2&K$3&"!A:A"),G2)

Book2.xlsx
Book3.xlsx
 
Upvote 0
Solution
Hi, see the linked files for a possible solution for your #5 message...

The formula used in the table:
=SUMIFS(INDEX(INDIRECT(K$2&K$3&"!B:E"),0,MATCH(H$1,INDIRECT(K$2&K$3&"!B$1:E$1"),0)),INDIRECT(K$2&K$3&"!A:A"),G2)

Book2.xlsx
Book3.xlsx

Hi, can now, Thanks so much for your kind assist sir :)
 
Upvote 0
Hi, I am very glad that the formula works.
If I have enough knowledge, I am happy to help at any time.
 
Upvote 0

Forum statistics

Threads
1,215,720
Messages
6,126,436
Members
449,314
Latest member
MrSabo83

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