First Row as a column

anillinda

New Member
Joined
Apr 20, 2012
Messages
48
I have the following data :

Vendor name as the first row
The second row has the invoice number, amount and the amount outstanding.
The third, fourth and so on have the invoice numbers and then there is another vendor and invoice numbers.

I need to put the vendor number against the invoice number.
I would appreciate the help.
Ram01 RAM Enterprises
Invoice#02021253010/15/2019
Invoice#02022268011/20/2019

Thanks
Neal
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Rich (BB code):
let
    Source = Excel.CurrentWorkbook(){[Name="Table13"]}[Content],
    IF = Table.AddColumn(Source, "Company", each if [Date] = null then [Number] else null),
    Fill = Table.FillDown(IF,{"Company"}),
    Filter = Table.SelectRows(Fill, each ([Date] <> null) and ([On Hold] = "N")),
    TSC = Table.SelectColumns(Filter,{"Company", "Number", "Date", "On Hold", "Total"})
in
    TSC
 
Upvote 0
works like a charm! But it is creating duplicate invoice numbers, though I was able to delete them by removing duplicate records.
 
Upvote 0
it is creating duplicate invoice numbers
for sure not, but it means your example was not representative
your found solution? Very good. but first check if your source data has a duplicated record
 
Last edited:
Upvote 0
name will be added automatically
btw. use Excel nomenclature - there is no word "import"
if you have more questions - start new thread
 
Upvote 0

Forum statistics

Threads
1,216,586
Messages
6,131,582
Members
449,655
Latest member
Anil K Sonawane

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