Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Range selection
I need help to write a formula for the following ;
Say I have some value in A1, and I want it to copy to number of cells, given in A2, in the same row starting from A3. A1="xxx", A2=2, A3,A4="xxx" Thanks for immediate help. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Range selection
Sub naveen()
Set r1 = Range("A1") Set r2 = Range("A3:A" & 2 + Range("A2").Value) r1.Copy r2 End Sub -- Gary''s Student - gsnu200749 "Naveen" wrote: I need help to write a formula for the following ; Say I have some value in A1, and I want it to copy to number of cells, given in A2, in the same row starting from A3. A1="xxx", A2=2, A3,A4="xxx" Thanks for immediate help. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Range selection
Thanks for immediate response. Can we do it without macros meaning with
formulas in the range. "Gary''s Student" wrote: Sub naveen() Set r1 = Range("A1") Set r2 = Range("A3:A" & 2 + Range("A2").Value) r1.Copy r2 End Sub -- Gary''s Student - gsnu200749 "Naveen" wrote: I need help to write a formula for the following ; Say I have some value in A1, and I want it to copy to number of cells, given in A2, in the same row starting from A3. A1="xxx", A2=2, A3,A4="xxx" Thanks for immediate help. |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Range selection
In A3 enter:
=IF(ROWS($A$1:A1)-1<$A$2,$A$1,"") and copy down This is not a "true" copy, but it does the job -- Gary''s Student - gsnu200749 "Naveen" wrote: Thanks for immediate response. Can we do it without macros meaning with formulas in the range. "Gary''s Student" wrote: Sub naveen() Set r1 = Range("A1") Set r2 = Range("A3:A" & 2 + Range("A2").Value) r1.Copy r2 End Sub -- Gary''s Student - gsnu200749 "Naveen" wrote: I need help to write a formula for the following ; Say I have some value in A1, and I want it to copy to number of cells, given in A2, in the same row starting from A3. A1="xxx", A2=2, A3,A4="xxx" Thanks for immediate help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Narrow Range based on Selection in Another Range | Excel Discussion (Misc queries) | |||
Identifying a selection of a selection of a range | Excel Worksheet Functions | |||
Range selection rule? | Excel Discussion (Misc queries) | |||
Range Selection | Excel Discussion (Misc queries) | |||
Selection Range | Excel Discussion (Misc queries) |