Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
XUT67
 
Posts: n/a
Default 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   Report Post  
Marcster
 
Posts: n/a
Default


Hi XUT67,

One answer I believe your looking for is:

=CONCATENATE("The ",B1," only costs ",C1,". Order today, we only have
",D1," left!.")


Hope that helps.


--
Marcster
  #3   Report Post  
jahoobob
 
Posts: n/a
Default


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.

To get the dollars to show up with the $ use this:
="The " & B1 &" cost only " & DOLLAR(C1,2) & ". Order today, we have
only " & D1 & " left!."
Grammatically correct also. I minored in English!
Bob


--
jahoobob
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent Help Required on Excel Macro Problem Sachin Shah Excel Discussion (Misc queries) 1 August 17th 05 06:26 AM
Display form from an VB application in Excel kuhni Excel Discussion (Misc queries) 0 August 10th 05 06:04 PM
How do you define variables in excel? BigRon Excel Discussion (Misc queries) 6 April 16th 05 08:47 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 08:07 PM


All times are GMT +1. The time now is 11:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"