need a formula

Andries

Board Regular
Joined
Feb 3, 2011
Messages
127
Hi
I need a formula that can separate the "closed" from the "open" if it is a "open" it must start in n new set as one can see in column E


Excel Workbook
ABCDE
1SEAT NRSUBJECT*SEAT NRSUBJECT
2A1AAD101C - closed*A1AAD101C - closed
3A2AAD101C - closed*A2AAD101C - closed
4A3AAD101C - closed*A3AAD101C - closed
5A4MEQ211T - closed*A4MEQ211T - closed
6A5MEQ211T - closed*A5MEQ211T - closed
7A6MEQ211T - closed*A6MEQ211T - closed
8B1MEQ211T - closed*B1MEQ211T - closed
9B2MEQ211T - closed*B2MEQ211T - closed
10B3MEQ211T - closed*B3MEQ211T - closed
11B4DLM501T- open*B4*
12B5DLM501T- open*B5*
13B6DLM501T- open*B6*
14B7DLM501T- open*B7*
15B8DLM501T- open*B8*
16B9DLM501T- open*B9*
17C1DLM501T- open*C1DLM501T- open
18C2DLM501T- open*C2DLM501T- open
19C3DLM501T- open*C3DLM501T- open
20C4DLM501T- open*C4DLM501T- open
21C5DLM501T- open*C5DLM501T- open
22C6DLM501T- open*C6DLM501T- open
23C7**C7DLM501T- open
24C8**C8DLM501T- open
25C9**C9DLM501T- open
26C10**C10DLM501T- open
27C11**C11DLM501T- open
28C12**C12DLM501T- open
29C13**C13*
30C14**C14*
31C15**C15*
Sheet11
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Sorry, I don't get what you are trying to do. To identify which are closed or open, you could use =right([your text string],4)
 
Upvote 0
Hi

Ok let me explain it again. I have 2(two) Tables as you can see below. the first table is how it currently is...which is not the way I want it. I have made Table 2 to show how it should look. When you look at the SEAT NR column you will note that each block (A...B..C..D) does not have the same number of seats...I don't know if this will be an issue. What the formula should do is to look in column C if there is any "O/B"'s and if so it should start in a new "block" e.g. B-1.

If it helps in any way please note that data have been sorted so that all "O/B" types are together so they are not scattered all over.

thx



Excel Workbook
ABCDEFG
3TABLE 1*TABLE 2
4SEAT NRSUBJECTTYPE*SEAT NRSUBJECTTYPE
5A-1A**A-1A*
6A-2B**A-2B*
7A-3C**A-3C*
8A-4D**A-4D*
9A-5E**A-5E*
10A-6F**A-6F*
11A-7GO/B*A-7**
12A-8HO/B*A-8**
13A-9IO/B*A-9**
14B-1JO/B*B-1GO/B
15B-2KO/B*B-2HO/B
16B-3LO/B*B-3IO/B
17B-4MO/B*B-4JO/B
18B-5NO/B*B-5KO/B
19B-6OO/B*B-6LO/B
20B-7PO/B*B-7MO/B
21B-8QO/B*B-8NO/B
22B-9RO/B*B-9OO/B
23B-10SO/B*B-10PO/B
24B-11TO/B*B-11QO/B
25B-12UO/B*B-12RO/B
26C-1VO/B*C-1SO/B
27C-2WO/B*C-2TO/B
28C-3***C-3UO/B
29C-4***C-4VO/B
30C-5***C-5WO/B
31D-1***D-1**
Sheet8
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,691
Members
452,938
Latest member
babeneker

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