Please help with worksheet formula

Status
Not open for further replies.

Andries

Board Regular
Joined
Feb 3, 2011
Messages
127
Hi All

I need a code or function that must look at table 1 and return the SUBJECT CODE to table 2 but when there is a "O/B" status in column C then it should carry on in the green block for argument sake.

In the first table at cell B9 you find a subject with an O/B status...the code or function should then skip cells B9-12 because it is still part of the "81"row range and continue in cells B13 as shown in table 2.

This is the function that is currently used but it is not doing what I want

"=IF(AND(ROWS(F$3:F3)<11,C3="O/B"),"",B3)"

These tables are only snippets of a big file

Thank you in advance

Dries



Excel Workbook
ABCDEFG
1BLOCK/ROW/SEATSUBJECT CODESTATUS*BLOCK/ROW/SEATSUBJECT CODESTATUS
2w2-81-1A**w2-81-1A*
3w2-81-2B**w2-81-2B*
4w2-81-3C**w2-81-3C*
5w2-81-4D**w2-81-4D*
6w2-81-5E**w2-81-5E*
7w2-81-6F**w2-81-6F*
8w2-81-7GO/B*w2-81-7**
9w2-81-8HO/B*w2-81-8**
10w2-81-9IO/B*w2-81-9**
11w2-81-10JO/B*w2-81-10**
12w2-82-1KO/B*w2-82-1K*
13w2-82-2LO/B*w2-82-2L*
14w2-82-3MO/B*w2-82-3M*
15w2-82-4NO/B*w2-82-4N*
16w2-82-5OO/B*w2-82-5O*
17w2-82-6PO/B*w2-82-6P*
18w2-82-7QO/B*w2-82-7Q*
19w2-82-8RO/B*w2-82-8R*
20w2-82-9SO/B*w2-82-9S*
21w2-82-10TO/B*w2-82-10T*
22w2-83-1U**w2-83-1U*
23w2-83-2V**w2-83-2V*
24w2-83-3W**w2-83-3W*
25w2-83-4X**w2-83-4X*
Sheet1
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Status
Not open for further replies.

Forum statistics

Threads
1,224,506
Messages
6,179,159
Members
452,892
Latest member
yadavagiri

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