Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Macros - Go to next cell
good day... i need help on this macro thingy! i'm importing data from a .txt file that will be in sheet 1. This set of data will always be changing. from there, i need to copy dates and figures to sheet 2 with formulas. 1) for a date in sheet 1, say cell C3, how do i create a macro that will paste to sheet 2 cell A6 and go to the next empty cell? 2) and from the next empty cell, repeat point 1 and go to the next empty cell and so on... Can we do this without using Visual Basic?? thks |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Macros - Go to next cell
nana,
If I'm reading this right all you need are some simple formulas. With what you have given, place this formula in A6 of sheet 2. =Sheet1!C3 Then copy down as far as needed. Do similar for the other data. If Sheet1 is not the name of the sheet you'll need to change that of course. Rob "nana" wrote in message ... good day... i need help on this macro thingy! i'm importing data from a .txt file that will be in sheet 1. This set of data will always be changing. from there, i need to copy dates and figures to sheet 2 with formulas. 1) for a date in sheet 1, say cell C3, how do i create a macro that will paste to sheet 2 cell A6 and go to the next empty cell? 2) and from the next empty cell, repeat point 1 and go to the next empty cell and so on... Can we do this without using Visual Basic?? thks |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Macros - Go to next cell
Hi rob.. thks! i've tried. it does go to the next cell down but when i change
the data in sheet 1, i need it to go again to the next cell down. it has to continue to go to the next cell down as new data will be filled in each row. nana. "RobN" wrote: nana, If I'm reading this right all you need are some simple formulas. With what you have given, place this formula in A6 of sheet 2. =Sheet1!C3 Then copy down as far as needed. Do similar for the other data. If Sheet1 is not the name of the sheet you'll need to change that of course. Rob "nana" wrote in message ... good day... i need help on this macro thingy! i'm importing data from a .txt file that will be in sheet 1. This set of data will always be changing. from there, i need to copy dates and figures to sheet 2 with formulas. 1) for a date in sheet 1, say cell C3, how do i create a macro that will paste to sheet 2 cell A6 and go to the next empty cell? 2) and from the next empty cell, repeat point 1 and go to the next empty cell and so on... Can we do this without using Visual Basic?? thks |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Macros - Go to next cell
nana
Rob meant for you to copy the formula down the column as far as you wish. His formula will give you a column of zeros until data is entered in Sheet1 Try this to get rid of the zeros. =IF(Sheet1!C3="","",Sheet1!C3) in A6 of Sheet2 Click on the black square at bottom right corner of A6 and drag down as far as you wish. Gord Dibben MS Excel MVP On Sat, 20 Oct 2007 00:33:06 -0700, nana wrote: Hi rob.. thks! i've tried. it does go to the next cell down but when i change the data in sheet 1, i need it to go again to the next cell down. it has to continue to go to the next cell down as new data will be filled in each row. nana. "RobN" wrote: nana, If I'm reading this right all you need are some simple formulas. With what you have given, place this formula in A6 of sheet 2. =Sheet1!C3 Then copy down as far as needed. Do similar for the other data. If Sheet1 is not the name of the sheet you'll need to change that of course. Rob "nana" wrote in message ... good day... i need help on this macro thingy! i'm importing data from a .txt file that will be in sheet 1. This set of data will always be changing. from there, i need to copy dates and figures to sheet 2 with formulas. 1) for a date in sheet 1, say cell C3, how do i create a macro that will paste to sheet 2 cell A6 and go to the next empty cell? 2) and from the next empty cell, repeat point 1 and go to the next empty cell and so on... Can we do this without using Visual Basic?? thks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Assigning Macros to Run from a Cell | Excel Discussion (Misc queries) | |||
cell references in macros | Excel Discussion (Misc queries) | |||
Macros in a cell function | Excel Worksheet Functions | |||
Copying data from another cell, I think there are macros | Excel Discussion (Misc queries) | |||
Automate a macros when data in a cell changes (e.g.when using quer | Excel Discussion (Misc queries) |