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.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Start[/TD]
[TD]End[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Station 5[/TD]
[TD]5/5/19[/TD]
[TD]6/5/19[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Build[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Station 6[/TD]
[TD]5/5/19[/TD]
[TD]6/5/19[/TD]
[TD]Build[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Station 7[/TD]
[TD]5/9/19[/TD]
[TD]5/12/19[/TD]
[TD]Build[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]System Build[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Station 6[/TD]
[TD]6/6/19[/TD]
[TD]7/1/19[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

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

Thanks
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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