lookup two variables question

lillian

Board Regular
Joined
Oct 12, 2005
Messages
72
Hi all,

I've restructured a data table I've been struggling with & now need to populate the original table from the newly formatted data. I've tried to use Index/Match and If/And formulas, but the results aren't good.

This is my first attempt to post with HTML maker, so... here goes:

Goal: check first name on both sheets (col a on monthly sheet, col e on data re-format), date on both sheets (row 3 on monthly sheet, col b on data re-format) & return start time/total hours (col I on data re-format) data to the monthly sheet, for each day in the month(E4:AI65 on the monthly sheet):

Monthly data sheet:
htmlmakersheets.xls
ABCDEFGH
1Tue333
2janSunMonTueWed
3First nameLast nameAssignmentRotation01020304
4Terese A.xxxxxxRotation#N/A00:00\38719#N/A#N/A#N/A
5Melinda A.xxxxxxRotation#N/A00:00\38718#N/A#N/A#N/A
6Sharol B.xxxxxxcharge00:00\38719#N/A#N/A#N/A
7Meg B.xxxxxxRotation#N/A00:00\38719#N/A#N/A#N/A
8Anne C.xxxxxxRotation#N/A00:00\38721#N/A#N/A#N/A
9Susan C.xxxxxxRotation#N/A00:00\38719#N/A#N/A#N/A
Jan monthly


more soon.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
trying again

maybe one screencap per post??

Data re-formatted:
htmlmakersheets.xls
ABCDEFGHIJKL
1MonthDateDoWS. RotNameSurNameAssignRotstart&tot.hrsStartTot.hrsEnd
2Jan01Sun3Melinda A.XXXXXRotationB08:30\88:30817:00
3Jan01Sun3Cheri C.XXXXXR07:30\107:301018:00
4Jan01Sun3Eileen C.XXXXXR07:30\107:301018:00
5Jan01Sun3Lisa E.XXXXXchargeLEAD06:30\106:301017:00
6Jan01Sun3Janine J.XXXXXRotationB08:30\98:30918:00
7Jan01Sun3Zebib S.XXXXXR07:30\107:301018:00
data
 
Upvote 0
Lookup name & date, return start time/total hours

Hi all,

I think I can better summarize my ask. In addition to the various formulas contained in the screencaps above, I need to be able to match the first name & date and return the start time/total hours.

When I try formulas that return text, I get an error #Value & when I try formulas that return values I get an error #Num. I'm stumped, but will try to rally!

Any input is welcome.
 
Upvote 0
In E4 copied down and across

=INDEX(data!$I$2:$I$100,MATCH(1,INDEX((data!$B$2:$B$100=E$3)*(data!$E$2:$E$100=$A4),0),0))

adjust ranges as necessary
 
Upvote 0
Ta Barry!

Thanks for the formula, it's working perfectly & I'm tweaking for range.

Thanks again!

edited to update message.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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