Index-formula to ignore hidden (filtered out) cells

Maartenengels

New Member
Joined
Nov 9, 2015
Messages
24
Hi guys,

I have the following table with a few rows of data in it:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date submitted[/TD]
[TD]Driver[/TD]
[TD]Time spent with driver[/TD]
[TD]Leadership[/TD]
[TD]Communication[/TD]
[TD]Enthusiasm[/TD]
[TD]Commentary[/TD]
[TD]Environmental awareness[/TD]
[TD]Comments about driver[/TD]
[/TR]
[TR]
[TD]11/09/15[/TD]
[TD]Jan[/TD]
[TD]1-2 days[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]Good driver[/TD]
[/TR]
[TR]
[TD]10/11/15[/TD]
[TD]Cook[/TD]
[TD]3-10 days[/TD]
[TD]5[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]Bad driver[/TD]
[/TR]
</tbody>[/TABLE]

My formula makes sure that in cell A5, in which I can select the driver, the Index-formula only shows data rows of the driver that is selected from a drop-down list. However, I have added a date filter to the sheet and can't get the formula to ignore the hidden rows a.k.a. the filtered rows. Any ideas on how to do this?

The formula is as follows:

Code:
{=IFERROR(INDEX(SurveyData[[#All],[Submitted]:[Comments]],SMALL(IF(SurveyData[[#All],[Driver]]=$A$5,ROW(SurveyData[[#All],[Submitted]])),ROW(1:1)),1)," ")}
Cheers,
Maarten
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,223,721
Messages
6,174,096
Members
452,542
Latest member
Bricklin

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