Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Tim Tim is offline
external usenet poster
 
Posts: 145
Default Assigning cell values to variables

I need to take information from various cells and ranges in an Exel
spreadsheet and assign them to variables so that I can combine them into one
statement. So, how do I get the information from the cell various cells or
ranges into the variables? Or is it possible to take information, (string
data and numeric data) from several cells and combine this information into
one statement and have this statement appear in another cell / range of cells?
Can anyone help? Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Assigning cell values to variables

Is this what you had in mind?

A1 = Try
A2 = this
A3 = out

=A1&" "&A2&" "&A3

Returns: Try this out

--
Biff
Microsoft Excel MVP


"Tim" <Tim @discussions.microsoft.com wrote in message
...
I need to take information from various cells and ranges in an Exel
spreadsheet and assign them to variables so that I can combine them into
one
statement. So, how do I get the information from the cell various cells
or
ranges into the variables? Or is it possible to take information,
(string
data and numeric data) from several cells and combine this information
into
one statement and have this statement appear in another cell / range of
cells?
Can anyone help? Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Assigning cell values to variables

Do you mean

A1 = 'Assigning'
B1 = cell
C1 = values

In D1 you need 'Assigning cell values'..If so use CONCATENATE() function or
simply

=A1&B1&C1

If this post helps click Yes
---------------
Jacob Skaria


"Tim" wrote:

I need to take information from various cells and ranges in an Exel
spreadsheet and assign them to variables so that I can combine them into one
statement. So, how do I get the information from the cell various cells or
ranges into the variables? Or is it possible to take information, (string
data and numeric data) from several cells and combine this information into
one statement and have this statement appear in another cell / range of cells?
Can anyone help? Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Assigning cell values to variables

Sub tim()
Dim s1 As String, s2 As String
s1 = Range("A1").Value
s2 = Range("Z100").Value
End Sub

--
Gary''s Student - gsnu200856


"Tim" wrote:

I need to take information from various cells and ranges in an Exel
spreadsheet and assign them to variables so that I can combine them into one
statement. So, how do I get the information from the cell various cells or
ranges into the variables? Or is it possible to take information, (string
data and numeric data) from several cells and combine this information into
one statement and have this statement appear in another cell / range of cells?
Can anyone help? Thanks!

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
Assigning Values to Symbols George Excel Discussion (Misc queries) 6 September 6th 07 09:03 PM
assigning values to one cell which will change the formula in anot Darren Excel Worksheet Functions 1 July 26th 07 10:06 AM
Assigning point values? Riptide Excel Worksheet Functions 2 July 23rd 07 12:54 PM
Assigning cell values to return a number whatzzup Excel Discussion (Misc queries) 1 March 20th 06 03:07 PM
Assigning cell values to return a number wdjsxj Excel Discussion (Misc queries) 0 March 20th 06 02:55 PM


All times are GMT +1. The time now is 12:52 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"