0

I have cell A in excel full of images name without the extension I want to add ".jpg" as a suffix to these ranges of cells however I need to skip non text cells by not adding anything. Any help to achieve that?

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

image4       image4.jpg

2 Answers 2

1

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

1
  • =IF(ISTEXT(A1),"prefix"&A1,"")
    – Jasen
    Jun 4, 2016 at 23:44
1

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

Same for Prefix

=IF(ISBLANK(J3), "", J3&" KG" )

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .