I have values on a source sheet and a working sheet.
On the working sheet, I pull values from matching cells (Working!B6 gets the value from Source!B6 etc.) I need a custom function which looks at a cell such as Working!B1 to decide what to do in Working!B6:
If it is V or D, then add an apostrophe to be beginning and an apostrophe and comma at the end of Working!B6
If it is N, no apostrophe, but still a comma at the end.
In this case, I would use B$1 in the function, so I can copy it down and across with it adjusting for the different columns and rows.
On the working sheet, I pull values from matching cells (Working!B6 gets the value from Source!B6 etc.) I need a custom function which looks at a cell such as Working!B1 to decide what to do in Working!B6:
If it is V or D, then add an apostrophe to be beginning and an apostrophe and comma at the end of Working!B6
If it is N, no apostrophe, but still a comma at the end.
In this case, I would use B$1 in the function, so I can copy it down and across with it adjusting for the different columns and rows.
Last edited: