Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
xianwinwin
 
Posts: n/a
Default how to multiple the rows by a given number


Hi guys,

I wonder if anyone can assist me on this one: say I have the word Apple
on cell A1 and the number 60 on cell A2, question is how can I have the
word apple multiply 60 times between A1 to A60?

Is there such possibility? (Without dragging the cursor to A60)

[I have 500 addresses and I need to multiply each by either 60 or 50)

Thanks for any help


--
xianwinwin
------------------------------------------------------------------------
xianwinwin's Profile: http://www.excelforum.com/member.php...o&userid=35264
View this thread: http://www.excelforum.com/showthread...hreadid=550353

  #2   Report Post  
Posted to microsoft.public.excel.misc
RJ
 
Posts: n/a
Default how to multiple the rows by a given number

Well the only way I know to do this is through a loop in VBA. If the word you
wanted repeated was in cell A1 and the number of times you wanted it repeated
was in cell B1, then the following code when ran would paste the word in cell
A1 down the number of times of cell B1.

Sub mutliplerows()
X = Cells(1, 2).Value
i = 2
Do Until i = X + 1
Cells(i, 1).Value = Cells(1, 1).Value
i = i + 1
Loop
End Sub

"xianwinwin" wrote:


Hi guys,

I wonder if anyone can assist me on this one: say I have the word Apple
on cell A1 and the number 60 on cell A2, question is how can I have the
word apple multiply 60 times between A1 to A60?

Is there such possibility? (Without dragging the cursor to A60)

[I have 500 addresses and I need to multiply each by either 60 or 50)

Thanks for any help


--
xianwinwin
------------------------------------------------------------------------
xianwinwin's Profile: http://www.excelforum.com/member.php...o&userid=35264
View this thread: http://www.excelforum.com/showthread...hreadid=550353


  #3   Report Post  
Posted to microsoft.public.excel.misc
xianwinwin
 
Posts: n/a
Default how to multiple the rows by a given number


thanks, I got familiar with macros :-)


--
xianwinwin
------------------------------------------------------------------------
xianwinwin's Profile: http://www.excelforum.com/member.php...o&userid=35264
View this thread: http://www.excelforum.com/showthread...hreadid=550353

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
resetting last cell jagdish.eashwar Excel Discussion (Misc queries) 11 March 31st 06 02:06 AM
Transforming Multiple Rows into 2 columns wilsonds Excel Worksheet Functions 3 February 26th 06 09:17 PM
Move multiple rows of data that are not sequential Mel Excel Discussion (Misc queries) 1 January 20th 06 06:33 AM
Is de-duping in advanced filter limited to a number of rows Sully Excel Worksheet Functions 2 November 30th 05 02:23 PM
Formula to compare multiple rows values based on another column? Murph Excel Worksheet Functions 4 February 21st 05 02:44 AM


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