Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Jumping columns
Using Excel 2000 and with three columns, A, B and C for example, after
entering a number in column B, is it possible to jump back to column A in which there is a vlookup equation, and then jump forward two columns to column C? Your solution would be gratefully received. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Jumping columns
Hi Lolly,
It is so easy to rearrange columns. What is good for data entry is usually in the order you want to look at them. Rearranging columns. http://www.mvps.org/dmcritchie/excel...nd.htm#movecol However for what you asked... You can affect how the cursor moves by the Enter key (direction), Tab key, arrow keys, and prevent entry into cell with cell protection in effect. An event macro to go to B in next row after entry in C go to A in same column after entry in B go to C after entry in A I don't know if this will help you or frustrate you but the Event macro will only move the cursor after entry. If you make a mistake the undo key will return you the last change and it's previous value... More information on Event macros in http://www.mvps.org/dmcritchie/excel/event.htm Install the following by right click on the sheet tab, then view code. Private Sub Worksheet_Change(ByVal Target As Range) Select Case Target.Column Case 3 'After Entry in C next row column B Target.Offset(1, -1).Activate Beep '-- may be distracting but intent is to indicate new row Case 2 'After Entry in B same row column A Target.Offset(0, -1).Activate Case 1 'After Entry in A same row Column C Target.Offset(0, 2).Activate End Select End Sub If you make a mistake use the Undo key Ctrl+Z to return from your last change was made. --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "Lolly" wrote in message ... Using Excel 2000 and with three columns, A, B and C for example, after entering a number in column B, is it possible to jump back to column A in which there is a vlookup equation, and then jump forward two columns to column C? Your solution would be gratefully received. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Jumping columns
Hi David,
Thank you for that detailed information. However it doesn't fully answer my query as the data columns being used are fixed for all the many users and we therefore cannot rearrange columns. The example columns of A, B and C are actually in the middle of other fields of information. When a number is entered in column B we want a cooresponding name from a maser list to automatically appear in column A and then for the cursor to jump to column C. We already have the correct vlookup equation in column A. The Master List is on Sheet1 and our records are being entered on Sheet 2. I hope this gives a better idea of what is required. Sorry, but I must admit I did become confused with the macro instructions and feel they do not accurately cover what we require in the one row on each record's data. There are about 20 colums in each row and each row needs to be completed before entering the data for the next record. These records relate to data collected from bird banding. "David McRitchie" wrote: Hi Lolly, It is so easy to rearrange columns. What is good for data entry is usually in the order you want to look at them. Rearranging columns. http://www.mvps.org/dmcritchie/excel...nd.htm#movecol However for what you asked... You can affect how the cursor moves by the Enter key (direction), Tab key, arrow keys, and prevent entry into cell with cell protection in effect. An event macro to go to B in next row after entry in C go to A in same column after entry in B go to C after entry in A I don't know if this will help you or frustrate you but the Event macro will only move the cursor after entry. If you make a mistake the undo key will return you the last change and it's previous value... More information on Event macros in http://www.mvps.org/dmcritchie/excel/event.htm Install the following by right click on the sheet tab, then view code. Private Sub Worksheet_Change(ByVal Target As Range) Select Case Target.Column Case 3 'After Entry in C next row column B Target.Offset(1, -1).Activate Beep '-- may be distracting but intent is to indicate new row Case 2 'After Entry in B same row column A Target.Offset(0, -1).Activate Case 1 'After Entry in A same row Column C Target.Offset(0, 2).Activate End Select End Sub If you make a mistake use the Undo key Ctrl+Z to return from your last change was made. --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "Lolly" wrote in message ... Using Excel 2000 and with three columns, A, B and C for example, after entering a number in column B, is it possible to jump back to column A in which there is a vlookup equation, and then jump forward two columns to column C? Your solution would be gratefully received. |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Jumping columns
Hi Lolly,
You only mentioned 3 columns not 20, but if you look at my event.htm page you should be able to modify what was supplied to limit it to certain rows. In any case why not try the macro and try to modify it. From what you describe, you will have to use a macro. --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "Lolly" wrote in message ... Hi David, Thank you for that detailed information. However it doesn't fully answer my query as the data columns being used are fixed for all the many users and we therefore cannot rearrange columns. The example columns of A, B and C are actually in the middle of other fields of information. When a number is entered in column B we want a cooresponding name from a maser list to automatically appear in column A and then for the cursor to jump to column C. We already have the correct vlookup equation in column A. The Master List is on Sheet1 and our records are being entered on Sheet 2. I hope this gives a better idea of what is required. Sorry, but I must admit I did become confused with the macro instructions and feel they do not accurately cover what we require in the one row on each record's data. There are about 20 colums in each row and each row needs to be completed before entering the data for the next record. These records relate to data collected from bird banding. "David McRitchie" wrote: Hi Lolly, It is so easy to rearrange columns. What is good for data entry is usually in the order you want to look at them. Rearranging columns. http://www.mvps.org/dmcritchie/excel...nd.htm#movecol However for what you asked... You can affect how the cursor moves by the Enter key (direction), Tab key, arrow keys, and prevent entry into cell with cell protection in effect. An event macro to go to B in next row after entry in C go to A in same column after entry in B go to C after entry in A I don't know if this will help you or frustrate you but the Event macro will only move the cursor after entry. If you make a mistake the undo key will return you the last change and it's previous value... More information on Event macros in http://www.mvps.org/dmcritchie/excel/event.htm Install the following by right click on the sheet tab, then view code. Private Sub Worksheet_Change(ByVal Target As Range) Select Case Target.Column Case 3 'After Entry in C next row column B Target.Offset(1, -1).Activate Beep '-- may be distracting but intent is to indicate new row Case 2 'After Entry in B same row column A Target.Offset(0, -1).Activate Case 1 'After Entry in A same row Column C Target.Offset(0, 2).Activate End Select End Sub If you make a mistake use the Undo key Ctrl+Z to return from your last change was made. --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "Lolly" wrote in message ... Using Excel 2000 and with three columns, A, B and C for example, after entering a number in column B, is it possible to jump back to column A in which there is a vlookup equation, and then jump forward two columns to column C? Your solution would be gratefully received. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I sort the data in 8 columns by two of the columns? | Excel Worksheet Functions | |||
How to swap rows and columns? | Excel Discussion (Misc queries) | |||
Hiding columns and custom views problem | Excel Discussion (Misc queries) | |||
Removing Near-Duplicate Rows, Leaving Those w/Most Data in Specific Columns | Excel Discussion (Misc queries) | |||
Counting the Contents of Two Columns | Excel Discussion (Misc queries) |