Fill in the blanks?

wisemank

Board Regular
Joined
Jun 21, 2010
Messages
129
Hi there,

I have a large data set from an export of phone system. In the data set there is data i can pivot tabel to find my results but the format isnt conducive to pivot without some modifications. I need to find the "DNIS:" in column A and also the information in Column B and add the type to each line item below until the next DNIS is found. Please note there is data in every cell, but I simplified to demonstrate. So I need to add a column after the CALL ID and insert the DNIS type to each line. Any ideas? Macro or formula?

ps. there are 30k rows

TimeAgentCallANINameStateQueueDurationGroup NameCall ID
DNISARC
DNISEMER

<tbody>
</tbody>
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Very unclear. Can you make a table with column headings A,B,C,... that has the first 100 or so rows of real data?
 
Upvote 0
Try whit this macro

Code:
Sub Macro1()
    With Range("A1:J" & Range("A" & Rows.Count).End(xlUp).Row)
        .SpecialCells(xlCellTypeBlanks).FormulaR1C1 = "=R[-1]C"
        .Value = .Value
    End With
End Sub
 
Upvote 0
How can I upload an image of the screen shot? The table I tried to create obviously didn't work correctly.
 
Upvote 0
You could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. If the workbook contains confidential information, you could replace it with generic data.

Also put on another sheet the result you expect.
 
Upvote 0

Forum statistics

Threads
1,215,312
Messages
6,124,192
Members
449,147
Latest member
sweetkt327

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