Solved

I need to read from sheet1 and produce sheet2 as attached

Posted on 2014-12-18
4
62 Views
Last Modified: 2015-01-15
I need to read from sheet1 and produce sheet2 as attached.
This is the same as ticket ID: 28570578 but with modification on sheet1

I need to read from the sheet1 and produce sheet2
Asked by: dallagmm
Solved by: Haris Djulic

Please note that the sheet1 could have more than one well
5.2.xlsm
0
Comment
Question by:Mohammed Dallag
4 Comments
 
LVL 50

Accepted Solution

by:
Rgonzo1971 earned 250 total points
ID: 40506695
Hi,

pls try

Sub Macro()
IdxRow = 2
For Each c In ActiveSheet.Range(Range("B2"), Cells(3, Cells.Columns.Count).End(xlToLeft))
    c.Copy Destination:=Sheets("Sheet2").Range("C" & IdxRow)
    Cells(c.Row, "A").Copy Destination:=Sheets("Sheet2").Range("A" & IdxRow)
    Cells(1, c.Column).Copy Destination:=Sheets("Sheet2").Range("B" & IdxRow)
    IdxRow = IdxRow + 1
Next
End Sub

Open in new window

Regards
0
 
LVL 24

Assisted Solution

by:Phillip Burton
Phillip Burton earned 250 total points
ID: 40506700
Please find attached. Please see the formulas used in Sheet2.
5.2a.xlsm
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 40550842
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question