Dynamic Title Header

m3n4c3d

New Member
Joined
May 16, 2018
Messages
1
Hi,


I want to be able to search a policy number and get the appropriate info in the same sheet. I want my header to adapt to the type of information.


Let say my header is on A1 through Z1. This sheet is all my data set.

A2 and below are my policy numbers, B2 and bellow are my insurance type of policies which will populate or not the other collumns.

policy #typecoverageFranchiseCancellationetc.
12345carN/A1000N/A
21458houseyes1001000

<tbody>
</tbody>



in another sheet I want to build a search cell so my policy number is extracted with all the relevant info. I would like the Title header linked to all the N/A cell to not be displayed.

if policy #12345 is typed:

Policy #TypeFranchise
12345=vlookup(A2(...=vlookup(A2;...

<tbody>
</tbody>


if policy # 21458 is typed my header title will hide based on if a cell is N/A or not
Policy #TypeCoverageFranchiseCancellation
21458=v(lokkup(A2(...vlookup...vlookup...vlookup...

<tbody>
</tbody>


I dont have difficulty for looking up through data but I wonder how I can put my title header more adaptive based on criteria.
 

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.
A
B
C
D
E
F
1
policy #policy #policy #FranchiseCancellationetc.
2
12345​
car
#N/A​
1000​
#N/A​
3
21458​
houseyes
100​
1000​
4
5
policy #policy #Franchise
6
12345​
car
1000​
Sheet: Sheet52

Array formula in cell B5:
=IFERROR(INDEX($B$1:$E$1,SMALL(IF(NOT(ISNA(INDEX($B$2:$E$3,MATCH($A$6,$A$2:$A$3,0),0))),MATCH(COLUMN($B$2:$E$3),COLUMN($B$2:$E$3)),""),COLUMNS($A$1:A1))),"")

Copy cell B5 and paste to cells to the right as far as needed.

Formula in cell B6:
=INDEX($B$2:$E$3,MATCH($A6,$A$2:$A$3,0),MATCH(B$5,$B$1:$E$1,0))

Copy cell B6 and paste to cells to the right as far as needed.
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,588
Members
449,089
Latest member
Motoracer88

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