答案 0 :(得分:1)
假设John(08/08/2017)在B2中,请将其放入B2:
=substitute(substitute(index(split(B2," "),0,2),"(",""),")","")
如果你不想要脚本。
答案 1 :(得分:1)
/**
* Extracts the date of the active cell and use it to set the value
* of the cell to columns to the right
* @example active cell value "John (08/08/2017)"
* //returns 08/08/2017
*/
function myFunction() {
var origin = SpreadsheetApp.getActiveRange();
var rowOffset = 0;
var columnOffset = 2;
var destination = origin.offset(rowOffset, columnOffset)
var value = /\((.*?)\)/.exec(origin.getValue())[1];
destination.setValue(value)
}