Как добавить префикс или суффикс для диапазона ячеек в Excel?

2570
WiTon Nope

У меня есть ячейка A в Excel с полным именем изображения без расширения. Я хочу добавить «.jpg» в качестве суффикса к этим диапазонам ячеек, однако мне нужно пропустить нетекстовые ячейки, не добавляя ничего. Любая помощь для достижения этого?

A B ----- >>>> ---- image1 image1.jpg image2 image2.jpg  image4 image4.jpg 
0

1 ответ на вопрос

0
WiTon Nope

After some trial and errors I found the solution it might be not efficient enough but it's helpful so far

=IF(ISTEXT(A1);A1&".jpg") 

You can replace ".jpg" with anything you'd like to add to the end.

Same for Prefix

=IF(ISTEXT(A1);"prefix"&A1) 

Please note the blank cells will be filled with FALSE to remove that use notepadd++ and replace all FALSE with \n to keep lines static

= ЕСЛИ (ISTEXT (А1), "префикс" & A1 "") Jasen 7 лет назад 0

Похожие вопросы