+ Reply to Thread
Results 1 to 4 of 4

Copy and Pasting Nightmare - Help with Formatting

Hybrid View

  1. #1
    Registered User
    Join Date
    01-24-2014
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Copy and Pasting Nightmare - Help with Formatting

    Hi all. As part of a senior engineering design class I am taking, I need to gather data for 228 oil and gas wells and paste the data into Excel. The data is publicly available at http://cogcc.state.co.us/ (hope I'm allowed to post links?). My problem is that the data is formatted in a ridiculous way on the website, and there is no way to export it to excel or even as a csv. Attached below is a screenshot of the table the way it is formatted on the website.

    Capture.PNG

    The main problem I'm having is the way they overlay Oil data in black on top of Gas data in blue. They place two values in the same cell (I.E. Oil BOM and Gas Produced). When I attempt to copy and paste this data into Excel, I get all sorts of formatting problems. For example, under "Oil Produced", there is typically no value for Gas Flared, so the cell has the oil value on top and a blank value underneath. Therefore, when I copy and paste this column, the oil values have a blank row between each cell. At first I was just using the Go To function and selecting blanks and deleting them, but for some wells there is no oil production. Rather than inputting a zero, the website simply leaves the cell blank. Therefore, if I select all blanks and delete them it causes some actual oil production values to be deleted by accident and causes the data to become misaligned with the dates.

    That is only the beginning of the problem. I am also having problems pasting water production due to the water disposal code being in the same cell, in additional to the blank cells. I feel like there may be a way to simplify this process using the filter button, but I can't even get that to work because all it lets me filter is the literal label "oil" or "gas", not any of the actual data. If there was a way to move the oil data so that it was separate from the gas data (in a different column to the right) that would probably help a lot, but I haven't found a way to do that yet.


    I have attached a workbook that I've started. The first sheet is the format I need the data in. The second sheet is the format given if I copy and paste from the website. The third sheet is the format given if I copy and paste from the website using match destination format. Don't worry about latitude/longitude/well number stuff. All I need help with is oil produced, gas produced, and water produced.

    Can anyone help me? The way I've been doing it is a combination of IF statements and manually typing in by hand, and it's taking me over an hour to do a single well. I don't have 228 hours, so there has to be a better way to do this. Thanks so much.
    Attached Files Attached Files
    Last edited by Caleb9124; 01-24-2014 at 06:40 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Copy and Pasting Nightmare - Help with Formatting

    Hi and welcome to the forum

    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you Also, not all members can upload picture files (Company firewalls and stuff)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-24-2014
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Copy and Pasting Nightmare - Help with Formatting

    Quote Originally Posted by FDibbins View Post
    Hi and welcome to the forum

    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you Also, not all members can upload picture files (Company firewalls and stuff)
    Ah sorry about that. I'm typically the guy who gets on others for failing to read rules/FAQs when posting, but this has gotten me so frustrated I just immediately posted without a second thought. I uploaded the workbook as an example.

    Thanks.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Copy and Pasting Nightmare - Help with Formatting

    Thanks for the file, no problem

    Im trying to match the data in MPD sheet with sheet6, and things dont seem match :*(
    I assume that sheet6 data starts in row 90 in MPD (5/1/2006). If so, where do you get 47 and 3450 from? (F90:G90) Or am I not understaning you properly?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Formatting cell nightmare
    By Wellin in forum Excel General
    Replies: 1
    Last Post: 05-02-2012, 10:51 PM
  2. URGENT(!): '07 Custom Date Formatting Nightmare
    By rockoba in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-23-2010, 01:12 PM
  3. Copy & Pasting & Conditional Formatting
    By Barking_Mad in forum Excel General
    Replies: 2
    Last Post: 09-15-2009, 05:15 AM
  4. Copy and Pasting without the formatting
    By discomute in forum Excel General
    Replies: 4
    Last Post: 11-19-2008, 12:30 AM
  5. Copy & pasting coditional formatting
    By skatmandu2002 in forum Excel General
    Replies: 2
    Last Post: 03-20-2008, 10:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1