Re: $$Excel-Macros$$ How to extract data from an array
Hi, Have a look in the attached file. HTH :) --- Ms.Exl.Learner --- On Tue, Feb 1, 2011 at 12:22 AM, jmccaski wrote: > I have an arry of over 21,000 rows with data in this format: > VarName TimeString VarValue > Pos 27.01.2011 12:49:35 32 > Pres27.01.2011 12:49:35 -2 > Setpt 27.01.2011 12:49:35 100 > Gain27.01.2011 12:49:35 1 > Int 27.01.2011 12:49:35 10 > Pos 27.01.2011 12:49:36 32 > Pres27.01.2011 12:49:36 -2 > Setpt 27.01.2011 12:49:36 100 > Pos 27.01.2011 12:49:37 32 > Pres27.01.2011 12:49:37 9 > Setpt 27.01.2011 12:49:37 100 > Pos 27.01.2011 12:49:38 32 > Pres27.01.2011 12:49:38 9 > Setpt 27.01.2011 12:49:38 100 > Pos 27.01.2011 12:49:39 32 > Pres27.01.2011 12:49:39 24 > Setpt 27.01.2011 12:49:39 100 > Pos 27.01.2011 12:49:40 32 > Pres27.01.2011 12:49:40 24 > Setpt 27.01.2011 12:49:40 100 > Gain27.01.2011 12:49:40 1 > Int 27.01.2011 12:49:40 10 > > I'm trying to get it into a format something like this in order to > chart it: > TimeString Pos Press Setpt GainInt > 27.01.2011 12:49:35 32 -2 100 1 10 > 27.01.2011 12:49:36 32 -2 100 > 27.01.2011 12:49:37 32 9 100 > 27.01.2011 12:49:38 32 9 100 > 27.01.2011 12:49:39 32 24 100 > 27.01.2011 12:49:40 32 24 100 1 10 > > Any help would be greatly appreciated. > > -- > > -- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links : > http://twitter.com/exceldailytip > 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 > 3. Excel tutorials at http://www.excel-macros.blogspot.com > 4. Learn VBA Macros at http://www.quickvba.blogspot.com > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com > > To post to this group, send email to excel-macros@googlegroups.com > > <><><><><><><><><><><><><><><><><><><><><><> > Like our page on facebook , Just follow below link > http://www.facebook.com/discussexcel > -- -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel Pivot Example.xls Description: MS-Excel spreadsheet
Re: $$Excel-Macros$$ How to extract data from an array
I added a column (A) and concatenated the VarName and TimeString =B1&C1 and copied it down the list. Next, on sheet2, I copied the time string and removed duplicates (easy to do in Excel2007, a few more steps in other versions) I then added the column headings: Pos Pres Setpt Gain Int Then, using vlookup I combined the column heading with the row timestring to form the key. Now, some of your records didn't have Gain or Int values... so to get rid of the #n/a result, I tested for it and inserted a blank.. the resulting formula in B2 was: =IF(ISNA(VLOOKUP(B$1&$A2,Sheet1!$A$1:$D$65000,4,FALSE)),"",VLOOKUP(B$1&$A2,Sheet1!$A$1:$D$65000,4,FALSE)) (be sure to make use of the anchors ($) so that you can copy the formula to the other cells) hope this helps, Paul From: jmccaski To: MS EXCEL AND VBA MACROS Sent: Mon, January 31, 2011 1:52:55 PM Subject: $$Excel-Macros$$ How to extract data from an array I have an arry of over 21,000 rows with data in this format: VarName TimeString VarValue Pos 27.01.2011 12:49:35 32 Pres 27.01.2011 12:49:35 -2 Setpt 27.01.2011 12:49:35 100 Gain 27.01.2011 12:49:35 1 Int 27.01.2011 12:49:35 10 Pos 27.01.2011 12:49:36 32 Pres 27.01.2011 12:49:36 -2 Setpt 27.01.2011 12:49:36 100 Pos 27.01.2011 12:49:37 32 Pres 27.01.2011 12:49:37 9 Setpt 27.01.2011 12:49:37 100 Pos 27.01.2011 12:49:38 32 Pres 27.01.2011 12:49:38 9 Setpt 27.01.2011 12:49:38 100 Pos 27.01.2011 12:49:39 32 Pres 27.01.2011 12:49:39 24 Setpt 27.01.2011 12:49:39 100 Pos 27.01.2011 12:49:40 32 Pres 27.01.2011 12:49:40 24 Setpt 27.01.2011 12:49:40 100 Gain 27.01.2011 12:49:40 1 Int 27.01.2011 12:49:40 10 I'm trying to get it into a format something like this in order to chart it: TimeString Pos Press Setpt Gain Int 27.01.2011 12:49:35 32 -2 100 1 10 27.01.2011 12:49:36 32 -2 100 27.01.2011 12:49:37 32 9 100 27.01.2011 12:49:38 32 9 100 27.01.2011 12:49:39 32 24 100 27.01.2011 12:49:40 32 24 100 1 10 Any help would be greatly appreciated. -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel
Re: $$Excel-Macros$$ How to extract data from an array
Hi, If you kindly put the data in excel it would be easy. Reg Umesh On Tue, Feb 1, 2011 at 12:22 AM, jmccaski wrote: > I have an arry of over 21,000 rows with data in this format: > VarName TimeString VarValue > Pos 27.01.2011 12:49:35 32 > Pres27.01.2011 12:49:35 -2 > Setpt 27.01.2011 12:49:35 100 > Gain27.01.2011 12:49:35 1 > Int 27.01.2011 12:49:35 10 > Pos 27.01.2011 12:49:36 32 > Pres27.01.2011 12:49:36 -2 > Setpt 27.01.2011 12:49:36 100 > Pos 27.01.2011 12:49:37 32 > Pres27.01.2011 12:49:37 9 > Setpt 27.01.2011 12:49:37 100 > Pos 27.01.2011 12:49:38 32 > Pres27.01.2011 12:49:38 9 > Setpt 27.01.2011 12:49:38 100 > Pos 27.01.2011 12:49:39 32 > Pres27.01.2011 12:49:39 24 > Setpt 27.01.2011 12:49:39 100 > Pos 27.01.2011 12:49:40 32 > Pres27.01.2011 12:49:40 24 > Setpt 27.01.2011 12:49:40 100 > Gain27.01.2011 12:49:40 1 > Int 27.01.2011 12:49:40 10 > > I'm trying to get it into a format something like this in order to > chart it: > TimeString Pos Press Setpt GainInt > 27.01.2011 12:49:35 32 -2 100 1 10 > 27.01.2011 12:49:36 32 -2 100 > 27.01.2011 12:49:37 32 9 100 > 27.01.2011 12:49:38 32 9 100 > 27.01.2011 12:49:39 32 24 100 > 27.01.2011 12:49:40 32 24 100 1 10 > > Any help would be greatly appreciated. > > -- > > -- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links : > http://twitter.com/exceldailytip > 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 > 3. Excel tutorials at http://www.excel-macros.blogspot.com > 4. Learn VBA Macros at http://www.quickvba.blogspot.com > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com > > To post to this group, send email to excel-macros@googlegroups.com > > <><><><><><><><><><><><><><><><><><><><><><> > Like our page on facebook , Just follow below link > http://www.facebook.com/discussexcel > -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel
$$Excel-Macros$$ How to extract data from an array
I have an arry of over 21,000 rows with data in this format: VarName TimeString VarValue Pos 27.01.2011 12:49:35 32 Pres27.01.2011 12:49:35 -2 Setpt 27.01.2011 12:49:35 100 Gain27.01.2011 12:49:35 1 Int 27.01.2011 12:49:35 10 Pos 27.01.2011 12:49:36 32 Pres27.01.2011 12:49:36 -2 Setpt 27.01.2011 12:49:36 100 Pos 27.01.2011 12:49:37 32 Pres27.01.2011 12:49:37 9 Setpt 27.01.2011 12:49:37 100 Pos 27.01.2011 12:49:38 32 Pres27.01.2011 12:49:38 9 Setpt 27.01.2011 12:49:38 100 Pos 27.01.2011 12:49:39 32 Pres27.01.2011 12:49:39 24 Setpt 27.01.2011 12:49:39 100 Pos 27.01.2011 12:49:40 32 Pres27.01.2011 12:49:40 24 Setpt 27.01.2011 12:49:40 100 Gain27.01.2011 12:49:40 1 Int 27.01.2011 12:49:40 10 I'm trying to get it into a format something like this in order to chart it: TimeString Pos Press Setpt GainInt 27.01.2011 12:49:35 32 -2 100 1 10 27.01.2011 12:49:36 32 -2 100 27.01.2011 12:49:37 32 9 100 27.01.2011 12:49:38 32 9 100 27.01.2011 12:49:39 32 24 100 27.01.2011 12:49:40 32 24 100 1 10 Any help would be greatly appreciated. -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel