Help - Print column header based on matching values in matrix

wesp15

New Member
Joined
Aug 18, 2016
Messages
5
Hello,

I'm a bit stumped here and any help would be much appreciated. I have a table populated by due dates corresponding to various columns with quality control names (i.e. Column A = Segmentation Due Date, A2 = 07/15/2020). I'm trying to create a summary sheet that indexes the table and then prints the column header for any cell where the date = Today. I have performed a similar function in the past to get a column value using the following formula but i'm getting tripped up this time because i'm looking across columns rather than down rows.

=IFERROR(INDEX(Email!C$2:$C$1000,SMALL(IF(Email!$F$2:$U$1000=$C$2,ROW(Email!$F$2:$F$1000)-ROW(Email!$F$2)+1),ROWS(Email!$F$2:Email!F3))),"")

Below is an image of the output i'm looking for. So columns A and B are indexing the column to capture the task ID and Campaign description and then i'd like to print the corresponding column header that dictates the required task. I'm sure there is a more elegant way to do this but i can't quite get there. Any help is much appreciated!

1593834759744.png
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,215,013
Messages
6,122,694
Members
449,092
Latest member
snoom82

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