Intelligent autofill based on cell values.

dzhogov

New Member
Joined
Apr 1, 2019
Messages
11
Hello,

I have built a sales report dashboard which is to be updated monthly with around 2000 rows of input. The data I input has the following categories/columns:

Date | Sales rep | Product | Quantity | Value | Product category | Brand.

Sadly, the company's software does not export the product category and brand automatically, so I need to input them manually. There are around 140 products, 12 categories and 3 brands. Each month, I add the new rows of data, sort the data by Product name so that it's visually obvious which product is in which category and brand, and then I autofill by dragging down the correct category and brand. As the data sheet grows, this takes more and more time.

I am looking for a suggestion of how I should go about creating an intelligent autofill feature for these columns, with each category and brand corresponding to a group of products.

Thanks!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hello,

As long as you are maintaining an up-to-date validation worksheet with your products/categories/brands database ...

a simple macro will execute your ' intelligent autofill ' ...

Hope this will help
 
Upvote 0
Can you perhaps post a small sample of your data; please show a sample of what it looks like just before you do the autofill and a sample of the same data after your autofill work. Just a couple of rows of data suffices.

If I understand correctly, what may help in the autofilling process (this assumes row 1 in your table does not contain empty cells):

- Select all data after doing your additions, but before autofilling
- Press F5, click Special
- Select Blank cells
- press the = sign
- press the up arrow once.
- hold the control key and press enter
- Now select all data again
- Copy
- Paste special, values.
 
Upvote 0
@ Jan Karel

Extremely honored to cross your path ...

A great Fan of Yours ....
:)

Uitstekende dag ...!!!
 
Upvote 0
Thank you for your quick reply, and apologies for not giving a sample of the data in the first place.

Let's say I have to enter the data for March 2019 below the data for February 2019, which has already been filled in last month as follows:

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Month:[/TD]
[TD]Product:[/TD]
[TD]Sales Rep:[/TD]
[TD]Quantity:[/TD]
[TD]Value:[/TD]
[TD]Category:[/TD]
[TD]Brand:[/TD]
[/TR]
[TR]
[TD]feb.19[/TD]
[TD]Fillet stake[/TD]
[TD]John[/TD]
[TD]5.000[/TD]
[TD]100.00[/TD]
[TD]Boneless[/TD]
[TD]Dimmy's[/TD]
[/TR]
[TR]
[TD]feb.19[/TD]
[TD]Fillet stake[/TD]
[TD]John[/TD]
[TD]20.000[/TD]
[TD]400.00[/TD]
[TD]Boneless[/TD]
[TD]Dimmy's[/TD]
[/TR]
[TR]
[TD]feb.19[/TD]
[TD]Wings[/TD]
[TD]Sammy[/TD]
[TD]14.000[/TD]
[TD]28.00[/TD]
[TD]W/ bone[/TD]
[TD]KFC[/TD]
[/TR]
[TR]
[TD]feb.19[/TD]
[TD]Wings[/TD]
[TD]Peter[/TD]
[TD]10.000[/TD]
[TD]20.00[/TD]
[TD]W/ bone[/TD]
[TD]KFC[/TD]
[/TR]
[TR]
[TD]feb.19[/TD]
[TD]Cheese bites[/TD]
[TD]Peter[/TD]
[TD]50.000[/TD]
[TD]50.00[/TD]
[TD]Dairy[/TD]
[TD]Tasties[/TD]
[/TR]
</tbody>[/TABLE]

Once I add the data from March and sort it by product name, I get something like this:

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Month:[/TD]
[TD]Product:[/TD]
[TD]Sales Rep:[/TD]
[TD]Quantity:[/TD]
[TD]Value:[/TD]
[TD]Category:[/TD]
[TD]Brand:[/TD]
[/TR]
[TR]
[TD]feb.19[/TD]
[TD]Fillet stake[/TD]
[TD]John[/TD]
[TD]5.000[/TD]
[TD]100.00[/TD]
[TD]Boneless[/TD]
[TD]Dimmy's[/TD]
[/TR]
[TR]
[TD]feb.19[/TD]
[TD]Fillet stake[/TD]
[TD]John[/TD]
[TD]20.000[/TD]
[TD]400.00[/TD]
[TD]Boneless[/TD]
[TD]Dimmy's[/TD]
[/TR]
[TR]
[TD]mar.19[/TD]
[TD]Fillet stake[/TD]
[TD]John[/TD]
[TD]17.000[/TD]
[TD]340.00[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]mar.19[/TD]
[TD]Fillet stake[/TD]
[TD]Sammy[/TD]
[TD]5.000[/TD]
[TD]100.00[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]feb.19[/TD]
[TD]Wings[/TD]
[TD]Sammy[/TD]
[TD]14.000[/TD]
[TD]28.00[/TD]
[TD]W/ bone[/TD]
[TD]KFC[/TD]
[/TR]
[TR]
[TD]mar.19[/TD]
[TD]Wings[/TD]
[TD]Sammy[/TD]
[TD]1.000[/TD]
[TD]2.00[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]feb.19[/TD]
[TD]Wings[/TD]
[TD]Peter[/TD]
[TD]10.000[/TD]
[TD]20.00[/TD]
[TD]W/ bone[/TD]
[TD]KFC[/TD]
[/TR]
[TR]
[TD]feb.19[/TD]
[TD]Cheese bites[/TD]
[TD]Peter[/TD]
[TD]50.000[/TD]
[TD]50.00[/TD]
[TD]Dairy[/TD]
[TD]Tasties
[/TD]
[/TR]
</tbody>[/TABLE]


What I need is to quickly fill the Category and Brand values based on the value in the Product column. Should I look into a macro that checks the name of each product and assigns it onto a category and brand?

Regards!
 
Upvote 0
If you want to fill the blank cells, with the data from the row above, simply follow the instructions from jkpieterse in post#3.
 
Upvote 0
Indeed, the solution was way simpler than I had anticipated. Thank you to everyone, especially jkpieterse.
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0
Glad this has solved your issue. Please note though if you add an entirely new product category and/or brand you'll have to manually enter the appropriate information in those columns, otherwise it'll end up with the same details as whatever happens to be entered in the row above that new item.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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