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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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.
 
Upvote 0

Forum statistics

Threads
1,215,842
Messages
6,127,230
Members
449,371
Latest member
strawberrish

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