Add Data to a new column from a CEL to create a dataset.

Murds

New Member
Joined
Mar 12, 2019
Messages
3
Hello all,

I'm completely stumped with something on excel. I'd like to think of myself as a decently proficient user but I just cant get to the bottom of this. I've started a new job in a call centre and we have data that is annoyingly formatted. We have multiple customers and it is formatted a bit like this:

Customer 1Calls inbound
range 1
1
range 22
range 35
Customer 2
range 11
range 25
range 26

<tbody>
</tbody>

What I really want is to add the customer name to a new column so I can pivot the data. So is there a formula that will allow me to fill in a new column based on the customer name (there's over 80 customers).

Essentially so the data will look like this:

Customer 1Customer 1inbound calls
Customer 1Range 122
Customer 1Range 225
Customer 1Range 326
Customer 2Customer 2
Customer 2Range 122
Customer 2Range 225
Customer 2Range 326

<tbody>
</tbody>

Any help is greatly appreciated.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
How about


Excel 2013/2016
ABC
1Customer 1Customer 1Calls inbound
2Customer 1range 11
3Customer 1range 22
4Customer 1range 35
5Customer 2Customer 2
6Customer 2range 11
7Customer 2range 25
8Customer 2range 26
Run Macros
Cell Formulas
RangeFormula
A1=B1
A2=IF(LEFT(B2,8)="Customer",B2,A1)
 
Upvote 0
How about

Excel 2013/2016
ABC
1Customer 1Customer 1Calls inbound
2Customer 1range 11
3Customer 1range 22
4Customer 1range 35
5Customer 2Customer 2
6Customer 2range 11
7Customer 2range 25
8Customer 2range 26

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Run Macros

Worksheet Formulas
CellFormula
A1=B1
A2=IF(LEFT(B2,8)="Customer",B2,A1)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>


This worked an absolute treat!
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

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