Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
bill gras
 
Posts: n/a
Default array formula problem

i need to look up columns and match a number eg:
AH32 (25) match it in column AF(25) and return the result from column AG(4)
the result i get is 10 where it should be 4, i tried defferent ways but no
luck
i can not use VLOOKUP because i have the same numbers at times and need
multiple hits
AF AG AH result
32 blank 1 25 4
33 blank 2 14 2
34 14 2 11 3
35 blank 2 11 5
36 blank 3 11 6
37 11 3
38 blank 4
39 25 4
40 blank 5
41 blank 5
42 11 5
43 11 6
44 blank 6
and so on down to 300 rows
my array formula is :
{=INDEX(AG32:AG300,SMALL(IF(AF32:AF300=AH32,ROW(AF 32:AF300)),ROW(1:1)))}
coppied down to 5 rows as 1 only need 5 results

can some one please help ?

greatly appreciated

bill gras
--
bill gras
  #2   Report Post  
Domenic
 
Posts: n/a
Default

Try...

AI32, copied down:

=INDEX($AG$32:$AG$44,SMALL(IF($AF$32:$AF$44=AH32,R OW($AG$32:$AG$44)-ROW($
AG$32)+1),COUNTIF($AH$32:AH32,AH32)))

....confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

In article ,
bill gras wrote:

i need to look up columns and match a number eg:
AH32 (25) match it in column AF(25) and return the result from column AG(4)
the result i get is 10 where it should be 4, i tried defferent ways but no
luck
i can not use VLOOKUP because i have the same numbers at times and need
multiple hits
AF AG AH result
32 blank 1 25 4
33 blank 2 14 2
34 14 2 11 3
35 blank 2 11 5
36 blank 3 11 6
37 11 3
38 blank 4
39 25 4
40 blank 5
41 blank 5
42 11 5
43 11 6
44 blank 6
and so on down to 300 rows
my array formula is :
{=INDEX(AG32:AG300,SMALL(IF(AF32:AF300=AH32,ROW(AF 32:AF300)),ROW(1:1)))}
coppied down to 5 rows as 1 only need 5 results

can some one please help ?

greatly appreciated

bill gras

  #3   Report Post  
RagDyer
 
Posts: n/a
Default

Try this array formula:

=INDEX($AG$32:$AG$300,SMALL(IF($AF$32:$AF$300=AH32 ,ROW($A$1:$A$269)),ROW(1:1
)))

Your Row() reference should indicate the *number* of rows in your array,
which in this case is 269 rows.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"bill gras" wrote in message
...
i need to look up columns and match a number eg:
AH32 (25) match it in column AF(25) and return the result from column

AG(4)
the result i get is 10 where it should be 4, i tried defferent ways but no
luck
i can not use VLOOKUP because i have the same numbers at times and need
multiple hits
AF AG AH result
32 blank 1 25 4
33 blank 2 14 2
34 14 2 11 3
35 blank 2 11 5
36 blank 3 11 6
37 11 3
38 blank 4
39 25 4
40 blank 5
41 blank 5
42 11 5
43 11 6
44 blank 6
and so on down to 300 rows
my array formula is :
{=INDEX(AG32:AG300,SMALL(IF(AF32:AF300=AH32,ROW(AF 32:AF300)),ROW(1:1)))}
coppied down to 5 rows as 1 only need 5 results

can some one please help ?

greatly appreciated

bill gras
--
bill gras


  #4   Report Post  
RagDyer
 
Posts: n/a
Default

Since your copying down 5 rows for 5 returns of the same AH32 value, I
should really add the absolutes , just to be completely accurate.
Can also eliminate the column references in the array size.

=INDEX($AG$32:$AG$300,SMALL(IF($AF$32:$AF$300=$AH$ 32,ROW($1:$269)),ROW(1:1))
)

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"RagDyer" wrote in message
...
Try this array formula:


=INDEX($AG$32:$AG$300,SMALL(IF($AF$32:$AF$300=AH32 ,ROW($A$1:$A$269)),ROW(1:1
)))

Your Row() reference should indicate the *number* of rows in your array,
which in this case is 269 rows.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"bill gras" wrote in message
...
i need to look up columns and match a number eg:
AH32 (25) match it in column AF(25) and return the result from column

AG(4)
the result i get is 10 where it should be 4, i tried defferent ways but

no
luck
i can not use VLOOKUP because i have the same numbers at times and need
multiple hits
AF AG AH result
32 blank 1 25 4
33 blank 2 14 2
34 14 2 11 3
35 blank 2 11 5
36 blank 3 11 6
37 11 3
38 blank 4
39 25 4
40 blank 5
41 blank 5
42 11 5
43 11 6
44 blank 6
and so on down to 300 rows
my array formula is :
{=INDEX(AG32:AG300,SMALL(IF(AF32:AF300=AH32,ROW(AF 32:AF300)),ROW(1:1)))}
coppied down to 5 rows as 1 only need 5 results

can some one please help ?

greatly appreciated

bill gras
--
bill gras



  #5   Report Post  
Max
 
Posts: n/a
Default

One way to drive it out in cols AH and AI using non-array formulas
(requires just one tie-breaker column in say, col AJ)

Put in AH32:

=IF(ISERROR(LARGE($AJ$32:$AJ$300,ROWS($A$1:A1)))," ",
INDEX(AF$32:AF$300,
MATCH(LARGE($AJ$32:$AJ$300,ROWS($A$1:A1)),$AJ$32:$ AJ$300,0)))

Copy AH32 across to AI32

Put in AJ32: =IF(AF32="","",AF32-ROW()/10^10)

Select AH32:AJ32, fill down to AJ300

The above will yield the desired results
all neatly bunched at the top:

25 4
14 2
11 3
11 5
11 6

--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"bill gras" wrote in message
...
i need to look up columns and match a number eg:
AH32 (25) match it in column AF(25) and return the result from column

AG(4)
the result i get is 10 where it should be 4, i tried defferent ways but no
luck
i can not use VLOOKUP because i have the same numbers at times and need
multiple hits
AF AG AH result
32 blank 1 25 4
33 blank 2 14 2
34 14 2 11 3
35 blank 2 11 5
36 blank 3 11 6
37 11 3
38 blank 4
39 25 4
40 blank 5
41 blank 5
42 11 5
43 11 6
44 blank 6
and so on down to 300 rows
my array formula is :
{=INDEX(AG32:AG300,SMALL(IF(AF32:AF300=AH32,ROW(AF 32:AF300)),ROW(1:1)))}
coppied down to 5 rows as 1 only need 5 results

can some one please help ?

greatly appreciated

bill gras
--
bill gras





  #6   Report Post  
bill gras
 
Posts: n/a
Default

Hi Max,RagDyer,Domenic
Thank You for your imput and it certainly help make my life easier
thank again !
--
bill gras


"Max" wrote:

One way to drive it out in cols AH and AI using non-array formulas
(requires just one tie-breaker column in say, col AJ)

Put in AH32:

=IF(ISERROR(LARGE($AJ$32:$AJ$300,ROWS($A$1:A1)))," ",
INDEX(AF$32:AF$300,
MATCH(LARGE($AJ$32:$AJ$300,ROWS($A$1:A1)),$AJ$32:$ AJ$300,0)))

Copy AH32 across to AI32

Put in AJ32: =IF(AF32="","",AF32-ROW()/10^10)

Select AH32:AJ32, fill down to AJ300

The above will yield the desired results
all neatly bunched at the top:

25 4
14 2
11 3
11 5
11 6

--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"bill gras" wrote in message
...
i need to look up columns and match a number eg:
AH32 (25) match it in column AF(25) and return the result from column

AG(4)
the result i get is 10 where it should be 4, i tried defferent ways but no
luck
i can not use VLOOKUP because i have the same numbers at times and need
multiple hits
AF AG AH result
32 blank 1 25 4
33 blank 2 14 2
34 14 2 11 3
35 blank 2 11 5
36 blank 3 11 6
37 11 3
38 blank 4
39 25 4
40 blank 5
41 blank 5
42 11 5
43 11 6
44 blank 6
and so on down to 300 rows
my array formula is :
{=INDEX(AG32:AG300,SMALL(IF(AF32:AF300=AH32,ROW(AF 32:AF300)),ROW(1:1)))}
coppied down to 5 rows as 1 only need 5 results

can some one please help ?

greatly appreciated

bill gras
--
bill gras




  #7   Report Post  
Max
 
Posts: n/a
Default

You're welcome, Bill !
Thanks for the feedback ..
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"bill gras" wrote in message
...
Hi Max,RagDyer,Domenic
Thank You for your imput and it certainly help make my life easier
thank again !
--
bill gras



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
HELP !!! I have a ARRAY Formula HELP !!! flapokey Excel Discussion (Misc queries) 5 September 14th 05 03:37 AM
Editing Array Formula [email protected] Excel Worksheet Functions 7 August 28th 05 06:46 AM
Strange Formating problem with text and formula in same cell caliskier Excel Worksheet Functions 4 August 4th 05 01:49 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
What instead of an array formula part 2 Reg Besseling Excel Discussion (Misc queries) 2 December 10th 04 07:35 AM


All times are GMT +1. The time now is 10:39 PM.

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

About Us

"It's about Microsoft Excel"