convert Array Formula to Non-Array

hajiali

Well-known Member
Joined
Sep 8, 2018
Messages
624
Office Version
  1. 2016
Platform
  1. Windows
Hello All just trying to get the following array formula to a non-array

Code:
{=IFERROR(INDEX(TRADES!$D$2:$D$2000,MATCH(1,(TRADES!$A$2:$A$2000=B3)*(TRADES!$C$2:$C$2000=DATE($F$1,$N$1,$E$1)),0)),"")}

Thanks
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi Haijali,

Try
Code:
=IFERROR(INDEX(Trades!$D$2:$D$2000,AGGREGATE(15,6,(ROW(Trades!$A$2:$A$2000)-1)/((Trades!$A$2:$A$2000=B3)*(Trades!$C$2:$C$2000=DATE($F$1,$N$1,$E$1))),1)),"")
 
Upvote 0
Thank you so Much Toadstool much appreciate it.

can the below be done as well?

Code:
{=IFERROR(INDEX('SHIFT TRADES'!$E$2:$E$2001,SMALL(IF('SHIFT TRADES'!$C$2:$C$2001=DATE($J$1,$G$1,$H$1),ROW('SHIFT TRADES'!$E$2:$E$2001)-ROW('SHIFT TRADES'!$E$2)+1),ROWS('SHIFT TRADES'!$E$2:E2))),"")}
 
Upvote 0
The SMALL function of AGGREGATE should be available and is not an array formula, but I'm struggling to see what you are trying to do.

Please suply your sample data and results.
 
Upvote 0
Sheet "shift trades" ex

DATENAME
11/15/19BOB
11/16/19JIM
11/18/19KEVIN
11/15/19TOM
11/15/19SMITH
11/17/19BILL
11/15/19TIM
11/18/19WILL

<tbody>
</tbody>

In the sheet were this formula if the DATE($J$1,$G$1,$H$1) = 11/15/19 then the results will be as follows: "BOB, TOM,SMITH,TIM"

if DATE($J$1,$G$1,$H$1)=11/18/19 then results will be: "KEVIN, WILL" and so on. in other words pull all names in above table when the date to the right match whats in the cell. hope this clarifies.
 
Upvote 0
Ah! OK, this should work but if you've thousands of rows I'd replace the IFERROR (which is inefficient) with a check if the current row exceeds the COUNTIF of matches by dates.

Code:
=IFERROR(INDEX('SHIFT TRADES'!$E$2:$E$2001,AGGREGATE(15,6,(ROW('SHIFT TRADES'!$C$2:$C$2001)-1)/('SHIFT TRADES'!$C$2:$C$2001=DATE($J$1,$G$1,$H$1)),ROWS('SHIFT TRADES'!$C$2:$C2))),"")
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,031
Members
448,940
Latest member
mdusw

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