Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 333
Default Insert Concatenate formula in Cell

Hi,

I am having trouble inserting a formula to concatenate two cells into
another cell with a comma separating them.

Here is one of my attempts:

MainPage.Select

With MainPage
Range("BA").Select
ActiveCell.formulaR1C1 = "= R" & NextRow & "C3" & "&" & "," _
& "&" & "R" & NextRow & "C4"
End with

What am I missing?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Insert Concatenate formula in Cell

maybe this:

ActiveCell.FormulaR1C1 = "=R[" & nextrow & "]C3 &" & """,""" & "& R[" & nextrow
& "]C4"


--


Gary


"Karen53" wrote in message
...
Hi,

I am having trouble inserting a formula to concatenate two cells into
another cell with a comma separating them.

Here is one of my attempts:

MainPage.Select

With MainPage
Range("BA").Select
ActiveCell.formulaR1C1 = "= R" & NextRow & "C3" & "&" & "," _
& "&" & "R" & NextRow & "C4"
End with

What am I missing?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 333
Default Insert Concatenate formula in Cell

Thanks for your reply. I tried it but I get a syntax error.

"Gary Keramidas" wrote:

maybe this:

ActiveCell.FormulaR1C1 = "=R[" & nextrow & "]C3 &" & """,""" & "& R[" & nextrow
& "]C4"


--


Gary


"Karen53" wrote in message
...
Hi,

I am having trouble inserting a formula to concatenate two cells into
another cell with a comma separating them.

Here is one of my attempts:

MainPage.Select

With MainPage
Range("BA").Select
ActiveCell.formulaR1C1 = "= R" & NextRow & "C3" & "&" & "," _
& "&" & "R" & NextRow & "C4"
End with

What am I missing?

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 333
Default Insert Concatenate formula in Cell

What do the brackets do?

Thanks

"Gary Keramidas" wrote:

maybe this:

ActiveCell.FormulaR1C1 = "=R[" & nextrow & "]C3 &" & """,""" & "& R[" & nextrow
& "]C4"


--


Gary


"Karen53" wrote in message
...
Hi,

I am having trouble inserting a formula to concatenate two cells into
another cell with a comma separating them.

Here is one of my attempts:

MainPage.Select

With MainPage
Range("BA").Select
ActiveCell.formulaR1C1 = "= R" & NextRow & "C3" & "&" & "," _
& "&" & "R" & NextRow & "C4"
End with

What am I missing?

Thanks




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Insert Concatenate formula in Cell

someone that uses r1c1 will have to respond, i just took a stab at it. i use a1
references.

--


Gary


"Karen53" wrote in message
...
Thanks for your reply. I tried it but I get a syntax error.

"Gary Keramidas" wrote:

maybe this:

ActiveCell.FormulaR1C1 = "=R[" & nextrow & "]C3 &" & """,""" & "& R[" &
nextrow
& "]C4"


--


Gary


"Karen53" wrote in message
...
Hi,

I am having trouble inserting a formula to concatenate two cells into
another cell with a comma separating them.

Here is one of my attempts:

MainPage.Select

With MainPage
Range("BA").Select
ActiveCell.formulaR1C1 = "= R" & NextRow & "C3" & "&" & "," _
& "&" & "R" & NextRow & "C4"
End with

What am I missing?

Thanks








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 333
Default Insert Concatenate formula in Cell

Gary,

Thanks for making a stab at it. It was worth a shot.

"Gary Keramidas" wrote:

someone that uses r1c1 will have to respond, i just took a stab at it. i use a1
references.

--


Gary


"Karen53" wrote in message
...
Thanks for your reply. I tried it but I get a syntax error.

"Gary Keramidas" wrote:

maybe this:

ActiveCell.FormulaR1C1 = "=R[" & nextrow & "]C3 &" & """,""" & "& R[" &
nextrow
& "]C4"


--


Gary


"Karen53" wrote in message
...
Hi,

I am having trouble inserting a formula to concatenate two cells into
another cell with a comma separating them.

Here is one of my attempts:

MainPage.Select

With MainPage
Range("BA").Select
ActiveCell.formulaR1C1 = "= R" & NextRow & "C3" & "&" & "," _
& "&" & "R" & NextRow & "C4"
End with

What am I missing?

Thanks







  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 389
Default Insert Concatenate formula in Cell

ActiveCell.FormulaR1C1 = "=R" & nextrow & "C3&"",""&R" & nextrow & "C4"

Brackets make the Row/Column relative to the formula (not used in the above
example).

=R1C1 will always refer to A1
=R[5]C[2] , if A1 is going to contain the formula, refers to C6.



"Karen53" wrote in message
...
Gary,

Thanks for making a stab at it. It was worth a shot.

"Gary Keramidas" wrote:

someone that uses r1c1 will have to respond, i just took a stab at it. i
use a1
references.

--


Gary


"Karen53" wrote in message
...
Thanks for your reply. I tried it but I get a syntax error.

"Gary Keramidas" wrote:

maybe this:

ActiveCell.FormulaR1C1 = "=R[" & nextrow & "]C3 &" & """,""" & "& R["
&
nextrow
& "]C4"


--


Gary


"Karen53" wrote in message
...
Hi,

I am having trouble inserting a formula to concatenate two cells
into
another cell with a comma separating them.

Here is one of my attempts:

MainPage.Select

With MainPage
Range("BA").Select
ActiveCell.formulaR1C1 = "= R" & NextRow & "C3" & "&" & "," _
& "&" & "R" & NextRow & "C4"
End with

What am I missing?

Thanks









  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Insert Concatenate formula in Cell

Karen,

I think this does it:

ActiveCell.FormulaR1C1 = "=R" & NextRow & "C3&"",""&R" & NextRow & "C4"

hth,

Doug

"Karen53" wrote in message
...
Hi,

I am having trouble inserting a formula to concatenate two cells into
another cell with a comma separating them.

Here is one of my attempts:

MainPage.Select

With MainPage
Range("BA").Select
ActiveCell.formulaR1C1 = "= R" & NextRow & "C3" & "&" & "," _
& "&" & "R" & NextRow & "C4"
End with

What am I missing?

Thanks


  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 333
Default Insert Concatenate formula in Cell

Thank you both!

"Tim Zych" wrote:

ActiveCell.FormulaR1C1 = "=R" & nextrow & "C3&"",""&R" & nextrow & "C4"

Brackets make the Row/Column relative to the formula (not used in the above
example).

=R1C1 will always refer to A1
=R[5]C[2] , if A1 is going to contain the formula, refers to C6.



"Karen53" wrote in message
...
Gary,

Thanks for making a stab at it. It was worth a shot.

"Gary Keramidas" wrote:

someone that uses r1c1 will have to respond, i just took a stab at it. i
use a1
references.

--


Gary


"Karen53" wrote in message
...
Thanks for your reply. I tried it but I get a syntax error.

"Gary Keramidas" wrote:

maybe this:

ActiveCell.FormulaR1C1 = "=R[" & nextrow & "]C3 &" & """,""" & "& R["
&
nextrow
& "]C4"


--


Gary


"Karen53" wrote in message
...
Hi,

I am having trouble inserting a formula to concatenate two cells
into
another cell with a comma separating them.

Here is one of my attempts:

MainPage.Select

With MainPage
Range("BA").Select
ActiveCell.formulaR1C1 = "= R" & NextRow & "C3" & "&" & "," _
& "&" & "R" & NextRow & "C4"
End with

What am I missing?

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
Concatenate and use cell value in formula gibbylinks Excel Discussion (Misc queries) 1 January 5th 09 09:49 PM
Concatenate text cell and formula cell result GoinCrazy Excel Worksheet Functions 4 November 26th 08 04:27 PM
How do I insert a hard return in a =CONCATENATE formula in excel Dina Excel Worksheet Functions 1 April 11th 08 08:14 PM
how do i concatenate a string and cell formula and use a comma? bob alou Excel Worksheet Functions 2 February 24th 06 03:30 PM
Insert Concatenate Formula DARREN FONG via OfficeKB.com Excel Programming 3 December 30th 05 11:14 PM


All times are GMT +1. The time now is 03:37 AM.

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"