Forum Discussion
How to attach specific dates to a specific category that is in the dropdown menu??? Help !
- Feb 11, 2020
I notice that you have all the items for your dropdown list written in the Source-field of the Conditional Formatting dialogue box. It's better to create a list of all items in a separate sheet and then create a reference to that list in the Source-field. And then you can add the logic that SergeiBaklan was aiming at. You need to determine the date to be attached to each Category yourself. Once that has been accomplished, it's easy to fill in the date, based upon the selected Category.
I've attached a revised version of your sheet to demonstrate the principle. It uses Structured Tables and the VLOOKUP function to find the dates. In case your Excel version recognises the new XLOOKUP function, you could try the following formula in column K of the first sheet. It will produce the same result, but with more flexibility.
=XLOOKUP([@Category],Table1[Category],Table1[Submission Date],"",0)If this is not the kind of logic you had in mind, please clarify your intentions.
Riny_van_EekelenOk, so on the categories tab I copied the information for each category and pasted it underneath so that all Retailers are listed with all the same categories. I just need the dates on the category tab to populate onto the main sheet properly. This way no matter what category I select on the main tab and on any retailer it will pull up those dates specifically pertaining to that retailer. I have attached what I have been doing.
NeedHelp1015 Have tried to keep it fairly simple, by adding two grouped columns in the Accounts table. This will keep the formulae shorter and easier to maintain. Press the + sign above column Q to display them. These two columns determine the starting position of the Retailer and Category inside the Category table (=Table1). Note that the header is not counted here. For instance, Apple Wellness sits on row 2 but has position number 1 in the table.
Changed the formulae that lookup the dates to use INDEX and MATCH (in stead of VLOOKUP) and included an extra row at the top to indicate the column number of each of the dates in the Category table.
Corrected a few inconsistent Retailer Names. Note that these have to exactly the same in both tables. Otherwise the formulae will not be able to find a match.
Deleted a date block for "Marlenes Market" since you had two of them, but added a date block for "Vitamins & Such". The latter you need to fill in yourself.
Hope this works for you!