Thank you for the tips - the 'Count if' function worked.
As I only had 5 points left to start a new topic, I decided to take the opportunity to save them and ask an additional question in this thread. This time I prepared myself more carefully than before.
In the attachment I present a very simplified diagram of the sheet with which I am struggling at work. I am getting tired because I am old and the new version of Excel is veeery unfriendly and somehow not intuitive for me. I am going back to the point. I gave the entire notebook in a nutshell on one sheet. We have three sections:
1. DATABASE - I put the output here - our drivers, rented (couriers), our vehicles and names of companies renting couriers
2. TABLE on which we set the cast of individual routes. Different drivers on different routes every day. In the Vehicle column, I put a vehicle (3.5 tons or 7.5 tons) for our drivers. As we do not know which car the hired courier will arrive - we only add the name of the courier company to the table (formula).
3. PRINT - this is the final sheet. The VEHICLE column should contain our vehicle number (L7: L14) or the name of the courier company (O7

11)
I need help in two places:
1. How can I make Excel enter the correct value in the PRINT column (U5: U14), that is either the vehicle number (let's say registration) or the name of the courier company?
2. Whether selecting data from drop-down lists, e.g. (D6

15) you can download (copy) the formatting (color) of the source cell by the way?
Thank you in advance with any help given.
Peter