How can I add text from column A to page link in column B? So I would like to scrap part of page from hundreds of page, and I need to put text data on column A to ...com/[text from column A]. Maybe someone have a formula.
I've tried using Macro features, but didn't know how to loop my Macro using script editor. You can see the Macro script below.
/** @OnlyCurrentDoc */
function Untitledmacro() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getRange('B4').activate();
spreadsheet.getCurrentCell().setRichTextValue(SpreadsheetApp.newRichTextValue()
.setText('https://www.example.com/AHAP')
.setTextStyle(0, 34, SpreadsheetApp.newTextStyle()
.setForegroundColor('#1155cc')
.setUnderline(true)
.build())
.build());
spreadsheet.getRange('B5').activate();
spreadsheet.getCurrentCell().setRichTextValue(SpreadsheetApp.newRichTextValue()
.setText('https://www.example.com/AIMS')
.setTextStyle(0, 34, SpreadsheetApp.newTextStyle()
.setForegroundColor('#1155cc')
.setUnderline(true)
.build())
.build());
spreadsheet.getRange('B6').activate();
};
function Untitledmacro1() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getCurrentCell().setRichTextValue(SpreadsheetApp.newRichTextValue()
.setText('https://www.example.com/AISA')
.setTextStyle(0, 34, SpreadsheetApp.newTextStyle()
.setForegroundColor('#1155cc')
.setUnderline(true)
.build())
.build());
spreadsheet.getCurrentCell().offset(1, 0).activate();
spreadsheet.getCurrentCell().setRichTextValue(SpreadsheetApp.newRichTextValue()
.setText('https://www.example.com/AKKU')
.setTextStyle(0, 34, SpreadsheetApp.newTextStyle()
.setForegroundColor('#1155cc')
.setUnderline(true)
.build())
.build());
spreadsheet.getCurrentCell().offset(1, 0).activate();
};

Formula option:
=ARRAYFORMULA(CONCAT(B1:B,A1:A))With Google AppsScript: