SUMIFS + INDIRECT (Dynamic)

s_1592

New Member
Joined
Mar 5, 2022
Messages
16
Office Version
  1. 2021
Hi!
I'm trying to obtain the consolidate data (in tab Conso) for Revenue and COGS from two tabs (Los Angeles and New York) via a SUMIFS+INDIRECT, fed by column mapping references (indicated with the red arrows).

I however cannot find a way to make the formula dynamic.

Thank you in advance for your help.

Tab 1 - Los Angeles

Los Angeles


Tab 2 - New York

1648832931987.png


Tab 3 - Conso

1648833790066.png
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
here's a couple of ways that might work for you. went a kinda different route. let me know if this works for what you're trying to do.
---------------------
Book1
ABCDEF
2Corp A+BJan-22Feb-22Mar-22Q1
3Revenue6503808001830
4COGS-40-80-160-280
5GM6103006401550
6
7
8Corp A+BJan-22Feb-22Mar-22Q1
9Revenue6503808001830
10COGS-40-80-160-280
11GM6103006401550
Conso
Cell Formulas
RangeFormula
C3:E3C3=SUM(HLOOKUP(C2,'Los Angeles'!$C$2:$F$4,2),HLOOKUP(C2,'Los Angeles'!$C$7:$F$9,2),HLOOKUP(C2,'New York'!$D$2:$G$4,2),HLOOKUP(C2,'New York'!$D$7:$G$9,2))
F3:F4,F9:F10F3=SUM(C3:E3)
C4:E4C4=SUM(HLOOKUP(C2,'Los Angeles'!$C$2:$F$4,3),HLOOKUP(C2,'Los Angeles'!$C$7:$F$9,3),HLOOKUP(C2,'New York'!$D$2:$G$4,3),HLOOKUP(C2,'New York'!$D$7:$G$9,3))
C5:F5,C11:F11C5=SUM(C3:C4)
C9:E10C9=XLOOKUP(B9,'Los Angeles'!$B$3:$B$4,'Los Angeles'!$C$3:$E$4)+XLOOKUP(B9,'Los Angeles'!$B$8:$B$9,'Los Angeles'!$C$8:$E$9)+XLOOKUP(B9,'New York'!$C$3:$C$4,'New York'!$D$3:$F$4)+XLOOKUP(B9,'New York'!$C$8:$C$9,'New York'!$D$8:$F$9)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,455
Messages
6,124,935
Members
449,195
Latest member
Stevenciu

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