Label All Fields Under a Header

seguin85

Active Member
Joined
Mar 17, 2015
Messages
278
Office Version
  1. 365
Platform
  1. Windows
Hi, I am extracting data from a Microsoft Project file into Excel and need to write a formula to grab some data. It has a header called "Build" and then another header called "System Build". I want all the rows in between those to be labelled "Build".
ex.

ABCD
1NameStartEndFormula
2Station 55/5/196/5/19
3Build
4Station 65/5/196/5/19Build
5Station 75/9/195/12/19Build
6System Build
7Station 66/6/197/1/19

<tbody>
</tbody>

I only want column D to have labels between Build and System Build, everything else should be blank.

Thanks
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
How about
=IF(AND(COUNTIF($A$1:$A1,"Build")=1,COUNTIF($A$2:$A2,"System Build")=0),"Build","")
 
Upvote 0
How about
=IF(AND(COUNTIF($A$1:$A1,"Build")=1,COUNTIF($A$2:$A2,"System Build")=0),"Build","")

I had to modify it a little to accommodate this happening more than 1x in the column, but the idea helped me out a lot!
=IF(COUNTIF($A$1:$A1,"Build")>COUNTIF($A$2:$A2,"System Build"),"Build","")

Thanks!
 
Upvote 0
Glad you sorted it & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,303
Members
449,078
Latest member
nonnakkong

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