jaseeffect
New Member
- Joined
- May 18, 2019
- Messages
- 3
Hi everyone. Long time lurker, first time poster, this site and the users have provided me with great knowledge over the past few years, so thank you to everyone.
I'm getting a bit deeper than I have needed in the past and need a little assistance b/c I could not find what I was looking for via forum search, nor could i muddle my way through the macro.
What I am trying to do is below:
1) Allow the user to input (or more preferably select from a drop down) a value that appears in Column D of my data worksheet. (Column D is comprised of Products.)
2) Upon selecting the product (or manually typing it in), there needs to be a return of data in an adjacent cell which shows the area(s) with the highest number of units sold for that product. Area is column C, Total sales is Column J. If there are multiple areas with equal sales, both areas should be returned for the user.
3) Data sample below:
[TABLE="width: 694"]
<colgroup><col span="2"><col><col><col span="5"><col></colgroup><tbody>[TR]
[TD]Irrelevant[/TD]
[TD]Irrelevant[/TD]
[TD]Area[/TD]
[TD]Item Type[/TD]
[TD]Irrelevant[/TD]
[TD]Irrelevant[/TD]
[TD]Irrelevant[/TD]
[TD]Irrelevant[/TD]
[TD]Irrelevant[/TD]
[TD]Total Sales[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]North[/TD]
[TD]Petunias[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]South[/TD]
[TD]Roses[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]98[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]East [/TD]
[TD]Daisys[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]97[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]West[/TD]
[TD]Tulips[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]96[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]Northeast[/TD]
[TD]Petunias[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]Northwest[/TD]
[TD]Roses[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]95[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]Southeast[/TD]
[TD]Daisys[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]94[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]Southwest[/TD]
[TD]Tulips[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]93[/TD]
[/TR]
</tbody>[/TABLE]
If there is anything further you need from me to assist, please let me know.
Thank you!
I'm getting a bit deeper than I have needed in the past and need a little assistance b/c I could not find what I was looking for via forum search, nor could i muddle my way through the macro.
What I am trying to do is below:
1) Allow the user to input (or more preferably select from a drop down) a value that appears in Column D of my data worksheet. (Column D is comprised of Products.)
2) Upon selecting the product (or manually typing it in), there needs to be a return of data in an adjacent cell which shows the area(s) with the highest number of units sold for that product. Area is column C, Total sales is Column J. If there are multiple areas with equal sales, both areas should be returned for the user.
3) Data sample below:
[TABLE="width: 694"]
<colgroup><col span="2"><col><col><col span="5"><col></colgroup><tbody>[TR]
[TD]Irrelevant[/TD]
[TD]Irrelevant[/TD]
[TD]Area[/TD]
[TD]Item Type[/TD]
[TD]Irrelevant[/TD]
[TD]Irrelevant[/TD]
[TD]Irrelevant[/TD]
[TD]Irrelevant[/TD]
[TD]Irrelevant[/TD]
[TD]Total Sales[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]North[/TD]
[TD]Petunias[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]South[/TD]
[TD]Roses[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]98[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]East [/TD]
[TD]Daisys[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]97[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]West[/TD]
[TD]Tulips[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]96[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]Northeast[/TD]
[TD]Petunias[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]Northwest[/TD]
[TD]Roses[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]95[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]Southeast[/TD]
[TD]Daisys[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]94[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]x[/TD]
[TD]Southwest[/TD]
[TD]Tulips[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]93[/TD]
[/TR]
</tbody>[/TABLE]
If there is anything further you need from me to assist, please let me know.
Thank you!