![]() |
What's wrong with this IF?
=IF(H2="PM01","Emergency Works",IF(H2="PM02","Routine Works",IF(H2=PM03,"Pre Planned Maintenance")))
Column H can only contain either of PM01, PM02 or PM03. I want Column I to show the above values for each option. It works for both PM01 & PM02 but I'm just getting #NAME? for PM03. Thanks in advance. |
Quote:
Rookie mistake! |
Quote:
=IF(H2="PM01","Emergency Works",IF(H2="PM02","Routine Works","Pre Planned Maintenance")) :) |
Quote:
Now I do. Cheers |
What's wrong with this IF?
On 26/07/2012 9:01 PM, Jay07 wrote:
=IF(H2="PM01","Emergency Works",IF(H2="PM02","Routine Works",IF(H2=PM03,"Pre Planned Maintenance"))) Column H can only contain either of PM01, PM02 or PM03. I want Column I to show the above values for each option. It works for both PM01 & PM02 but I'm just getting #NAME? for PM03. Thanks in advance. Hi Try this =IF(H2="","",IF(H2="PM01","Emergency Works",IF(H2="PM02","Routine Works","Pre Planned Maintenance"))) This takes into account a 4th condition being that H2 is blank. HTH Mick. |
What's wrong with this IF?
On 27/07/2012 12:51 AM, Vacuum Sealed wrote:
=IF(H2="","",IF(H2="PM01","Emergency Works",IF(H2="PM02","Routine Works","Pre Planned Maintenance"))) Erata. Try this instead as the previous left the 3rd condition open and allowed for any value to be entered for it... =IF(H2="PM01","Emergency Works",IF(H2="PM02","Routine Works",IF(H2="PM03","Pre Planned Maintenance",""))) Cheers Mick. |
All times are GMT +1. The time now is 09:54 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com