Returning multiple value headers in one cell

VhanLab

New Member
Joined
Jul 10, 2023
Messages
8
Office Version
  1. 365
Platform
  1. Windows
1. I'm trying to return values from F1-L1 (Headers) to M2 as days of the week that has work schedule but i couldn't figure it out.
2. I want to create a pie chart which gives the percentage of agents that are on their days off, VL, SL, scheduled to work, on break, on lunch, etc.,
3. There are some agents that has more than 2 days off, how do I apply the IF function to it? I was only able to create for 2 days off.
4. It would be best too if there's a formula to transpose the data into 30 mins interval and count as to how many agents are scheduled (E7) for each interval.

I am a novice and badly need your assistance. Any help is greatly appreciated. Thank you!

Data Set
1689034127752.png


This is how I want it to look like
1.
1689034412327.png


2.
1689035024965.png


4.
4.
1689035786779.png
 

Attachments

  • 1689035180899.png
    1689035180899.png
    57.9 KB · Views: 2

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Welcome to the MrExcel board!

1. I'm trying to return values from F1-L1 (Headers) to M2 as days of the week that has work schedule but i couldn't figure it out.
For that part, try this.

23 07 11.xlsm
FGHIJKLM
1SundayMondayTuesdayWednesdayThursdayFridaySaturdayWork Days
2OFFOFFMon, Tue, Wed, Thu, Fri
3OFFOFFMon, Tue, Wed, Thu, Fri
4OFFOFFSun, Mon, Tue, Fri, Sat
5OFFOFFSun, Mon, Tue, Wed, Sat
6OFFOFFSun, Mon, Tue, Wed, Sat
7OFFOFFTue, Wed, Thu, Fri, Sat
8OFFOFFSun, Mon, Tue, Wed, Sat
Headers
Cell Formulas
RangeFormula
M2:M8M2=TEXTJOIN(", ",,FILTER(LEFT(F$1:L$1,3),F2:L2<>"OFF"))
 
Upvote 1
Upvote 1
Thank you so much! Both formulas worked for me. What if I want the value to return as the days they are off, which do I need to change in the formula for this to work?
 
Upvote 0
Just change the "not equals" (<>) near the end of my formula to "equals" (=)

23 07 11.xlsm
FGHIJKLM
1SundayMondayTuesdayWednesdayThursdayFridaySaturdayOff Days
2OFFOFFSun, Sat
3OFFOFFSun, Sat
4OFFOFFWed, Thu
5OFFOFFThu, Fri
6OFFOFFThu, Fri
7OFFOFFSun, Mon
8OFFOFFThu, Fri
Headers (2)
Cell Formulas
RangeFormula
M2:M8M2=TEXTJOIN(", ",,FILTER(LEFT(F$1:L$1,3),F2:L2="OFF"))
 
Upvote 0
You can change the "not equals" (<>) near the end of my formula to "equals" (=)

test.xlsx
FGHIJKLM
1SundayMondayTuesdayWednesdayThursdayFridaySaturdayWork Days
2OFFOFFSun, Sat
3OFFOFFSun, Sat
4OFFOFFWed, Thu
5OFFOFFThu, Fri
6OFFOFFThu, Fri
7OFFOFFSun, Mon
8OFFOFFThu, Fri
Sheet2
Cell Formulas
RangeFormula
M2:M8M2=TEXTJOIN(", ",,IF(F2:L2="OFF",LEFT(F$1:L$1,3),""))
 
Upvote 1
Solution

Forum statistics

Threads
1,215,093
Messages
6,123,067
Members
449,090
Latest member
fragment

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