netrixuser
Board Regular
- Joined
- Jan 21, 2019
- Messages
- 77
- Office Version
- 365
- Platform
- Windows
I just can't get my head around how to approach this.
I have inherited a spreadsheet containing a floorplan that is using Vlookups to pull the name of the person sitting at the desk from an array containing the desks and usernames. I would like to change the fill colour of the cell that represents the desk based on some text contained in another column in the lookup array. The text could be either T4 or T4M and I would like the fill colour to be different for each one.
Below is an example of the Desk layout and the Array below that. [The Vlookup references an cell containing both first and second names]
Based on the text in column I in the array, I would like the cells in the plan (where the names are presented) to change colour accordingly.
I can use Conditional Formatting in each cell but cannot see how to copy it to every other cell so that the referenced cell changes each time [ie to look at L1-2D01D for the cell containing Micky and L1-2D02D for Donald] . The Desk Plan, as you can imagine, is fairly large, but is not contiguous rows or columns of desks - but rather blocks of desks.
I'm happy to run a Macro as and when changes are made if that is an easier approach.
Any pointers/help gratefully received !
Regards, NetrixUser
Realised I missed the headings off - "Micky Mouse" is J58, "Donald Duck" is K58
I have inherited a spreadsheet containing a floorplan that is using Vlookups to pull the name of the person sitting at the desk from an array containing the desks and usernames. I would like to change the fill colour of the cell that represents the desk based on some text contained in another column in the lookup array. The text could be either T4 or T4M and I would like the fill colour to be different for each one.
Below is an example of the Desk layout and the Array below that. [The Vlookup references an cell containing both first and second names]
Based on the text in column I in the array, I would like the cells in the plan (where the names are presented) to change colour accordingly.
I can use Conditional Formatting in each cell but cannot see how to copy it to every other cell so that the referenced cell changes each time [ie to look at L1-2D01D for the cell containing Micky and L1-2D02D for Donald] . The Desk Plan, as you can imagine, is fairly large, but is not contiguous rows or columns of desks - but rather blocks of desks.
I'm happy to run a Macro as and when changes are made if that is an easier approach.
Any pointers/help gratefully received !
Regards, NetrixUser
Realised I missed the headings off - "Micky Mouse" is J58, "Donald Duck" is K58