Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default How do I pull the col. index value as well as row index value

A starter:


Sub Transform()

Dim ws1 as worksheet, ws2 as worksheet
Dim r as long, lastrow as long
Dim ID as string

Set ws1 = Worksheets("Sheet1")
Set ws2 = Worksheets("Sheet2")

r = 2
lastrow = ws1.Cells(Rows.Count, "B").End(xlUp).Row
Do
ID = ws1.Cells(r, "A")
Do
ws2.Cells(r, "A") = ID
ws2.Cells(r, "B") = ws1.Cells(r, "B") & " " & ws1.Cells(r, "C")
r = r + 1
Loop Until ws1.Cells(r, "A") < "" Or r lastrow

Loop Until r lastrow

HTH

End Sub

"Vikram Dhemare" wrote:

Dear Friends,

I have got a table, like
A B C
RC1 2843768 FR LH STD
RC2 FR RH STD
RC3 RR LH STD
RC4 RR RH STD
RC5 2843769 FR LH DLX.
RC6 FR RH DLX.
RC7 RR LH DLX.
RC8 RR RH DLX.
RC9 2843770 FR LH LUX
RC10 FR RH LUX
RC11 RR LH LUX
RC12 RR RH LUX
RC13 2843771 FR LH SDLX
RC14 FR RH SDLX
RC15 RR LH SDLX
RC16 RR RH SDLX
Now in another excel file if I put the 'Col 'A' cell value (number of col
A) as input
then the result in subsequent cell would be the merge of col. B & col. C &
in the next row the answer would be 2nd row index value & so on.
like this
B
RC1 FR LH STD
RC2 FR RH STD
RC3 RR LH STD
RC4 RR RH STD
This all vlues in Pivot table, so can I access that ref.
--
Thanks,
Vikram P. Dhemare

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
Referencing multiple criteria to pull data doug1 Excel Discussion (Misc queries) 3 March 14th 06 09:30 PM
How to automatically number an index column Phil Excel Worksheet Functions 13 October 25th 05 01:36 PM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Min formula not returning value from Index ExcelMonkey Excel Worksheet Functions 3 January 29th 05 01:47 AM
index to a range of cells Frank Kabel Excel Worksheet Functions 0 October 27th 04 05:39 PM


All times are GMT +1. The time now is 11:33 PM.

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"