Using LEFT and RIGHT with an INDEX MATCH MATCH?

Lewzerrrr

Active Member
Joined
Jan 18, 2017
Messages
256
Hi,

I think quite tricky situation and I may be going about it the wrong way.

I have 3 sheets.

Sheet1 has a value in C3 which is my week number, 34 = Week 34, 35 = Week 35, I manually change this every week.
Sheet2 is my summary page, I need to input my formula in this sheet. In this sheet I have the word "Subtotal" in A3 (This is what I'm going to match.
Sheet3 has my data input.

In sheet 3 what remains constant is row 1 which has my YEARWEEK numbers e.g 201601, 201602.. so I would need a look up to Sheet1 C3 matching to A1:AA1 RIGHT(Cell,2). Also in column A the word "Subtotal" remains constant but the end of the string changes so I would need a LEFT(Cell,8).

The INDEX

So the whole INDEX MATCH MATCH is dynamic that when I change the week number in Sheet1, the value in Sheet2 G3 will update with the Subtotal in Sheet3.

Is this possible?

Small sample data without different worksheets, I can add these in when inputting the formula.

201633201634201635
34 Subtotal207BrandDeptDept Name
Dept1Name1197826
Dept2Name283681
Dept3Name3848667
Dept4Name4811915
Dept5Name521868
Subtotal: 0001 269207257

<colgroup><col><col><col span="3"><col><col><col><col span="3"></colgroup><tbody>
</tbody>

So if I was to change the 34 to 35, the subtotal would change to 257.
But also the Depts get bigger each data input.

Thanks,
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Okay, managed to do it with helper columns, thanks.

If there's a way without helper that would be amazing to learn!
 
Upvote 0
try this


Excel 2012
ABCDEFGHI
1201633201634201635
235Subtotal257BrandDeptDept Name
3Dept1Name1197826
4Dept2Name283681
5Dept3Name3848667
6Dept4Name4811915
7Dept5Name521868
8Subtotal: 0001269207257
Sheet2
Cell Formulas
RangeFormula
C2{=INDEX(G:I,MATCH(B2&"*",D:D,0),MATCH("*"&A2,G1:I1&"",0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
This maybe?


Excel 2016 (Windows) 32 bit
ABCDEFGHIJK
1201633201634201635
234Subtotal207BrandDeptDept Name
3Dept1Name1197826
4Dept2Name283681
5Dept3Name3848667
6Dept4Name4811915
7Dept5Name521868
8Subtotal: 0001269207257
Sheet2
Cell Formulas
RangeFormula
D2=INDEX($I$1:$K$5000,MATCH(C2&"*",$F$1:$F$5000,0),MATCH(VALUE(2016&A2),$I$1:$K$1,0))
 
Upvote 0

Forum statistics

Threads
1,221,527
Messages
6,160,342
Members
451,638
Latest member
MyFlower

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