Making list of names under their matching Day of the week - help!

aftbrah

Board Regular
Joined
Sep 25, 2011
Messages
51
Hi,

this may seem simple but its only because I'm new so bear with me!

I have a list that looks sort of like this:

Last Name | First Name | Date | Service Day
Smith...........John....................Monday
Jones............Alex...................Thursday
etc..


This list goes on down for like 50 cells. Anyway, I'd like to make a new list based on Service Day so that I can organize the names under the service day so it should look something like this:

Monday | Tuesday | Wednesday | Thursday | etc..
Smith, John..............................Jones, Alex
etc...


I tried using the vlookup function but then it confused me when i also needed
to match the names with their respective service days. I tried looking through the youtube channel but just couldn't quite find what I was looking for. any suggestions?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
oh and im using Excel 2010 on windows 7
Let's assume your data is in the range A2:D8.

A10:G10 = Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday

Enter this array formula** in A11:

=IFERROR(INDEX($A$2:$A$8&", "&$B$2:$B$8,SMALL(IF($D$2:$D$8=A$10,ROW(A$2:A$8)),ROWS(A$11:A11))-ROW(A$2)+1),"")

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.

Copy across to G11 then down until you get a row full of blanks.
 
Upvote 0
Let's assume your data is in the range A2:D8.

A10:G10 = Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday

Enter this array formula** in A11:

=IFERROR(INDEX($A$2:$A$8&", "&$B$2:$B$8,SMALL(IF($D$2:$D$8=A$10,ROW(A$2:A$8)),ROWS(A$11:A11))-ROW(A$2)+1),"")

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.

Copy across to G11 then down until you get a row full of blanks.

OK I did just as you said but replaced the ranges with the ones I have:

A36:F36 (Monday to Saturday only)

and A2:F26 (range of data)

I copied it across to F36 and then down and as you said they're all blanks. so now I have blank cells under the service days columns.. what next?
 
Upvote 0
try this


Excel Workbook
BCDE
13Last nameFirst namedateService Day
14smithjohn01/01/2011Monday
15grayallan01/02/2011Monday
16malfordsam01/03/2011Tuesday
17calderjim01/04/2011Wednesday
18burrowssheila01/05/2011Tuesday
19mackisa01/06/2011Wednesday
20smithiesondebbie01/05/2011Wednesday
Sheet2


[/B]
Excel Workbook
BCD
24MondayTuesdayWednesday
25smith johnmalford samcalder jim
26gray allanburrows sheilamack isa
27smithieson debbie
28
29
30
Sheet
 
Upvote 0
OK I did just as you said but replaced the ranges with the ones I have:

A36:F36 (Monday to Saturday only)

and A2:F26 (range of data)

I copied it across to F36 and then down and as you said they're all blanks. so now I have blank cells under the service days columns.. what next?
Here's the same formula and method using defined named ranges.
  • Name: Last
  • Refers to: =Sheet1!$A$2:$A$26
  • Name: First
  • Refers to: Sheet1!$B$2:$B$26
  • Name: Day
  • Refers to: =Sheet1!$D$2:$D$26
Then, this array formula** entered in A37:

=IFERROR(INDEX(Last&", "&First,SMALL(IF(Day=A$36,ROW(Last)),ROWS(A$37:A37))-MIN(ROW(Last))+1),"")

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.

Copy across to F37 then down until you get a row full of blanks.

Here's a small sample file that demonstrates this.

zzzAftbrah.xlsx 11kb

http://cjoint.com/?AIzvleuCk5q
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,254
Members
452,900
Latest member
LisaGo

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