![]() |
![]() |
|
|||||||
| 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 |
|
Board Regular
Join Date: Mar 2002
Posts: 364
|
This formula works perfectly, it's just that it runs a little slow. Does anyone have any ideas on how to speed it up?
=VLOOKUP(A2,$A$1:$A$3000,1,FALSE)&" Found in row "&MATCH(A2,Sheet2!$A$1:Sheet2!$A$3000,0) Thanks, Noir |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
=A2&" Found in row "&MATCH(A2,Sheet2!$A$1:$A$3000,0) and a question: Is the range in Sheet2 really 3000 rows deep and does it often change? |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Posts: 364
|
Yes, sheets1&2 is 3000 rows deep. I am really using more rows than i need. I normally use closer to 1000 rows but, the other 2000 are there just in case.
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Noir, you should also consider "tuning" your 3,000 row list. More common entries should be sorted to the top. For example, if it was a list of salaries... one might expect 'em to be normally distributed so one might place the low and high salaries nearer the end of the list.
|
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
|
|
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
Activate Insert|Name|Define. Enter Drecs as name in the Names in Workbook box. Enter as formula in the Refers to box: =MATCH(REPT("z",25),Sheet2!$A:$A) Activate Add. (Don't leave yet the Define Name window.) Enter Drange as name in the Names in Workbook box. Enter as formula in the Refers to box: =OFFSET(Sheet2!$A$1,0,0,Drecs-(ROW(Sheet2!$A$1)-1),1) Activate OK. Now use: =A2&" Found in row "&MATCH(A2,Drange,0) Aladin |
|
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Mar 2002
Posts: 364
|
Thanks for your help Mark!!!
|
|
|
|
|
|
#8 |
|
Board Regular
Join Date: Mar 2002
Posts: 364
|
Thanks Aladin!!!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|