A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Macro match function problem



 
 
Thread Tools Display Modes
  #11  
Old May 6th, 2010, 03:59 AM posted to microsoft.public.excel.misc
asraf
external usenet poster
 
Posts: 10
Default Macro match function problem

Yes i'm very sure. by calculating all cells in D will slow down the macro.
but if we can select several cell which is only "cell with data", it will
increace the speed for calculation and the macro will not stuck in
"calculating" progress for a long period.

just assume if my lookup_array and lookup_value data is 30000 rows long..
how long it will take to match if we selecting all D as a lookup_array,
compare with selecting just "cell with data".
"Dave Peterson" wrote:

Are you sure?

There are lots of functions in excel that limit themselves to the usedrange.

Asraf wrote:

sorry Roger. by selecting all column D will slow down my macro.

"Roger Govier" wrote:

Hi

Application.Match(Range("A1"), Range("D"), 0)
--
Regards
Roger Govier

Asraf wrote:
Hi all,

I have a problem to create a match function macro with the following
senario, whereby the lookup_array is currently at col D1 to D4, and the
lookup_value will be A1. The problem is my lookup_array number will change to
(D1 to D9) or (D1 to D15) or any row at row D based on new data inserted..
How to create a match macro if my lookup_array is changing everyday?


A B C D
1 123 1
2 12
3 23
4 123

thank you..

.


--

Dave Peterson
.

  #12  
Old May 6th, 2010, 01:06 PM posted to microsoft.public.excel.misc
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Macro match function problem

When you created a new worksheet and populated 10 rows with data, what was the
difference in times using the different ranges?


Asraf wrote:

Yes i'm very sure. by calculating all cells in D will slow down the macro.
but if we can select several cell which is only "cell with data", it will
increace the speed for calculation and the macro will not stuck in
"calculating" progress for a long period.

just assume if my lookup_array and lookup_value data is 30000 rows long..
how long it will take to match if we selecting all D as a lookup_array,
compare with selecting just "cell with data".
"Dave Peterson" wrote:

Are you sure?

There are lots of functions in excel that limit themselves to the usedrange.

Asraf wrote:

sorry Roger. by selecting all column D will slow down my macro.

"Roger Govier" wrote:

Hi

Application.Match(Range("A1"), Range("D"), 0)
--
Regards
Roger Govier

Asraf wrote:
Hi all,

I have a problem to create a match function macro with the following
senario, whereby the lookup_array is currently at col D1 to D4, and the
lookup_value will be A1. The problem is my lookup_array number will change to
(D1 to D9) or (D1 to D15) or any row at row D based on new data inserted..
How to create a match macro if my lookup_array is changing everyday?


A B C D
1 123 1
2 12
3 23
4 123

thank you..

.


--

Dave Peterson
.


--

Dave Peterson
  #13  
Old May 7th, 2010, 05:25 PM posted to microsoft.public.excel.misc
asraf
external usenet poster
 
Posts: 10
Default Macro match function problem

The difference is my data will be increase day by day and not a constant.
thats why i need a macro which can count row with data which will select the
last row with data as my lookup_array. thanks to Jacob Skaria for the light
he gave. he sure a excel monster.

"Dave Peterson" wrote:

When you created a new worksheet and populated 10 rows with data, what was the
difference in times using the different ranges?


Asraf wrote:

Yes i'm very sure. by calculating all cells in D will slow down the macro.
but if we can select several cell which is only "cell with data", it will
increace the speed for calculation and the macro will not stuck in
"calculating" progress for a long period.

just assume if my lookup_array and lookup_value data is 30000 rows long..
how long it will take to match if we selecting all D as a lookup_array,
compare with selecting just "cell with data".
"Dave Peterson" wrote:

Are you sure?

There are lots of functions in excel that limit themselves to the usedrange.

Asraf wrote:

sorry Roger. by selecting all column D will slow down my macro.

"Roger Govier" wrote:

Hi

Application.Match(Range("A1"), Range("D"), 0)
--
Regards
Roger Govier

Asraf wrote:
Hi all,

I have a problem to create a match function macro with the following
senario, whereby the lookup_array is currently at col D1 to D4, and the
lookup_value will be A1. The problem is my lookup_array number will change to
(D1 to D9) or (D1 to D15) or any row at row D based on new data inserted..
How to create a match macro if my lookup_array is changing everyday?


A B C D
1 123 1
2 12
3 23
4 123

thank you..

.


--

Dave Peterson
.


--

Dave Peterson
.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:01 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.