+ Reply to Thread
Results 1 to 3 of 3

Changing Spreadsheet layout

  1. #1
    Registered User
    Join Date
    03-05-2013
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    1

    Changing Spreadsheet layout

    Help 1.xlsx

    Working on this project at work. Sheet1 has all the information I need, it is just in a vertical layout and it does have some extra stuff as well. Column A is Year, month, and day. Column B is universal time, while Column C is the local time. And Column D is the temperature taken at those times. There is some extra information, like I only need temps every hour, and only the temps from 451 to 2351.

    Sheet 2 has what I am trying to get to, with one year completed, 4 more years to go. I basically want all the vertical information that is in Sheet1 to be separated by day and placed horizontally. It also has all the times that I need, plus a couple extra just because the original filter couldn't remove all of them. Is there a way to speed the process up other than doing it by hand? This information is from just one location and this project will come up again when we look at different locations.

    Does anyone have any suggestion on how to speed the process up?

    Thank you

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,763

    Re: Changing Spreadsheet layout

    You can put this formula in B3 of Sheet2:

    =SUMPRODUCT((Sheet1!$C$2:$C$32001=$A3)*(Sheet1!$A$2:$A$32001=--($A$2&TEXT(B$1,"mmdd"))),Sheet1!$D$2:$D$32001)

    and then copy it across and down to row 24.

    You can also copy the formula into A27 and then make the change shown in red below:

    =SUMPRODUCT((Sheet1!$C$2:$C$32001=$A27)*(Sheet1!$A$2:$A$32001=--($A$26&TEXT(B$1,"mmdd"))),Sheet1!$D$2:$D$32001)

    and then you will be able to copy it across and down as above but for 2011. Make similar changes for other years.

    Hope this helps.

    Pete

  3. #3
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Changing Spreadsheet layout

    jhicks, welcome to the forum.

    I can suggest another way for you to populate these cells; however there would be some work involved for you, and whether or not the formulas might slow down your sheet will depend on the amount of data involved....

    If you have a look at the attached, on the SOLUTION tab, I have used an INDEX/MATCH formula to pull the data from your Sheet1 tab. You'll need to do something with your date formats to roll this out, though, as when Excel looks for a match, it won't see "20100101" as being equal to "01/01/2010", etc (because, of course, these 2 values are not equal to each other). I've done the first 2 days of 2010 for you, and you'll hopefully be able to follow what has been done.

    If you've any questions about this, please feel free to ask - I'd normally explain how I've done what I've done, but these 14-hour days are killing me and you may already be familiar enough with Excel to follow what I've done without much trouble.

    Again, any questions, just ask.

    Hope this helps.
    Attached Files Attached Files
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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