Automation in Google Sheets

hj121479

New Member
Joined
Jan 18, 2023
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm trying to build automation for below -

1674072389162.png


If Name A requested a vacation from 1/20/2023 to 1/24/2023 (C2 and D2), in the below chart, I am hoping to automatically match the dates and "Vacation" wording from Column E2.

Thank you for your help in advance.
 
Last edited by a moderator:

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Try

Book2
ABCDEFGHIJKLM
1Start DateEnd DateReason
2Name A1/20/20231/24/2023Vacation
3Name B1/25/20231/29/2023Off
4Name C1/21/20231/21/2023Vacation
5
6FriSatSunMonTueWedThuFriSatSunMon
71/20/20231/21/20231/22/20231/23/20231/24/20231/25/20231/26/20231/27/20231/28/20231/29/2023 
8Name AVacationVacationVacationVacationVacation      
9Name B     OffOffOffOffOff 
10Name C Vacation         
11
12
13
14
15
16
Sheet3 (2)
Cell Formulas
RangeFormula
C7C7=MIN($D$2:$D$4)
D7:M7D7=IF(C7<MAX($E$2:$E$4),C7+1,"")
C8:M10C8=IF(AND(C$7<=INDEX($E$2:$E$4,MATCH($B8,$C$2:$C$4,0)),C$7>=INDEX($D$2:$D$4,MATCH($B8,$C$2:$C$4,0))),INDEX($F$2:$F$4,MATCH($B8,$C$2:$C$4,0)),"")
Thank you, this is helpful. Somehow, I'm having one more issue -

I see Employee J's dates are reflecting correctly but nothing is showing for V and E (I used the same formula for J).

Below are the formula I used -
J: =IF(AND(AR$8<=INDEX('Form Responses 1'!$D:$D,MATCH($B122,'Form Responses 1'!$B:$B,0)),AR$8>=INDEX('Form Responses 1'!$C:$C,MATCH($B122,'Form Responses 1'!$B:$B,0))),INDEX('Form Responses 1'!$E:$E,MATCH($B122,'Form Responses 1'!$B:$B,0)),"")

V: =IF(AND(AR$8<=INDEX('Form Responses 1'!$D:$D,MATCH($B165,'Form Responses 1'!$B:$B,0)),AR$8>=INDEX('Form Responses 1'!$C:$C,MATCH($B165,'Form Responses 1'!$B:$B,0))),INDEX('Form Responses 1'!$E:$E,MATCH($B165,'Form Responses 1'!$B:$B,0)),"")

E: =IF(AND(AR$8<=INDEX('Form Responses 1'!$D:$D,MATCH($B238,'Form Responses 1'!$B:$B,0)),AR$8>=INDEX('Form Responses 1'!$C:$C,MATCH($B238,'Form Responses 1'!$B:$B,0))),INDEX('Form Responses 1'!$E:$E,MATCH($B238,'Form Responses 1'!$B:$B,0)),"")

1674147541394.png


1674147752164.png
 
Upvote 0
Look at here if you can adopt:

Please disregard my previous post.

If I have multiple dates in multiple rows, it's only picking up the first row. But I need to show all dates in multiple rows. Anyway I can fix this?

Thank you!
 
Upvote 0
Can you post some rows of your data using xl2bb.

1674150833516.png


1674150866381.png


Here are the multiple rows with different dates. Anyway I can pull those multiple rows/dates and mark them into the chart? Sorry, I'm not able to install xls2bb on my work computer.
 
Upvote 0

Forum statistics

Threads
1,223,943
Messages
6,175,552
Members
452,652
Latest member
eduedu

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