Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Multiple Functions In One Column
This may be a shot in the dark and will be a long formula, but here it goes:
I have multiple columns that I want to condense to one. Therefore, I want column B to show current status of a work order based on the following: If column V is blank, column B shows €śOpen€ť. If column V is filled (date) and column J K, column B shows €śComplete/No€ť. If column J <= K, column B shows €śComplete/Yes€ť. Now even though column V is filled, once column AE is filled (date) and column J K, column B shows €śClosed/No€ť. If column J <= K, column B shows €śClosed/Yes€ť. If column AC and AE are filled (date), column B shows €śClosed/BER€ť. If column AD and AE are filled (date), column B shows €śCanceled€ť. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Multiple Functions In One Column
Try this out in cell B2 (assumes other data is on row 2):
=IF(V2="","Open", IF(AND(AD2<"",AE2<""),"Cancelled", IF(AND(AC2<"",AE2<""),"Closed/BER", IF(AE2<"", IF(J2K2,"Closed/No","Closed/Yes"), IF(J2K2,"Complete/No","Complete/Yes"))))) This is all one formula - I've just split it at each IF to make it easier to read. It doesn't test for dates specifically, just whether the cells are empty or not. Copy down if it meets the criteria. Pete |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Multiple Functions In One Column
Thanks. That was exactly what I needed.
One more thing I need though, I forgot to add that K may have N/A entered sometimes. This would result in a "Closed/NA" or "Completed/NA" in B2. Can you help one more time? "Pete" wrote: Try this out in cell B2 (assumes other data is on row 2): =IF(V2="","Open", IF(AND(AD2<"",AE2<""),"Cancelled", IF(AND(AC2<"",AE2<""),"Closed/BER", IF(AE2<"", IF(J2K2,"Closed/No","Closed/Yes"), IF(J2K2,"Complete/No","Complete/Yes"))))) This is all one formula - I've just split it at each IF to make it easier to read. It doesn't test for dates specifically, just whether the cells are empty or not. Copy down if it meets the criteria. Pete |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Multiple Functions In One Column
Try this out in B2 (all one formula, as before):
=IF(V2="","Open", IF(AND(AD2<"",AE2<""),"Cancelled", IF(AND(AC2<"",AE2<""),"Closed/BER", IF(AE2<"", IF(K2="N/A","Closed/NA", IF(J2K2,"Closed/No","Closed/Yes")), IF(K2="N/A","Completed/NA", IF(J2K2,"Completed/No","Completed/Yes")))))) It might be better to insert a new column C (assuming you are using C at the moment), then you can split this formula so that the words "Open", "Cancelled", "Closed" and "Completed" appear in column B as appropriate and the words "BER", "NA", "No" and "Yes" appear in column C (right aligned). Pete |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Multiple Functions In One Column
Thanks again and for the recommendation.
"Pete" wrote: Try this out in B2 (all one formula, as before): =IF(V2="","Open", IF(AND(AD2<"",AE2<""),"Cancelled", IF(AND(AC2<"",AE2<""),"Closed/BER", IF(AE2<"", IF(K2="N/A","Closed/NA", IF(J2K2,"Closed/No","Closed/Yes")), IF(K2="N/A","Completed/NA", IF(J2K2,"Completed/No","Completed/Yes")))))) It might be better to insert a new column C (assuming you are using C at the moment), then you can split this formula so that the words "Open", "Cancelled", "Closed" and "Completed" appear in column B as appropriate and the words "BER", "NA", "No" and "Yes" appear in column C (right aligned). Pete |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Creating a single vertical array from multiple column arrays | Excel Worksheet Functions | |||
IF/AND/OR/DATEIF Issue...sorry...long post... | Excel Worksheet Functions | |||
Running total w/2 columns - Excel | Excel Worksheet Functions | |||
Formula to compare multiple rows values based on another column? | Excel Worksheet Functions | |||
Can I set a filter for a merged column across multiple rows and o. | Excel Worksheet Functions |