Forum Discussion
Extracting data from existing columns to form new columns
- Sep 08, 2022
cfitzg3 Hello, if you're looking to conditionally place the date found in column E into one of the two new columns you can use the following formula for First Subject In column F, for example:
=IF(ISNUMBER(SEARCH("First Subject In",D2)),E2,"")And the following for column G
=IF(ISNUMBER(SEARCH("Last Subject Out",D2)),E2,"")However, you can't delete the dependent columns that the formulas now reference unless you copy and past as values.
Depending on the source for this data, you could automate both the conditional placement of the date and deleting the original columns during the data import by using power query. I can elaborate, if this is something you'd like to try.
Dexter
cfitzg3 Hello, if you're looking to conditionally place the date found in column E into one of the two new columns you can use the following formula for First Subject In column F, for example:
=IF(ISNUMBER(SEARCH("First Subject In",D2)),E2,"")And the following for column G
=IF(ISNUMBER(SEARCH("Last Subject Out",D2)),E2,"")
However, you can't delete the dependent columns that the formulas now reference unless you copy and past as values.
Depending on the source for this data, you could automate both the conditional placement of the date and deleting the original columns during the data import by using power query. I can elaborate, if this is something you'd like to try.
Dexter
- cfitzg3Sep 08, 2022Copper Contributor
DexterG_III Thank you so much!!