Formula for displaying room assignments

CTyson

New Member
Joined
Dec 2, 2015
Messages
4
This is somewhat what I have.

A The following people will be in Rm 5
B John Smith
C Michael Townsend
D The following people will be in Rm 6
E Jennifer Tucker
F Samuel Rodriguez
G The following people will be in Rm 7
H Allison Taylor
J Jonathan Thompson

This goes on for about 25 rooms. If I insert a cell before the names, is there a formula that will check which rooms are being specified and display the room number the people are assigned to?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

KOKOSEK

Active Member
Joined
Apr 8, 2019
Messages
259
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Put some sample data into excel, describe expected results and attached this file, please.
 

CTyson

New Member
Joined
Dec 2, 2015
Messages
4
Room
Information
Date: 04/18/2019: Rm-5
Rm-5John Smith
Rm-5Michael Townsend
Date: 04/18/2019: Rm-6
Rm-6Jennifer Tucker
Rm-6Samuel Rodriguez
Date: 04/18/2019: Rm-7
Rm-7Allison Taylor
Rm-7Jonathan Thompson

<colgroup><col><col></colgroup><tbody>
</tbody>
I'm creating a pivot table and wanting to add the Room column to show me which Room the people will be in. I'm looking for a formula that will search the preceding Room number and assign it accordingly.

<colgroup><col><col></colgroup><tbody>
</tbody>
 

Watch MrExcel Video

Forum statistics

Threads
1,130,439
Messages
5,642,121
Members
417,257
Latest member
Sarahbw

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
Top