Home |
Search |
Today's Posts |
#1
|
|||
|
|||
How do I use variables in Excel?
How Can I accomplish this, say this is field A1: The %product% only costs %price%. Order today, we only have %qty% left! -------------- Obvoiusly the words enclosed in % % are the variables that I want replaced. Is there way that I can make fields B, C, and D equal the corresponding variables? For example, B1= Dog collar C1= $9.99 D1= 20 So then A1 becomes: The dog collar only costs $9.99. Order today, we only have 20 left! I'm open to trying ANY method that can allow me to use variables in Excel. Thanks. -- XUT67 |
#2
|
|||
|
|||
You could name each cell:
Insert|Name|define I named B1: Product C1: Price D1: Qty Then I put this in A1: ="The " & Product & " only costs " & TEXT(Price,"$0.00") & " Order today, we only have " & TEXT(Qty,"#,##0") & "left!" (all one cell) XUT67 wrote: How Can I accomplish this, say this is field A1: The %product% only costs %price%. Order today, we only have %qty% left! -------------- Obvoiusly the words enclosed in % % are the variables that I want replaced. Is there way that I can make fields B, C, and D equal the corresponding variables? For example, B1= Dog collar C1= $9.99 D1= 20 So then A1 becomes: The dog collar only costs $9.99. Order today, we only have 20 left! I'm open to trying ANY method that can allow me to use variables in Excel. Thanks. -- XUT67 -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Urgent Help Required on Excel Macro Problem | Excel Discussion (Misc queries) | |||
Display form from an VB application in Excel | Excel Discussion (Misc queries) | |||
How do you define variables in excel? | Excel Discussion (Misc queries) | |||
Hints And Tips For New Posters In The Excel Newsgroups | Excel Worksheet Functions | |||
Excel 2002 and 2000 co-install. Control Which Starts ? | Excel Discussion (Misc queries) |