![]() |
#8
|
||||
|
||||
![]() Quote:
It's a balancing act; do I have a long list (more difficult to maintain when there are department changes) or a shorter list where we know a given plant will be associated with a range of numbers (this is often the case with cost centre names)? If you are going to use a full list then the 3rd argument of the MATCH function has to be 0 (it looks only for an exact match) and the dept numbers can then be in any order. Also it's easier to write the formula if you use VLOOKUP with the last argument being FALSE (also an exact match). The two formulae are in columns D and E of Sheet2 of the attached. If you want a friendlier thing to show than an error code, then you can enclose the formula in the IFERROR function, see cells F42 and F43 of Sheet2. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
conditional formatting macro | ewso | Excel Programming | 2 | 10-05-2017 12:10 AM |
![]() |
bbutl027 | Excel | 15 | 12-05-2016 08:56 PM |
Conditional Formatting Macro | grexcelman | Excel Programming | 1 | 01-10-2015 04:45 PM |
![]() |
info_guy2 | Excel | 1 | 07-03-2014 10:07 AM |
![]() |
MonOverArchIng | Word | 2 | 01-11-2013 02:48 AM |