Get Sheet/Tab name in Google Sheets
=REGEXREPLACE(CELL("address",Sheet2!A1),"'?([^']+)'?!.*","$1")
=REGEXREPLACE(CELL("address",Sheet2!A1),"'?([^']+)'?!.*","$1")
=REGEXREPLACE(CELL("address",Sheet2!A1),"'?([^']+)'?!.*","$1")
Sheet2!A1 = cell reference must be from the same sheet you want to get the name from. It can be blank or containing a value or leave it Cell A1