LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 158
Default how to re-layout data

Do you ever get an answer to this? You can create a second sheet (sheet2)
which looks up all your data from the first sheet (sheet1), as follows:

First create a second sheet with the following headers in columns A-D:

Date 9:00 12:00 15:00

In column A you'll need to fill in all the dates from your original sheet
(each date needs to appear only once). Should be easy if they are
continuous, or you can use the Advanced Filter to get a list of all unique
values, then paste that list in under the Date header.

Now in cell B2 paste the following formula:

=SUMPRODUCT((Sheet1!$A$1:$A$1000=$A2)*(Sheet1!$B$1 :$B$1000=B$1)*(Sheet1!$C$1:$C$1000))

You'll need to change the sheet references if yours are renamed, and if your
sheet1 has more than 1000 rows then bump up those limits in the formula. But
don't alter the $ signs, they are placed to freeze some of the ranges and
allow others to flex when copied. After customizing your formula in B2, you
can copy it across to C2 and D2, verify that it is working, then copy that
set of three formulas down to all your date rows.

Hope that helps (albeit late).



"netfan" wrote:


Dear andy,
thanks for ur reply. as you imagined, it's a huge file. so i have to
find some way to do with it. any more suggestion pls?


--
netfan
------------------------------------------------------------------------
netfan's Profile: http://www.excelforum.com/member.php...o&userid=31349
View this thread: http://www.excelforum.com/showthread...hreadid=556167


 
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
Pull data from another sheet based on certain criteria steve_sr2 Excel Discussion (Misc queries) 1 February 23rd 06 10:08 AM
Inserting a new line in spreadsheet Rental Man Excel Discussion (Misc queries) 2 January 9th 06 04:55 PM
Importing Data Jillian Excel Worksheet Functions 9 December 23rd 05 12:45 PM
Saving data in a worksheet within a workbook Homeuser Excel Discussion (Misc queries) 2 August 21st 05 10:49 PM
Line Graph Data Recognition Nat Charts and Charting in Excel 2 April 30th 05 02:07 PM


All times are GMT +1. The time now is 05:56 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"