simple array formula

luvbite38

Active Member
Joined
Jun 25, 2008
Messages
368
Hi I am using the following array formula but it is resulting in False

{=IF(C20:V20=AE16,(C19:V19))}

what I am trying to do is, if any of the value in C20:V20 range = AE16, return me the value in the adjacent cell of that matched value.

any help plssss....
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi I am using the following array formula but it is resulting in False

{=IF(C20:V20=AE16,(C19:V19))}

what I am trying to do is, if any of the value in C20:V20 range = AE16, return me the value in the adjacent cell of that matched value.

any help plssss....
Where do you want the results to appear?
 
Upvote 0
Thx Mate
In a Cell A1
Will there be multiple matches? If so, you'll want each match in its own cell, right? If that's the case do you want the results starting in cell A1 and going across row 1 or do you want the results starting in cell A1 and going down column A?
 
Upvote 0
Hi I am using the following array formula but it is resulting in False

{=IF(C20:V20=AE16,(C19:V19))}

what I am trying to do is, if any of the value in C20:V20 range = AE16, return me the value in the adjacent cell of that matched value.

any help plssss....

Try...

A1:
Rich (BB code):
=COUNTIF(C20:V20,AE16)

A2, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IF(ROWS($A$2:A2)<=$A$1,INDEX($C$19:$V$19,
  SMALL(IF($C$20:$V$20=$AE$16,
   COLUMN($C$20:$V$20)-COLUMN($C$20)+1),ROWS($A$2:A2))),"")

If you are on Excel 2007 or later, we can skip the CountIf bit and starts directly in A1...

Rich (BB code):
=IFERROR(INDEX($C$19:$V$19,SMALL(IF($C$20:$V$20=$AE$16,
  COLUMN($C$20:$V$20)-COLUMN($C$20)+1),ROWS($A$1:A1))),"")
 
Upvote 0
Thanks once again,

I want them to go downwards.....pls....
Try this...

Enter this formula in B1. This will return the count of records that meet the condition.

=COUNTIF(C20:V20,AE16)

Enter this array formula** in A1 and copy down until you get blanks:

=IF(ROWS(A$1:A1)>B$1,"",INDEX($19:$19,SMALL(IF(C$20:V$20=AE$16,COLUMN(C$20:V$20)),ROWS(A$1:A1))))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0

Forum statistics

Threads
1,216,091
Messages
6,128,775
Members
449,468
Latest member
AGreen17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top