Need help applying an INDEX formula

Unexist

New Member
Joined
Jan 31, 2018
Messages
1
I would like to transform the table below:

[TABLE="width: 358"]
<colgroup><col span="3"><col></colgroup><tbody>[TR]
[TD]Events[/TD]
[TD]Location[/TD]
[TD]coach[/TD]
[TD]cleaning[/TD]
[/TR]
[TR]
[TD]1-jan[/TD]
[TD]A[/TD]
[TD]John[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2-jan[/TD]
[TD]B[/TD]
[TD]Mike[/TD]
[TD]Suzan[/TD]
[/TR]
[TR]
[TD]2-jan[/TD]
[TD]C[/TD]
[TD]Nick[/TD]
[TD]Jenny[/TD]
[/TR]
[TR]
[TD]3-jan[/TD]
[TD]D[/TD]
[TD]Ralph[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]4-jan[/TD]
[TD]E[/TD]
[TD]Nick[/TD]
[TD]Mike[/TD]
[/TR]
[TR]
[TD]4-jan[/TD]
[TD]F[/TD]
[TD]John[/TD]
[TD]Suzan[/TD]
[/TR]
</tbody>[/TABLE]


To the following table:



[TABLE="width: 450"]
<colgroup><col><col><col span="5"></colgroup><tbody>[TR]
[TD][/TD]
[TD]John[/TD]
[TD]Mike[/TD]
[TD]Nick[/TD]
[TD]Jenny[/TD]
[TD]Ralph[/TD]
[TD]Suzan[/TD]
[/TR]
[TR]
[TD]1-jan[/TD]
[TD]x[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2-jan[/TD]
[TD][/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD][/TD]
[TD]x[/TD]
[/TR]
[TR]
[TD]3-jan[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4-jan[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD][/TD]
[TD][/TD]
[TD]x[/TD]
[/TR]
</tbody>[/TABLE]




So in summary: I want to look up the date and see who is scheduled for duty on that day. There can be multiple events on one day. And there are multiple columns (3) for different employee-roles/functions.

I've implemented the following VLOOKUP formula only to realize it stops counting after the first LOOKUPVALUE was found:

=IFERROR(IF(VLOOKUP($A3;Planning!$G:$I;3;FALSE)=B$1;"x";"")&IF(VLOOKUP($A3;Planning!$G:$J;4;FALSE)=B$1;"x";"");"")

Where A3 = date.

Hope this makes sense...
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
try this


Excel 2013/2016
ABCDEFG
1EventsLocationcoachcleaning
201-JanAJohn
302-JanBMikeSuzan
402-JanCNickJenny
503-JanDRalph
604-JanENickMike
704-JanFJohnSuzan
8
9
10
11To the following table:
12
13
14JohnMikeNickJennyRalphSuzan
1501-Janx
1602-Janxxxx
1703-Janx
1804-Janxxxx
17
Cell Formulas
RangeFormula
B15=IF(SUMPRODUCT(ISNUMBER(SEARCH($A15,$A$2:$A$7)) * ISNUMBER(SEARCH(B$14,$C$2:$D$7)))>0,"x","")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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