Formula Reduction

rilzniak

Active Member
Joined
Jul 20, 2012
Messages
288
I have another three formulas I'm hoping someone can review and provide feedback on:

1) Array formula: =IF($A3="","",INDEX(Inputs!$B:$S,SMALL(IF(Inputs!$B:$B=$A$1,ROW(Inputs!$B:$B)),ROW(1:1)),COLUMN(C1)))

2) Array formula: =IFERROR(INDEX(Inputs!$A:$S,SMALL(IF(Inputs!$A:$A=$A$1,ROW(Inputs!$A:$A)),ROW(1:1)),COLUMN(B1)),"")

3) =IF($A3="","",INDIRECT("'Inputs'!"&ADDRESS(MATCH($A$1,Inputs!$A:$A,0),COLUMN(C1),4)))

Suggestions on how to make any of these better?

Ryan
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
I have another three formulas I'm hoping someone can review and provide feedback on:

1) Array formula: =IF($A3="","",INDEX(Inputs!$B:$S,SMALL(IF(Inputs!$B:$B=$A$1,ROW(Inputs!$B:$B)),ROW(1:1)),COLUMN(C1)))

2) Array formula: =IFERROR(INDEX(Inputs!$A:$S,SMALL(IF(Inputs!$A:$A=$A$1,ROW(Inputs!$A:$A)),ROW(1:1)),COLUMN(B1)),"")

3) =IF($A3="","",INDIRECT("'Inputs'!"&ADDRESS(MATCH($A$1,Inputs!$A:$A,0),COLUMN(C1),4)))

Suggestions on how to make any of these better?

Ryan

In which cells do you want to enter these formulas?
 
Upvote 0
1) B3:B44

2) A3:A32

3) C3:C32

I should point out that #1 is on a different worksheet than #2 and #3.
 
Upvote 0
1) B3:B44

2) A3:A32

3) C3:C32

I should point out that #1 is on a different worksheet than #2 and #3.

Try to avoid whole column references and robustify the formulas against row/column insertions.

1. This is apparently copied down and across with the first instance in B3...
B3, control+shift+enter (CSE) and copy down, and across:
Rich (BB code):
=IF($A3="","",INDEX(Inputs!C$2:C$400,
  SMALL(IF(Inputs!$B$2:$B$400=$A$1,
  ROW(Inputs!$B$2:$B$400)-ROW(Inputs!$B$2)+1),
  ROWS(B$3:B3))))

2. A3, CSE and copy down and across:
Rich (BB code):
=IFERROR(INDEX(Inputs!B$2:B$400,
  SMALL(IF(Inputs!$A$2:$A$400=$A$1,
  ROW(Inputs!$A$2:$A$400)-ROW(Inputs!$A$2)+1),
  ROWS(A$3:A3))),"")

Care to explain how your 3rd formula is supposed to work in C3:C32?
 
Upvote 0
Try to avoid whole column references and robustify the formulas against row/column insertions.
Care to explain how your 3rd formula is supposed to work in C3:C32?

Thanks!

Hahaha, I noticed after it finished calculating that it didn't work. Here's what I came up with to replace it:

=IFERROR(INDEX(Inputs!$A$1:$S$2000,SMALL(IF(Inputs!$A$1:$A$2000=$A$1,ROW(Inputs!$A$1:$A$2000)),ROW(1:1)),COLUMN(C1)),"") with CSE.

Do you think that's a good formula? It accomplishes what I want, but I'm wondering how efficient it is.
 
Upvote 0
Thanks!

Hahaha, I noticed after it finished calculating that it didn't work. Here's what I came up with to replace it:

=IFERROR(INDEX(Inputs!$A$1:$S$2000,SMALL(IF(Inputs!$A$1:$A$2000=$A$1,ROW(Inputs!$A$1:$A$2000)),ROW(1:1)),COLUMN(C1)),"") with CSE.

Do you think that's a good formula? It accomplishes what I want, but I'm wondering how efficient it is.

Add a few rows in front of the formula row...
 
Upvote 0

Forum statistics

Threads
1,214,659
Messages
6,120,786
Members
448,993
Latest member
Seri

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