Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217177

Combine Multiple Columns of data into one column

$
0
0

I have one table with 16 columns of true/false information in it.  I am currently doing the following:

 

Creating columns:

No Prob Found = IF([noproblem] = TRUE(), "NO PROBLEM FOUND" , "No Issue")

 

Impact2 = IF(OR([crushed] = TRUE(), [impact] = TRUE()), "Impact or Crushed", "No Issue")

 

 

After the columns are combined looking to see what data in Excel to find over lap and then creating a extra column for those.  then using this switch statement to combine into one column:

 

 

 

Combined Issues = SWITCH(TRUE(),

AND([Comp Issue] <> "No Issue", [Normal Wear] <> "No Issue"), "Component Issue AND Normal Wear",

AND([Normal Wear] <> "No Issue", [Heat Stress] <> "No Issue"), "Normal Wear AND Heat Stress or Preventive Maintenance",

AND([Comp Issue] <> "No Issue", [Conn Problems] <> "No Issue"), "Component Issue AND Connection Problems",

AND([Normal Wear] <> "No Issue", [conn problems] <> "No Issue"), "Normal Wear AND Connection Problems",

[Comp Issue] <> "No Issue", "Component Missing or Component Failure",

[No Prob Found] <> "No Issue", "No Problem Found",

[Normal Wear] <> "No Issue", "Normal Wear",

[IMPACT2] <> "No Issue", "Impact or Crushed",

[Heat Stress] <> "No Issue", "Heat Stress or Exposed to Moisture",

[Over Volt] <> "No Issue", "Over Voltage or Over Current",

[Conn Problems] <> "No Issue", "Connection Problems",

[Modifications] <> "No Issue", "Modifications or Configuration Changes",

[Other Issues] <> "No Issue", "Other Problem Found",

[Comp Issue w AR] <> "No Issue", "Component Issue W/ Advance Replacement",

[COEandADVR] <> "No Issue", "Cervis Order Error and Advance Replacement",

[Advance Replace] <> "No Issue", "Advance Replacement",

[CervisOrder] <> "No Issue", "Cervis Order Error",

"No Issue Recorded")

 

TO see this result in visual:

COF.png

 

 Is there an easier way to get this result?

 

THanks

Nhtraven

 


Viewing all articles
Browse latest Browse all 217177

Trending Articles