Cleaning up a database report

Gareth Brown

Board Regular
Joined
Jul 29, 2002
Messages
52
Hi all, boring formatting problem (but please don't let that put you off!!)

Name = N (Name1 = N1 etc.)
Blank = B
Task = T (Task1 = T1 etc.)
Data associated with Task = D

The report spits out

N1,B,B,B, etc
B,T1,D,D, etc.
B,T2,D,D, etc.
N2,B,B,B,
B,T3,D,D,
N3,B,B,B,
B,T4,D,D,
B,T5,D,D,
B,T6,D,D,

and so on..


(can have many tasks per name, not just two)

To help lookup and future use, does anyone know of a quick fix to get it to:

N1,T1,D,D,
N1,T2,D,D,
N2,T3,D,D,

and so on?

Thanks in advance
 

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.

DonkeyOte

MrExcel MVP
Joined
Sep 6, 2002
Messages
9,123
can't think of a complete way to do straight off but going to find and then deleting all "B," in the range would make your life a lot easier...as then you simply need to pick up 4 characters to pick up your string each time.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,545
Messages
5,832,387
Members
430,129
Latest member
EmilyCrandall

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
Top