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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Put some sample data into excel, describe expected results and attached this file, please.
 
Upvote 0
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>
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,824
Members
449,050
Latest member
Bradel

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