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
 

Some videos you may like

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,216
Messages
5,594,886
Members
413,947
Latest member
gizmolucy

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