Formula help (2-way lookup?) in Excel 2010

Mandyanne04

New Member
Joined
Apr 18, 2012
Messages
3
Hello!

Let me start by saying that compared to most of the people on this forum I am NOT very skilled at Excel. That being said, I know the basics, and learn quickly, so wanted to attempt a formula to help me with a database/spreadsheet issue, but am completely stuck. I have been watching hours of youtube videos and reading these boards and while I've gotten close, nothing has worked 100% accurately.

I am scheduling about 100 volunteers for different tasks during a work event.

On one sheet I have the tasks in the first column,like:
Monitor,
Tabling
Moving Assistant

and the time slots in the first row (1 per cell), like:
7am 8am 9am

I want to put in the volunteers where/when they will work.

Then, on the next sheet I want to have the VOLUNTEERS in the first column, like:

Joe
Jane
Bob

and the time slots in the first row, (like above) and have the spreadsheet automatically (with a formula) update what they are doing when.


Any help you can provide is welcome!
Thank you!!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi Mandyanne04,

Assuming that you do have the first part of the sheet that is the repartition of the people per task per hour:
HTML:
	6:00	7:00	8:00	9:00	10:00	11:00	12:00	13:00	14:00	15:00	16:00	17:00	18:00	19:00	20:00
Monitor	Phil	Mark	John	Mark	Bill						Steve				
Tabling	Mark	Mark		June					Phil		Mark				
Moving	Steve	Phil	Steve			Phil	John	Bill			Phil				
Buzzing			Phil	John		Steve				John	Bill				
Slashing					John					Steve	John			Bill	
Exceling		John									Mark

This is placed in A1.

Now in Let's say A16 of the same sheet (it could be elsewhere, different sheet, different workbook...):
HTML:
names	6:00	7:00	8:00	9:00	10:00	11:00	12:00	13:00	14:00	15:00	16:00	17:00	18:00	19:00	20:00
John		Exceling	Monitor	Buzzing	Slashing		Moving			Buzzing	Slashing				
Phil	Monitor	Moving	Buzzing			Moving			Tabling		Moving				
Bill					Monitor			Moving			Buzzing			Slashing	
Mark	Tabling	Monitor		Monitor							Tabling				
June				Tabling											
Steve	Moving		Moving			Buzzing				Slashing	Monitor

That is In A17 to A22 the names of the people (John, Phil, Bill, Mark, June and Steve)
in row 16 from Column B to Column P the same time as shown in the first table (B1 to P1)
and in B17:
Code:
=IF(ISNA(INDEX($A$2:$A$7,MATCH($A17,B$2:B$7,0))),"",INDEX($A$2:$A$7,MATCH($A17,B$2:B$7,0)))

Copy / paste to all other cells till P22.

Is this close to what you wanted?
 
Upvote 0
Hi,

As far as I understand you, below is what you enter manually, above is what you want to have computed automatically. The formula from B2 should be copied to fill the rest of the table.

Best,

J.Ty.
Beware: My Excel uses ";" in place of ",". Exchange it before using formulas.

Excel Workbook
ABCD
18am9am10am
2JoeMonitorTablingMoving A.
3JaneMonitorTabling
4BobMoving A.Moving A.Monitor
5HelenTabling
6
7
88am9am10am
9MonitorJoeJaneBob
10TablingHelenJoeJane
11Moving A.BobBobJoe
Sheet2
 
Upvote 0
Thank you so very much cyrilbrd! The formula is perfect and will save me so much time - I really appreciate it!
 
Upvote 0
Glad it worked.

For your info J.Ty.'s formula is the same formula, however he used IFERROR and it is very good although it may not work with versions of excel prior to 2007. This will work with #DIV/0!, #N/A, #NAME?, #NULL!, #NUM!, #REF!, and #VALUE!.

The one I suggested only works for #N/A.

Cheers!.
 
Upvote 0

Forum statistics

Threads
1,215,628
Messages
6,125,900
Members
449,271
Latest member
bergy32204

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