Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default transposing and parsing cells

Here is my question: I have two cells, side by side on the same row.
One has an amount in it, the other has a list of names, comma
delimited. I need to transpose the names so that there is one row per
name, with the amount next to it (same amount for each row). How can I
start this going? Thanks much.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default transposing and parsing cells

Try this (untested)

sub tspose()

dim vAmt, arrNames, rDest as range,x as integer

vAmt=activesheet.range("A1").value
arrNames=split(activesheet.range("B1").value,",")

set rDest=activesheet.range("A3")

for x=lbound(arrNames) to ubound(arrNames)
rDest.value=vAmt
rDest.offset(0,1).value=arrNames(x)
set rDest=rDest.offset(1,0)
next x

end sub


Tim.

"James" wrote in message
oups.com...
Here is my question: I have two cells, side by side on the same row.
One has an amount in it, the other has a list of names, comma
delimited. I need to transpose the names so that there is one row
per
name, with the amount next to it (same amount for each row). How can
I
start this going? Thanks much.



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
Transposing Cells dj_money Excel Worksheet Functions 3 August 12th 06 08:30 AM
Transposing cells GARY Excel Discussion (Misc queries) 0 March 17th 06 01:06 AM
Transposing cells GARY Excel Discussion (Misc queries) 0 March 17th 06 12:14 AM
Transposing cells GARY Excel Discussion (Misc queries) 0 March 17th 06 12:03 AM
Transposing cells GARY Excel Discussion (Misc queries) 0 March 17th 06 12:01 AM


All times are GMT +1. The time now is 06:14 AM.

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

About Us

"It's about Microsoft Excel"