Auto population issues!!!

DHOFERER

New Member
Joined
Nov 5, 2016
Messages
1
Hi all,

I am trying to create a formula that will automatically pull someone's name from a list depending on what code is listed under a specific day. The catch is the formula result has to be consider the day of the week and the time of day (AM or PM) that is selected in another cell.

For example:

If "Danielle" is listed in cell A2 on Tab 1, and below "Wednesday" (E4) the code "D1" appears in cell E5. On a separate page I would like for "Danielle" to appear in the cell next to where "D1" appears. This cell on Tab 2 is dependent on another cell that can toggle between "AM" and "PM" (AM = "L1", PM = "D1"). Lastly, the day of the week listed is determined by the function =TODAY().

TAB 1

[TABLE="class: grid, width: 1000, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]MONDAY[/TD]
[TD]TUESDAY[/TD]
[TD]WEDNESDAY[/TD]
[TD]THURSDAY[/TD]
[TD]FRIDAY[/TD]
[TD]SATURDAY[/TD]
[TD]SUNDAY[/TD]
[/TR]
[TR]
[TD]DANIELLE[/TD]
[TD]OFF[/TD]
[TD]OFF[/TD]
[TD]L1[/TD]
[TD]OFF[/TD]
[TD]OFF[/TD]
[TD]OFF[/TD]
[TD]OFF[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]OFF[/TD]
[TD]D1[/TD]
[TD]D1[/TD]
[TD]D3[/TD]
[TD]D4[/TD]
[TD]D2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PAUL[/TD]
[TD]L1
[/TD]
[TD]OFF[/TD]
[TD]OFF[/TD]
[TD]OFF[/TD]
[TD]OFF[/TD]
[TD]OFF[/TD]
[TD]OFF[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]D2[/TD]
[TD]D3[/TD]
[TD]D2[/TD]
[TD]D1[/TD]
[TD]D4[/TD]
[TD]OFF[/TD]
[TD]OFF[/TD]
[/TR]
</tbody>[/TABLE]


TAB 2 IF A2 = PM

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]WEDNESDAY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PM[/TD]
[TD]SERVER[/TD]
[/TR]
[TR]
[TD]D1
[/TD]
[TD]DANIELLE[/TD]
[/TR]
[TR]
[TD]D2[/TD]
[TD]PAUL[/TD]
[/TR]
</tbody>[/TABLE]

TAB 2 IF A2 = AM

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]WEDNESDAY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AM[/TD]
[TD]SERVER[/TD]
[/TR]
[TR]
[TD]L1[/TD]
[TD]DANIELLE[/TD]
[/TR]
[TR]
[TD]L2[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


I am confident a formula exists outside of writing the longest nested IF function known to man. Maybe something to do with using HLOOKUP and VLOOKUP in combination with each other? CAN SOMEONE PLEASE HELP ME!!!

Thanks!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Welcome to the MrExcel board!

I think a bit much is still unknown but see if this is headed in the right direction.

IF all of these things happen ..
.. the day of the week listed is determined by the function =TODAY().
1. The above refers to cell A1 of TAB 2 and returns a text value [eg the formula might be =UPPER(TEXT(TODAY(),"dddd")) ]


2. The D1, L1, D3 etc codes can appear at most once in any column on TAB 1

.. then you could try this in cell B3, copied down.



Excel 2010 32 bit
AB
1WEDNESDAY
2PMSERVER
3D1DANIELLE
4D2PAUL
TAB 2
Cell Formulas
RangeFormula
B3=IFERROR(LOOKUP("ZZ",'TAB 1'!A$1:INDEX('TAB 1'!A$1:A$10,MATCH(A3,INDEX('TAB 1'!B$1:H$9,0,MATCH(A$1,'TAB 1'!B$1:H$1,0)),0))),"")




Excel 2010 32 bit
ABCDEFGH
1MONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAYSATURDAYSUNDAY
2DANIELLEOFFOFFL1OFFOFFOFFOFF
3OFFD1D1D3D4D2
4PAULL1OFFOFFOFFOFFOFFOFF
5D2D3D2D1D4OFFOFF
TAB 1
 
Upvote 0

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

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