Give cell a value depending on value of other cell and list

Antained

New Member
Joined
Jan 5, 2017
Messages
4
Hello,

I have a list of shifts I did with the date. This list expands as I do more shifts.
AB
1ShiftDate
21date 1
32date 2
43date 3
54date 4
65date 5

<tbody>
</tbody>

I have another list of deliveries (on another sheet) with the shift given, I want to automatically get the date based on what shift it is.

DEF
1Delivery Shift of deliveryDate
211date 1 (automatic)
321date 1 (automatic)
432date 2 (automatic)
543date 3 (automatic)
653date 3 (automatic)
763date 3 (automatic)

<tbody>
</tbody>


I understand that I could do a long IF but as I keep getting more shifts and more dates, I would have to manually update that if all the time.
What should the formula be for the Date in the Delivery list be?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I found it! I needed the VLOOKUP function.
Learned it with a simple youtube tutorial.
Formula in my case was: =VLOOKUP(D1,Sheet1!A:B,2,FALSE)
 
Upvote 0

Forum statistics

Threads
1,215,519
Messages
6,125,294
Members
449,218
Latest member
Excel Master

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