MasterBash
Board Regular
- Joined
- Jan 22, 2022
- Messages
- 67
- Office Version
- 365
- Platform
- Windows
Hi,
I am trying to open a commercial invoice pdf file in Excel and there are a lot of variations to it. I am glad to say I am almost done with this project and there are over 65 steps trying to cover all situations.
Unfortunately, I still have one situation and I am looking for a solution for. It happens when the name of a product is so long that there is a line break in the name of the product. After testing it out multiple times today, it appears line breaks are only with items that have parenthesis () in them.
Now, because I am doing a lot of modifications, such as doing 2 splits left with space as delimiter to remove the leading numbers (8... and 7...) and deleting those columns and just keeping the item name first, that means "to english) also gets deleted. The correct same should be : This_is_another_item(Item name_translated to english)
I am looking to combine the third and fourth rows together. Here is another issue - There is also quantity, weight, price, currency, etc in the first row. I don't know how to combine the name correctly. I also need the date to the right, so I am also doing a bunch split column with space as delimiter to seperate each values.
How can I combine the name correctly ?
I am trying to open a commercial invoice pdf file in Excel and there are a lot of variations to it. I am glad to say I am almost done with this project and there are over 65 steps trying to cover all situations.
Unfortunately, I still have one situation and I am looking for a solution for. It happens when the name of a product is so long that there is a line break in the name of the product. After testing it out multiple times today, it appears line breaks are only with items that have parenthesis () in them.
What it is like : | Expected results |
8617779890 769467894 Item Name InAnother Language(Item in english) 0.250 PZA 1.000 1.000 PC 276.97 276.97 MXN | 861777989 769467894 Item Name InAnother Language(Item in english) 0.250 KG 1.000 1.000 PC 276.97 276.97 MXN |
8311448890 7445269977 This_is_another_item(Item name_translated 3.478 PZA 1.000 1.000 PC 683.27 683.27 MXN | 8311448890 7445269977 This_is_another_item(Item name_translated to english) 3.478 KG 1.000 1.000 PC 683.27 683.27 JPY |
to english) |
Now, because I am doing a lot of modifications, such as doing 2 splits left with space as delimiter to remove the leading numbers (8... and 7...) and deleting those columns and just keeping the item name first, that means "to english) also gets deleted. The correct same should be : This_is_another_item(Item name_translated to english)
I am looking to combine the third and fourth rows together. Here is another issue - There is also quantity, weight, price, currency, etc in the first row. I don't know how to combine the name correctly. I also need the date to the right, so I am also doing a bunch split column with space as delimiter to seperate each values.
How can I combine the name correctly ?