- Joined
- 9 January 2012
- Posts
- 114
- Reactions
- 2
You have two options:OK - You Excel Whizzes... I need your assistance.
I have 2 separate Worksheets within 1 file.
Worksheet 1 has raw data with 3 cells.
Worksheet 2 has this same data as these 3 cells in Worksheet 1 (via links)
Worksheet 1 is updated daily with different data in these same 3 cells.
I want Worksheet 2 to retain the previous 3 cells of data (from yesterday) and include today's new data of 3 cells in a new set of cells.
I want Worksheet to retain all daily data as time goes by.
How do I achieve this task?
Smack
it would be nice to have this done automatically via macro, but there must be a standard excel function that will enable linked cells (into Wksht 2). It is hard to explain what I want.
Smack
The 3 cells in sheet1 will - presumably - contain a formula or function call that obtains the data from an external source. If you copy-paste, the formula will be transferred into sheet2. So you would end up with a spreadsheet full of identical formulae, which, on recalculation, would fill sheet2 with a bunch of identical sets of data triplets.Why do you need to paste special instead of just paste?
The 3 cells in sheet1 will - presumably - contain a formula or function call that obtains the data from an external source. If you copy-paste, the formula will be transferred into sheet2. So you would end up with a spreadsheet full of identical formulae, which, on recalculation, would fill sheet2 with a bunch of identical sets of data triplets.
pixel said:PS for Smack: If you don't have experience with writing macros, as your question suggests, you may need "professional" help. VBA skills aren't something you simply "pick up" from a Forum post.
OK - You Excel Whizzes... I need your assistance.
I have 2 separate Worksheets within 1 file.
Worksheet 1 has raw data with 3 cells.
Worksheet 2 has this same data as these 3 cells in Worksheet 1 (via links)
Worksheet 1 is updated daily with different data in these same 3 cells.
I want Worksheet 2 to retain the previous 3 cells of data (from yesterday) and include today's new data of 3 cells in a new set of cells.
I want Worksheet to retain all daily data as time goes by.
How do I achieve this task?
Smack
Roger thatVBA isn't difficult to learn, you just need to start with enough hair so that by the time you have finished debugging your first few macros you still have some left!
Roger that
I made the same experience a couple of decades ago when I got stuck into Macro-4 language. By the time I could make that sit up and beg, I didn't have enough hair left to switch to VBA. Luckily for me, XLM's are still supported; so I can continue to develop even under Office 2010.
PS for cudderbean: Ours just crossed. What kind of problem did you encounter under Win7? I keep developing in Macro4 and it's all working perfectly. I'm using 64bit Win 7 "Home Premium"
methinks that's your problem.My Excel 4 is 16 bit software.
The 3 cells in sheet1 will - presumably - contain a formula or function call that obtains the data from an external source. If you copy-paste, the formula will be transferred into sheet2. So you would end up with a spreadsheet full of identical formulae, which, on recalculation, would fill sheet2 with a bunch of identical sets of data triplets.
PS for Smack: If you don't have experience with writing macros, as your question suggests, you may need "professional" help. VBA skills aren't something you simply "pick up" from a Forum post.
Sub Copy_Paste ()
Dim cl As Range
Set cl = Sheets("Sheet1").Range("a1")
cl.EntireRow.Copy Destination:=Sheets("Sheet2").Range("a65000").End(xlUp).Offset(1, 0)
End
I wonder if someone would mind excelling this recent history of pair trades and telling me if it's in profit or loss for the period shown. I think if I tried this manually I'd go cross-eyed! Let me know if the format is no good.
Thanks!
Very good of you pixel, thanks.Is C1 short for R1C3?
What is supposed to happen if column 1 contains the value in more than one places?
Are the values in column 1 sorted? That will determine whether you use VLOOKUP or some FIND formula.
How many rows are there in the first 2 columns?
one solution (under the suitable set of assumptions) would be -
=VLOOKUP(C1,A1:B1000,2) to be typed into any cell outside the leftmost two columns.
I assumed 1000 rows in the table, contents sorted in ascending order, and you change the value/name in cell C1 manually. The contents of whichever cell has the vlookup formula will then change to the contents 1 to the right of the found cell in column 1.
If there is potentially no match in all of column 2, you will need some more nested if clauses to cater for the "N/A" case.
No problem, GBVery good of you pixel, thanks.
C1 is R1C3. Column 1 can be sorted alphabetically if need be. 1000 rows - I can work with that. Cheers.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?