![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Location: Manitoba, Canada
Posts: 22
|
I have a dilemma. What I’m trying to do is find a number in column C, then paste that number in the same row, but in column D. I would like a dialogue box to ask for a number (eg. 36) from 1 to 2000 only. Then search in column C for this number (36). There could be more than one occurrence of this number, so I would like to find the last number in column C which would also be blank in column D. Then paste this number (36) into column D. I would also need to cancel the operation and allow for any errors, which could be made. Eg. inputting text or allow for stopping the process. Col C.. Col D 1990....1990 36......36 500.....500 36......___ this blank space here is the one to find 36......36 I have tried searching, but no luck. Many thanks for helping and taking the time to read, Peter |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Portland, OR USA
Posts: 1,374
|
Try this:
Hope it helps, Russell |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Location: Manitoba, Canada
Posts: 22
|
Thanks Russell, works slick...
I've been trying to figure out the "for" statement, with limited success. With time and the help file should eventually crack it open. Again thanks for the quick response. Peter |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|