Structured References Question

mlbrenes

New Member
Joined
Jun 22, 2017
Messages
4
Hi,

Is it possible to change a specific value in a structured reference calculation?

Basically I want to change the week depending on week I select from a dropdown in another cell.

My table has a column per week for the value I want to obtain, so I want the Sum Range to move depending on that week that I selected, I hope I'm making sense!

My formula is:

Code:
=SUMIFS(TM_Table[[#All],[[COLOR=#ff0000][B]2019-04[/B][/COLOR]]],TM_Table[[#All],[Depot]],[@Depot],TM_Table[[#All],[Category]],$CB$4,TM_Table[[#All],[Type]],[@[Planned/Unplanned]])

What I want to change is the [WEEK] to get the value in column BY3

And I have 2 tables, TM_Table:

DepotCategoryType2019-012019-022019-032019-04
Depot1CountPlanned1054
Depot1TurnaroundPlanned2021
Depot1CostPlanned£20£0£250£250
Depot1CountUnplanned3525
Depot1TurnaroundUnplanned1272
Depot1CostUnplanned£400£500$700£200

<tbody>
</tbody>


The table that's calculating the values:

DepotTypeCountTurnaroundCost
Depot1Planned=FORMULA=FORMULA=FORMULA
Depot1Unplanned
Depot2Planned
Depot2Unplanned
Depot3Planned
Depot3Unplanned

<tbody>
</tbody>


I appreciate your help!! I'm pretty desperate.

Thank you!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
You could use INDIRECT and pass the column reference as a string, or use INDEX and match to return the relevant column based on the header?
 
Last edited:
Upvote 0
I figured it out :)

Used a HLOOKUP, in case you're interested this is the formula I used:

Code:
=HLOOKUP(Week,TM_Table[[#All],[2018-42]:[2019-52]],VLOOKUP(CONCATENATE([@Depot],"-",CB$4,"-",[@[Planned/Unplanned]]),TM_Table[[#All],[Concatenate]:[Value]],2,FALSE),FALSE)
 
Upvote 0

Forum statistics

Threads
1,215,330
Messages
6,124,305
Members
449,150
Latest member
NyDarR

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