Dynamic large funtion?

monaldo12

New Member
Joined
Mar 17, 2016
Messages
45
Hi all,

Hopefully it's possible, what not in excel :)
I'm familiar with the large function, the thing is that I would like to make it dynamic with a vlookup or match function in it. So in the below case if a user wants to find out the highest sales of the three weeks by a certain product, he just needs to fill in the product in a certain cell, the formula looks it up in the columns with the sales numbers. But to do it I think it first would need like a workaround to first find the right row and the look for the highest number in the row matching with the product. As far as I have figured it out, the large formula keeps on searching in the rows which I have determined and it's not dynamic.
Is this possible?



[TABLE="width: 854"]
<colgroup><col><col><col><col span="3"></colgroup><tbody>[TR]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Geography[/TD]
[TD]Product[/TD]
[TD]Measure[/TD]
[TD]Wk 1, 2018[/TD]
[TD]Wk 2, 2018[/TD]
[TD]Wk 3, 2018[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]TOTAAL FACE CARE [/TD]
[TD]Euro Sales[/TD]
[TD="align: right"]3169349,00[/TD]
[TD="align: right"]4053950,00[/TD]
[TD="align: right"]3930085,00[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]VENDOR NOT FOUND BIO OIL [/TD]
[TD]Euro Sales[/TD]
[TD="align: right"]153978,00[/TD]
[TD="align: right"]117877,00[/TD]
[TD="align: right"]696625,00[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]BEIERSDORF NIVEA [/TD]
[TD]Euro Sales[/TD]
[TD="align: right"]28263,00[/TD]
[TD="align: right"]31669,00[/TD]
[TD="align: right"]49352,00[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]L'OREAL L'OREAL [/TD]
[TD]Euro Sales[/TD]
[TD="align: right"]780267,00[/TD]
[TD="align: right"]855151,00[/TD]
[TD="align: right"]639315,00[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]PROCTER & GAMBLE OLAZ [/TD]
[TD]Euro Sales[/TD]
[TD="align: right"]211439,00[/TD]
[TD="align: right"]603582,00[/TD]
[TD="align: right"]547956,00[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]LOUIS WIDMR INTRNTNL LOUIS WIDMER [/TD]
[TD]Euro Sales[/TD]
[TD="align: right"]276322,00[/TD]
[TD="align: right"]429635,00[/TD]
[TD="align: right"]245835,00[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
How about


Excel 2013/2016
ABCDEF
1GeographyProductMeasureWk 1, 2018Wk 2, 2018Wk 3, 2018
2WalmartTOTAAL FACE CAREEuro Sales316934940539503930085
3WalmartVENDOR NOT FOUND BIO OILEuro Sales153978117877696625
4WalmartBEIERSDORF NIVEAEuro Sales282633166949352
5WalmartL'OREAL L'OREALEuro Sales780267855151639315
6WalmartPROCTER & GAMBLE OLAZEuro Sales211439603582547956
7WalmartLOUIS WIDMR INTRNTNL LOUIS WIDMEREuro Sales276322429635245835
8
9
10
11
12L'OREAL L'OREAL855151
Forecast
Cell Formulas
RangeFormula
B12=MAX(INDEX(D2:F7,MATCH(A12,B2:B7,0),0))
 
Upvote 0
How about
[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]B12[/TH]
[TD="align: left"]=MAX(INDEX(D2:F7,MATCH(A12,B2:B7,0),0))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]


Exactly what I was looking for, thanks a lot!!!!!!!!!!!
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0
You're welcome & thanks for the feedback

Hi, sorry I wasn't specific enough in my question. The thing is that I want to create a top 10 values for that certain product. That's why I used function large so I can state nr 1, then nr2 and so on....
With this max function I can only find the nr1, is it possible to make a top 10 for example? But depending on the product it has to search in a certain row.
 
Upvote 0
How about


Excel 2013/2016
ABCDEF
1GeographyProductMeasureWk 1, 2018Wk 2, 2018Wk 3, 2018
2WalmartTOTAAL FACE CAREEuro Sales316934940539503930085
3WalmartVENDOR NOT FOUND BIO OILEuro Sales153978117877696625
4WalmartBEIERSDORF NIVEAEuro Sales282633166949352
5WalmartL'OREAL L'OREALEuro Sales780267855151639315
6WalmartPROCTER & GAMBLE OLAZEuro Sales211439603582547956
7WalmartLOUIS WIDMR INTRNTNL LOUIS WIDMEREuro Sales276322429635245835
8
9
10
11
12L'OREAL L'OREAL855151780267639315
Forecast
Cell Formulas
RangeFormula
B12=LARGE(INDEX($D$2:$F$7,MATCH($A$12,$B$2:$B$7,0),0),COLUMNS($A$1:A1))
 
Upvote 0
Hi, sorry for the trouble, final small step hopefully. This formula works when I copy it further to the right. Is it possible to make it vertically so the outcome of the top 10 is below each others? And is it possible , maybe in a cell next to it, to give the exact week of that certain value. So for example that I can see it's week 3, 2018?

Sorry for all the questions, but you're a genius so hopefully it's an easy one for you :)
 
Last edited by a moderator:
Upvote 0
How about


Excel 2013/2016
ABCDEF
1GeographyProductMeasureWk 1, 2018Wk 2, 2018Wk 3, 2018
2WalmartTOTAAL FACE CAREEuro Sales316934940539503930085
3WalmartVENDOR NOT FOUND BIO OILEuro Sales153978117877696625
4WalmartBEIERSDORF NIVEAEuro Sales282633166949352
5WalmartL'OREAL L'OREALEuro Sales780267855151639315
6WalmartPROCTER & GAMBLE OLAZEuro Sales211439603582547956
7WalmartLOUIS WIDMR INTRNTNL LOUIS WIDMEREuro Sales276322429635245835
8
9
10
11
12L'OREAL L'OREAL855151Wk 2, 2018
13780267Wk 1, 2018
14639315Wk 3, 2018
Forecast
Cell Formulas
RangeFormula
B12=LARGE(INDEX($D$2:$F$7,MATCH($A$12,$B$2:$B$7,0),0),ROWS($A$1:A1))
C12=INDEX($D$1:$F$1,MATCH($B12,INDEX($D$2:$F$7,MATCH($A$12,$B$2:$B$7,0),0),0))


And please do not quote entire posts as it just clutters up the thread.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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