Select between two bold cells

Bench

Board Regular
Joined
Aug 27, 2009
Messages
134
I'm trying to automate a report i currently create from a pivot table and then "spruce" up manually. Been working on it today and have easily managed to get all the data from my pivot table. The problem lies in the formatting.

For each region i do a breakdown by surveyor of their jobs per month by area, postcode and product on three seperate reports. So you get something like this:
Ben Smith 25
Beeston 10
Nottingham 11
Carlton 4
John Regis 34
Derby 10
Alvaston 3
Belper 2
Allestree 8
Chaddesden 5
Peartree 6
Next Surveyor etc
i then do data bars on these broken down figures ie. Beeston, Nottingham and Carlton for Ben Smith, Derby, Alvaston etc for John Regis.

What i'm looking for is how to express an xldown command that will go from (assume Ben Smith is A1, 25 is B1) A2 to the next cell formatted bold, offset -1 (so in this case B2:B5) i can then add in the conditional formatting vba to add the data bars in which i know how to do.

So literally find and select the next "non bold" cell, then select from this cell down to the cell before the next "bold" formatted cell.

Your help would be greatly appreciated

Thanks

Ben
 
Last edited:

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,215,110
Messages
6,123,138
Members
449,098
Latest member
Doanvanhieu

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