#1   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Copy Paste

Hi,
I have a series as such:
Cell A1 =Date Cell B1= value
Cell A2= Date(A1+1 as value) Cell B2=value
etc.

I would like to be able to extract only weekly data (the series is daily)
and have the values in a separate sheet or side by side with the daily
series but with no gaps or spaces--
Cell D1=Date Cell E1=value
Cell D2= (Date +7) Cell E1- corresponding value of D2, etc.

I need to avoid the lengthy cut and paste and "automate" as much as I can
the process.

Any suggestions??
Tx a lot,
S


  #2   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Copy Paste

There is a way to do this with formulas:
In columne E, use one of the following:
=LOOKUP(D1,A:A,B:B)
or
=INDEX(B:B,MATCH(D1,A:A,0),1)
or
=SumIf(A:A,D1,B:B)

I prefer the sumif since it doesn't return anything if no match
exists. The others return #NA if there is no match.

No code is needed.

But you could incorporate this into code...

hth

--
steveb
(Remove 'NOSPAM' from email address if replying direct)
"saturnin02" <saturnin02_at_hotmail.com wrote in message
...
Hi,
I have a series as such:
Cell A1 =Date Cell B1= value
Cell A2= Date(A1+1 as value) Cell B2=value
etc.

I would like to be able to extract only weekly data (the series is daily)
and have the values in a separate sheet or side by side with the daily
series but with no gaps or spaces--
Cell D1=Date Cell E1=value
Cell D2= (Date +7) Cell E1- corresponding value of D2, etc.

I need to avoid the lengthy cut and paste and "automate" as much as I can
the process.

Any suggestions??
Tx a lot,
S




  #3   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Copy Paste

Let me try that and post again.
Tx,
"steveb" wrote in message
...
There is a way to do this with formulas:
In columne E, use one of the following:
=LOOKUP(D1,A:A,B:B)
or
=INDEX(B:B,MATCH(D1,A:A,0),1)
or
=SumIf(A:A,D1,B:B)

I prefer the sumif since it doesn't return anything if no match
exists. The others return #NA if there is no match.

No code is needed.

But you could incorporate this into code...

hth

--
steveb
(Remove 'NOSPAM' from email address if replying direct)
"saturnin02" <saturnin02_at_hotmail.com wrote in message
...
Hi,
I have a series as such:
Cell A1 =Date Cell B1= value
Cell A2= Date(A1+1 as value) Cell B2=value
etc.

I would like to be able to extract only weekly data (the series is

daily)
and have the values in a separate sheet or side by side with the daily
series but with no gaps or spaces--
Cell D1=Date Cell E1=value
Cell D2= (Date +7) Cell E1- corresponding value of D2, etc.

I need to avoid the lengthy cut and paste and "automate" as much as I

can
the process.

Any suggestions??
Tx a lot,
S






Reply
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
Can't Copy and Paste or Paste Special between Excel Workbooks wllee Excel Discussion (Misc queries) 5 April 29th 23 03:43 AM
Copy, paste without file name referenced after paste AusTexRich Excel Discussion (Misc queries) 6 September 23rd 08 02:57 AM
Copy; Paste; Paste Special are disabled Mack Neff[_3_] Excel Discussion (Misc queries) 0 April 28th 08 06:29 PM
Excel cut/Paste Problem: Year changes after data is copy and paste Asif Excel Discussion (Misc queries) 2 December 9th 05 05:16 PM
I cannot paste from one workbook to another. Copy works, paste do. JimmyMc Excel Discussion (Misc queries) 1 June 10th 05 03:54 PM


All times are GMT +1. The time now is 04:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"