Hi!
I have a gantt chart I created that basically visualizes a schedule of car repairs, it is here:
ufile.io/0wjiy
The feeder sheet is by customer by day, and then the main sheet just takes that info and puts it by Bay. The Main sheet has lookups that print out the customer name for each bay, it's designed this way so conditional formatting can be used to color the name of each customer.
This works fine but I want I would like is above each colored line (Bay) on the Main Sheet, I would like an automatic description of each customer's work.
But I can't do that using formulas because the columns are so tiny that you wouldn't be able to read anything because each column would have a formula and Excel doesn't let any adjacent text overwrite anything in a formula even if the result of the formula is blank or 0.
Look at my comment for an example of how I would like for it to look.
So, I think I need some kind of macro that somehow knows when the cell directly below (in the same column) changes from customer A to customer B (and if there is no customer there there should be no description).
This doesn't seem like it would too hard since:
1.) The rows that I want descriptors on (rows 12,15,18,21,24,27,30,33,36,39) will not change
2.) The lookups on the Main Sheet are set up to give the name of the customer from column F on the feeder sheet. This means that the descriptor row can tell when to print out a descriptor by just printing it out when the cells in the row above switch customer names or go from customer name to 0.
3.) The customers will NOT change often on the same row (if there is a change it is at least a month wide). Although I do see a couple times in Bay 9 and Bay 10 where it is only a few days long, ideally the macro would only print a description if there are something like 20 days in a row where there is a non zero value in the cell.
Anyway, is this possible at all?
This may not be the best idea but my idea would be for the macro to use if statements based on the cell below, and if the cells based the check then they would print the result of the formula that I have written in each BAY 1 INFO cell line. Importantly, if it doesn't pass the test then the cells will be completely blank with no formula so the text can continue on.
Any ideas?
Thanks for reading!
Bookmarks