Auto populate lists in 4 columns

lost_in_the_sauce

Board Regular
Joined
Jan 18, 2021
Messages
128
Office Version
  1. 365
Platform
  1. Windows
I have a list of stores with opening dates (mostly within the last 4 years) so they fall into the categories of Years Open (1, 2, 3, 4+) based on the opening date vs =today(). Column A being store name and column B being opening date.

My second tab is more of a dashboard list view, with name, version, sales YTD by park - all easily referenced info from tab 1 with all the data. Is there a way to auto populate the 4 columns on tab 2? For example, Starting with cell C15 and going down, all stores in their first year, same for cell H7 down and 2nd year, etc etc, but it places the stores in the correct columns when the file is opened instead of having to audit by hand every month to see which stores have broken an anniversary and need to change column?
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I was following you in the first half, but the second part threw me off, so if I misunderstood your request I apologies.

So, going off your Store Open Index or sheet I'm guessing it'll look something along the lines as such?
Book1
ABC
1Store NameOpening DateYears Open
2Sauce 11/1/20184
3Sauce 201/01/193
4Sauce 301/01/202
5Sauce 401/01/211
6Sauce 501/01/184
7Sauce 601/01/193
8Sauce 701/01/202
9Sauce 801/01/211
Stores
Cell Formulas
RangeFormula
C2:C9C2=DATEDIF(B2,TODAY(),"y")


If so, then perhaps an automated format like this will work. No VBA required. You can switch it up with an
Excel Formula:
CONCATENATE
function if you perfer, but this worked for me.
Cell Formulas
RangeFormula
C9:L18C9=IF(Stores!$A2&Stores!$C2=Stores!$A2&Dashboard!C$8,Stores!$A2,"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C9:L28Expression=MOD(ROW(),2)textNO

IMPORTANT: If this is what your seeking, remember to be careful when reformatting it to work on your worksheet, as the absolute and relative referring is critical here.
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,542
Members
449,316
Latest member
sravya

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