Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro it's very Slow ....

Hello! (sorry be me english)

I found this interesting web page and it's very amazing!. Okey here m
question ... :) (thank you for your time).

I have a excel workbook where i have a data like this.

Month---Year
08 2004
09 2004
10 2004
....................
08 2005
09 2005
10 2005
....................
08 2006
09 2006
10 2006
...................

Me question is ... if X=08 (Month) i need to find this occurrences. Th
result must be :
08 2004
08 2005
08 2006

Ok. I do this via excel macro and this must work (today it's very slo
...) , but there is a excel formula can do this ?. Like a VLOOKUP
HLOOKUP by example or another ?

Thank you for your help and time !

Bye

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Macro it's very Slow ....

=Index($B$1:$B$100,Small(if($A$1:$A$100="08",row($ A$1:$A$100)),row(A1))

Enter with ctrl+Shift+enter rather than just enter and then drag fill down
until it starts returning errors.

--
Regards,
Tom Ogilvy

"leo_nunez " wrote in message
...
Hello! (sorry be me english)

I found this interesting web page and it's very amazing!. Okey here my
question ... :) (thank you for your time).

I have a excel workbook where i have a data like this.

Month---Year
08 2004
09 2004
10 2004
...................
08 2005
09 2005
10 2005
...................
08 2006
09 2006
10 2006
..................

Me question is ... if X=08 (Month) i need to find this occurrences. The
result must be :
08 2004
08 2005
08 2006

Ok. I do this via excel macro and this must work (today it's very slow
..) , but there is a excel formula can do this ?. Like a VLOOKUP,
HLOOKUP by example or another ?

Thank you for your help and time !

Bye!


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Macro it's very Slow ....

left off the final parentheses:

=INDEX($B$1:$B$100,SMALL(IF($A$1:$A$100="08",ROW($ A$1:$A$100)),ROW(A1)))

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
=Index($B$1:$B$100,Small(if($A$1:$A$100="08",row($ A$1:$A$100)),row(A1))

Enter with ctrl+Shift+enter rather than just enter and then drag fill down
until it starts returning errors.

--
Regards,
Tom Ogilvy

"leo_nunez " wrote in message
...
Hello! (sorry be me english)

I found this interesting web page and it's very amazing!. Okey here my
question ... :) (thank you for your time).

I have a excel workbook where i have a data like this.

Month---Year
08 2004
09 2004
10 2004
...................
08 2005
09 2005
10 2005
...................
08 2006
09 2006
10 2006
..................

Me question is ... if X=08 (Month) i need to find this occurrences. The
result must be :
08 2004
08 2005
08 2006

Ok. I do this via excel macro and this must work (today it's very slow
..) , but there is a excel formula can do this ?. Like a VLOOKUP,
HLOOKUP by example or another ?

Thank you for your help and time !

Bye!


---
Message posted from http://www.ExcelForum.com/





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro it's very Slow ....

A last problem. I have a Spanish Excel. How i can translate the formul
to spanish ?

INDEX = INDICE (EQV SPANISH)
SMALL = ????
ROW=FILA (EQV SPANISH)

THANK YOU

--
Message posted from http://www.ExcelForum.com

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Macro it's very Slow ....

Sub MakeFormula()
sform = "=INDEX($B$1:$B$100,SMALL(IF($A$1:$A$100"
sform = sform & "=""08"",ROW($A$1:$A$100)),ROW(A1)))"
ActiveCell.formulaArray = sForm
End Sub

select the cell where you want the formula and run the macro. Excel should
translate it for you.

--
Regards,
Tom Ogilvy


"leo_nunez " wrote in message
...
A last problem. I have a Spanish Excel. How i can translate the formula
to spanish ?

INDEX = INDICE (EQV SPANISH)
SMALL = ????
ROW=FILA (EQV SPANISH)

THANK YOU!


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
slow macro :)[_2_] Excel Discussion (Misc queries) 1 March 3rd 10 02:41 PM
Macro - very slow run in 2003 murkaboris Excel Discussion (Misc queries) 3 September 28th 09 09:28 PM
Macro is very slow jlclyde Excel Discussion (Misc queries) 2 September 29th 08 04:43 PM
Macro is amazingly SLOW...Need help anshu[_2_] Excel Discussion (Misc queries) 7 July 16th 07 01:03 PM
macro working very slow paritoshmehta[_15_] Excel Programming 1 May 9th 04 07:05 PM


All times are GMT +1. The time now is 07:18 AM.

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

About Us

"It's about Microsoft Excel"