I have a taken on a new job and would like to make my life easier.
I am normally a Mac guy but this new job uses Open Office so I am struggling a little.
I have a Master list of this stores inventory/products including our SKU, Distributor, Name and UPC.
I also have a handheld UPC scanner that outputs a CSV file with the scanned UPC and a quantity count.
Ideally I would like to take the scanner, scan barcodes and get my CSV file.
Open the CSV and copy the column of the UPCs in to my master list.
Then using Index Match have it look at the UPCs find the distributor and return that value for me.
Using the image: Paste data in to column E compare and find the same data in column C, when a match is found return the Data in column D.
I have done something similar in Apple's Numbers but it has been a while.
BONUS QUESTION: How do I stop Open Calc from removing leading "0" in a number.
I looked at cell formatting but didn't find anything.
Example: It turns 04965802 in to 4965802
[Solved] Help Using Index Match
[Solved] Help Using Index Match
Last edited by Hagar Delest on Fri Oct 25, 2019 12:34 pm, edited 1 time in total.
Reason: tagged solved.
Reason: tagged solved.
Windows 7
Open Office 3.4
Open Office 3.4
Re: Help Using Index Match
Instead of INDEX and MATCH, use VLOOKUP(). In F2 the formula would be
With INDEX and MATCH it would be
To prevent Calc from removing leading zeros, read the column in as Text. During the import process there should be a screen where you can define the column types. That is, if you start with the menu Insert -> Sheet From File.
Code: Select all
=VLOOKUP(E2;$C$2:$D$100;2;0)
Code: Select all
INDEX($D$2:$D$100;MATCH(E2;$C2:$C$100;0))
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Re: Help Using Index Match
I was under the impression Index Match was preferred over VLOOKUP, is this not the case?
Windows 7
Open Office 3.4
Open Office 3.4
Re: Help Using Index Match
I have never heard of a preference for INDEX/MATCH over VLOOKUP. Is there a reason associated with the claim?
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Re: Help Using Index Match
Your rock!
That worked a treat!
Last question. When I drag the formula down the list it shift's the formula down a cell each time so it isn't Indexing the whole column.
How do I fill down but keep the formula searching the whole column.
Side Note: Inserting columns breaks VLOOKUP I am pretty sure.
That worked a treat!
Last question. When I drag the formula down the list it shift's the formula down a cell each time so it isn't Indexing the whole column.
How do I fill down but keep the formula searching the whole column.
Side Note: Inserting columns breaks VLOOKUP I am pretty sure.
Windows 7
Open Office 3.4
Open Office 3.4
Re: Help Using Index Match
I missed a $ in the formula. Try
The $ symbols keep the references fixed. Notice when you drag it down now that everything stays fixed except the reference to E2, which shifts down in each row.
Code: Select all
INDEX($D$2:$D$100;MATCH(E2;$C$2:$C$100;0))
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Re: Help Using Index Match
thought it was the $
You rock!
Thanks a million!
You rock!
Thanks a million!
Windows 7
Open Office 3.4
Open Office 3.4