Formatting / adding data to field

rishir

New Member
Joined
Oct 23, 2020
Messages
3
Office Version
  1. 2013
Platform
  1. Windows
Hi if I have

1108000
1104006
1702003

and I want it to be

c:\data\1108000.jpg
c:\data\1104006.jpg
c:\data\1702003.jpg

How can I do this?

Thank you.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
The quick and easy way is to open File Explorer, click on Home.New Folder, then type in your folder name as "C:\data" without the quote marks, then Save you jpg file to that directory.
 
Upvote 0
The quick and easy way is to open File Explorer, click on Home.New Folder, then type in your folder name as "C:\data" without the quote marks, then Save you jpg file to that directory.
Thanks for replying. I’m not trying to create a folder.

I need the field to represent what I typed in the question. It’s being used for an import to a database which will reference that field to find the file location.

i’m basically trying to use the field “A” and create a new field “B” adding text before and after field “A”
 
Upvote 0
Excel Formula:
="c:\data\"&A1&".jpg"
 
Upvote 0
Well it helps if you fully explain what you are trying to do up front so w3e don't have to guess at it., But being that you are a new member, I will overlook that.

You can concatenate cell values via formula to create a cell with the combined valu3es which you can then use as you reference.
TestBase.xlsm
ABC
11108000
2C:data\
3C:data\1108000.jpg
4
5
6
Sheet1
Cell Formulas
RangeFormula
A3A3=A2&A1&".jpg"
concatenate different cell values to a single cell then use that concatenated cell value as your Import/Export reference.
 
Upvote 0
Well it helps if you fully explain what you are trying to do up front so w3e don't have to guess at it., But being that you are a new member, I will overlook that.

You can concatenate cell values via formula to create a cell with the combined valu3es which you can then use as you reference.
TestBase.xlsm
ABC
11108000
2C:data\
3C:data\1108000.jpg
4
5
6
Sheet1
Cell Formulas
RangeFormula
A3A3=A2&A1&".jpg"
concatenate different cell values to a single cell then use that concatenated cell value as your Import/Export reference.
Sorry for the confusion, this is perfect! Thank you for your assistance
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,812
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top