Help Needed Please Formula

asalman0785

New Member
Joined
Jun 19, 2022
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hello everyone! Happy Father's Day! Thank you in advance for any help provided.

I've attached a snip example of my problem. I'm trying to build a labor headcount schedule for shifts. On the right (starting on column Y thru AF) i created the actual cohort schedule by day of week (sun-sat).
For example, all cohorts starting with DA will work Sun, Mon, Tue, and Wed which I signified by having an X. These people will be off schedule on Thu, Fri, and Sat which is signified by a blank.

For example, the cohort DA5-0630 has 1 person (column F) so that one person will be working Sun-Wed. How do i get that number 1 across Sun-Wed?

On row 7 i've included the desired answer. For example, I'd like to place the number 1 (because that cohort has 1 person) on column/cell J6-M6.

Hope this helps highlight my problem
Thx
 

Attachments

  • Problem Excel.PNG
    Problem Excel.PNG
    14 KB · Views: 10

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Try this:
MrExcel_20220619.xlsx
ABCDEFGHIJKXYZAAABACADAE
1FCCohortHeadcountSunMonTueWedThuFriSatCohortSunMonTueWedThuFriSat
2ABE2DA5-063011111DAXXXX
3ABE2DA7-63066666DBXXXX
4ABE2DB1-06305 5555DCXXXX
5ABE2DC1-07308 8888NA
6DN
7RT
8DF
9DL
10NL
11PT
Sheet1
Cell Formulas
RangeFormula
D2:J5D2=IF(INDEX($Y$2:$AE$11,MATCH(LEFT($B2,2),$X$2:$X$11,0),)<>"",$C2,"")
Dynamic array formulas.
 
Upvote 0
Thanks Krice! Is this possible with Excel 2016 version? I tried control+shift+enter and it didn't work or just gave me data every day of the week. Thankx
 
Upvote 0
Try this version, which eliminates the array and performs both a row and column match. Drag the formula throughout your entire table:
MrExcel_20220619.xlsx
ABCDEFGHIJKXYZAAABACADAE
1FCCohortHeadcountSunMonTueWedThuFriSatCohortSunMonTueWedThuFriSat
2ABE2DA5-063011111   DAXXXX
3ABE2DA7-63066666   DBXXXX
4ABE2DB1-06305   5555DCXXXX
5ABE2DC1-07308 88 88 NA
6DN
7RT
8DF
9DL
10NL
11PT
Sheet1
Cell Formulas
RangeFormula
D2:J5D2=IF(INDEX($Y$2:$AE$11,MATCH(LEFT($B2,2),$X$2:$X$11,0),MATCH(D$1,$Y$1:$AE$1,0))<>"",$C2,"")
 
Upvote 0
That's good to hear. I'm happy to help.
 
Upvote 0

Forum statistics

Threads
1,215,772
Messages
6,126,811
Members
449,339
Latest member
Cap N

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