Dear All,
we are working on an inventory file and would like to compare daily sales, which come from a CSV import (thats alrady working just fine), to our inventory.
The CSV Import looks as follows (Sheetname "Afterbuy Einlesen"):
[TABLE="width: 933"]
<tbody>[TR]
[/TR]
[TR]
[TD][TABLE="width: 933"]
<tbody>[TR]
[TD]Rechnungsnummer[/TD]
[TD]Rechnungsdatum[/TD]
[TD]Amount
[/TD]
[TD]Titel
[/TD]
[TD]Artikelnummer[/TD]
[/TR]
[TR]
[TD]49592[/TD]
[TD]05.01.2016[/TD]
[TD="align: center"]1
[/TD]
[TD]5x MAXELL CR2032 LITHIUM BATTERIEN BATTERY KNOPFZELLE 3V --- OVP --- NEU[/TD]
[TD="align: right"]2,0146E+11[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
These daily sells are saved into a help sheet, which subsequently shall be compared to our investory and the amount of daily sold items shall be substracted from the inventory.
The inventory data is stored on our "Lager" sheet, which looks as follows:
[TABLE="width: 1737"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Erstellt am[/TD]
[TD]Artikel Nr.[/TD]
[TD]Hersteller Nr.
[/TD]
[TD][/TD]
[TD]Titel
[/TD]
[TD]Hersteller[/TD]
[TD]Inventory
[/TD]
[TD]Status[/TD]
[TD]Bestand min.[/TD]
[TD]Melde-Bestand[/TD]
[TD]Einheit[/TD]
[TD]Lagerort[/TD]
[/TR]
[TR]
[TD]151[/TD]
[TD]05.01.2016[/TD]
[TD]151[/TD]
[TD][/TD]
[TD][/TD]
[TD]5x MAXELL CR2032 LITHIUM BATTERIEN BATTERY KNOPFZELLE 3V
[/TD]
[TD][/TD]
[TD]10[/TD]
[TD][/TD]
[TD]10[/TD]
[TD][/TD]
[TD][/TD]
[TD]Lager 1[/TD]
[/TR]
</tbody>[/TABLE]
In such a case the code shall first find the correct line item in our inventory sheet (5x MAXCELL CR2032) and then just the sold amount from our imported CSV Sheet explained above. In that case -1
Our current approach is to work via a VLOOKUP and row identifier, however we think it would be easier to save the String and identify the row directly.
Every idea or approach is highly appreciated.
Thanks!
we are working on an inventory file and would like to compare daily sales, which come from a CSV import (thats alrady working just fine), to our inventory.
The CSV Import looks as follows (Sheetname "Afterbuy Einlesen"):
[TABLE="width: 933"]
<tbody>[TR]
[/TR]
[TR]
[TD][TABLE="width: 933"]
<tbody>[TR]
[TD]Rechnungsnummer[/TD]
[TD]Rechnungsdatum[/TD]
[TD]Amount
[/TD]
[TD]Titel
[/TD]
[TD]Artikelnummer[/TD]
[/TR]
[TR]
[TD]49592[/TD]
[TD]05.01.2016[/TD]
[TD="align: center"]1
[/TD]
[TD]5x MAXELL CR2032 LITHIUM BATTERIEN BATTERY KNOPFZELLE 3V --- OVP --- NEU[/TD]
[TD="align: right"]2,0146E+11[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
These daily sells are saved into a help sheet, which subsequently shall be compared to our investory and the amount of daily sold items shall be substracted from the inventory.
The inventory data is stored on our "Lager" sheet, which looks as follows:
[TABLE="width: 1737"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Erstellt am[/TD]
[TD]Artikel Nr.[/TD]
[TD]Hersteller Nr.
[/TD]
[TD][/TD]
[TD]Titel
[/TD]
[TD]Hersteller[/TD]
[TD]Inventory
[/TD]
[TD]Status[/TD]
[TD]Bestand min.[/TD]
[TD]Melde-Bestand[/TD]
[TD]Einheit[/TD]
[TD]Lagerort[/TD]
[/TR]
[TR]
[TD]151[/TD]
[TD]05.01.2016[/TD]
[TD]151[/TD]
[TD][/TD]
[TD][/TD]
[TD]5x MAXELL CR2032 LITHIUM BATTERIEN BATTERY KNOPFZELLE 3V
[/TD]
[TD][/TD]
[TD]10[/TD]
[TD][/TD]
[TD]10[/TD]
[TD][/TD]
[TD][/TD]
[TD]Lager 1[/TD]
[/TR]
</tbody>[/TABLE]
In such a case the code shall first find the correct line item in our inventory sheet (5x MAXCELL CR2032) and then just the sold amount from our imported CSV Sheet explained above. In that case -1
Our current approach is to work via a VLOOKUP and row identifier, however we think it would be easier to save the String and identify the row directly.
Every idea or approach is highly appreciated.
Thanks!