Forum Discussion

Sourav91's avatar
Sourav91
Copper Contributor
Oct 11, 2022

Excel Formula to create an organized Data Sheet from an unorganized one.

Hi, 

I am practicing and I am just stuck with a problem if we have an unorganized list given to us

(as it is given below).

 ABCDEFGHIJKLMNOPQRST
1InvoiceProduct NameQuantityRateAmountInvoiceProduct NameQuantityRateAmountInvoiceProduct NameQuantityRateAmountInvoiceProduct NameQuantityRateAmount
2C100BB525290152250               
3     C101AD40020080000          
4          C102GH700180126000     
5C103HJ320120157892               

 

So as you can see the Raw data is from (A1 - O5) and has multiple matching headers from (A1 - O1).

Now I want to create a formula so that all this data organized inside (P2 - T5) based on there headers (P1 - T1) as below:

 

 ABCDEFGHIJKLMNOPQRST
1InvoiceProduct NameQuantityRateAmountInvoiceProduct NameQuantityRateAmountInvoiceProduct NameQuantityRateAmountInvoiceProduct NameQuantityRateAmount
2C100BB525290152250          C100BB525290152250
3     C101AD40020080000     C101AD40020080000
4          C102GH700180126000C102GH700180126000
5C103HJ320120157892          C103HJ320120157892

 

Please help me out thankyou. 

  

1 Reply

  • dscheikey's avatar
    dscheikey
    Bronze Contributor

    Sourav91 

    You can use the following formula in cell P2 and then copy it down:

    =INDEX(A2:O2,1,SEQUENCE(1,5,XMATCH(TRUE,A2:O2<>"")))

     

Resources