Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




409 posts

Ultimate Geek
+1 received by user: 31

Lifetime subscriber

Topic # 191385 2-Feb-2016 20:07
Send private message

Ok currently at work i have a spreadsheet that i need to enter certain products in each day once they are delivered

 

 

 

Currently

 

I have dropdown lists on the main page, linking to the second sheet

 

How it works

 

I select the Correct Supplier, and the next cell comes up with the product names (and nothing else) and I select the correct product name, and all the product details including b/code are displayed,

 

unfortunately a lot of products have the same name or very similar names and it is impossible to tell from the product name which is which, where there are two identical product names i often have to reselect the alternate choice to get the correct product  and b/code

 

Once all the days products are enetered I print the page

 

What I want

 

(as there is a b/code scanner attached to my computer)

 

Scan in the b/code press enter and the details come up, this should be simple, but as i have never made a spreadsheet unless i have been forced to, I can't figure out how to do this, the dropdown lists was right at the edge of my ability, but having a user input is throwing me completely, i can't seem to get the formulae to work.

 

Any help would be appreciated, Or a link to a coherent tutorial, my terminology is bad so i am probably looking for the wrong thing, I also have a pounding headache and backache after taking a tumble today so i am off to bed and hopefully this will make more sense in the morning

 

Notes

 

The product details are basically in a list like the below, (the supplier details aren't overly essential, i was planning to just add them in a third column of the product details to make the query easier)

 

 

 

Widget - 94000123456789

 

sprocket - 9400098765432

 

gadget - 9400045362718

 

 





'We love to buy books because we believe we’re buying the time to read them.' WARREN ZEVON


Create new topic
752 posts

Ultimate Geek
+1 received by user: 223

Subscriber

  Reply # 1483878 2-Feb-2016 20:13
2 people support this post
Send private message

IcI

665 posts

Ultimate Geek
+1 received by user: 147

Trusted

  Reply # 1483941 2-Feb-2016 21:38
3 people support this post
Send private message

For basic functionality, VLOOKUP() will do the trick.

 

Watch out for the following

 

     

  1. In your lookup table, the bar code value MUST be the left most value
  2. Sort your bar codes in ascending order
  3. In your VLOOKUP(), as the last parameter, specify that you want an exact match.
  4. Consider that you will NOT find your value. Thus use error correction: =IFERR(VLOOKUP(bla,blah,blah),"No bar code found")

 

Here is a nice tutorial from Excel Tactics to get you started.

 

If you have the stomach for it, rather use an INDEX-MATCH-MATCH formula as explained on the mbaexcel website. With INDEX-MATCH-MATCH your lookup value can be anywhere in the lookup array and you can return results horizontally or vertically. Very useful if you can't re-arrange your data to use only the left most column for lookup.

 

 

 

Edit - Let me know if you want more help.


 
 
 
 


Try Wrike: fast, easy, and efficient project collaboration software
1515 posts

Uber Geek
+1 received by user: 375


  Reply # 1484108 3-Feb-2016 09:04
Send private message

Out of interest, does the likes of MYOB support this?

Perhaps your existing software has an add-on inventory package



409 posts

Ultimate Geek
+1 received by user: 31

Lifetime subscriber

  Reply # 1484635 3-Feb-2016 17:59
Send private message

 Ok, this was the code i was using (I have a header row)

=VLOOKUP(A2,Sheet2!A1:B44,2,FALSE)

After having a read of the tutorials, I finally clicked what my problem was, i was using commas instead of semi colons, and my testing value was number 45 in my list and I had set my range to only 43 values

So the below sort of works

=VLOOKUP(A2;Sheet2!$A$1:$B$45;2;FALSE)

Obviously it doesn't handle missing values yet, but i am working on it (thanks for the code on that guys),





'We love to buy books because we believe we’re buying the time to read them.' WARREN ZEVON




409 posts

Ultimate Geek
+1 received by user: 31

Lifetime subscriber

  Reply # 1484664 3-Feb-2016 18:20
Send private message

Ok so code now works correctly

 

=IFERROR(VLOOKUP(A4;Sheet2!$A$1:$B$47;2;FALSE);"Barcode doesn't exist")

 

 

 

Next question, if I don't enter anything into the b/code field how do I stop it saying anything

 

My main page looks a bit like this now

 

eg

 

94000123456789 - Widget 

 

9400098765432 -sprocket

 

940004536271 - gadget

 

940004531945 - Barcode Invalid

 

   - Barcode Invalid

 

   - Barcode Invalid

 

   - Barcode Invalid

 

   - Barcode Invalid

 

   - Barcode Invalid

 

   - Barcode Invalid

 

 

 

There must be some sort of if input < 2 Chars display nothing

 

 

 

So would my code be something like this? obviously i am making up the function names, but you get where I am heading?

 

 

 

=IFERROR(VLOOKUP(A4;Sheet2!$A$1:$B$47;2;FALSE);(IF_LENGTH_INPT >2 then "Barcode doesn't exist" Else ""))

 

 





'We love to buy books because we believe we’re buying the time to read them.' WARREN ZEVON




409 posts

Ultimate Geek
+1 received by user: 31

Lifetime subscriber

  Reply # 1484711 3-Feb-2016 18:46
Send private message

Ok this seems to do everything

 

 

 

=IF(ISBLANK(A2);"";(IFERROR(VLOOKUP(A2;Sheet2!$A$1:$B$47;2;FALSE);"Barcode doesn't exist")))

 

 

 

Now all i have to do is do a big bit of testing, Please tell me if you see a glaring error in it





'We love to buy books because we believe we’re buying the time to read them.' WARREN ZEVON


IcI

665 posts

Ultimate Geek
+1 received by user: 147

Trusted

  Reply # 1484907 3-Feb-2016 23:56
Send private message

Morgenmuffel: Please tell me if you see a glaring error in it

 

Looking good.


3280 posts

Uber Geek
+1 received by user: 208

Trusted

  Reply # 1484912 4-Feb-2016 00:38
Send private message

IcI:

 

For basic functionality, VLOOKUP() will do the trick.

 

Watch out for the following

 

     

  1. In your lookup table, the bar code value MUST be the left most value
  2. Sort your bar codes in ascending order
  3. In your VLOOKUP(), as the last parameter, specify that you want an exact match.
  4. Consider that you will NOT find your value. Thus use error correction: =IFERR(VLOOKUP(bla,blah,blah),"No bar code found")

 

Here is a nice tutorial from Excel Tactics to get you started.

 

If you have the stomach for it, rather use an INDEX-MATCH-MATCH formula as explained on the mbaexcel website. With INDEX-MATCH-MATCH your lookup value can be anywhere in the lookup array and you can return results horizontally or vertically. Very useful if you can't re-arrange your data to use only the left most column for lookup.

 

 

 

Edit - Let me know if you want more help.

 

 

If you're using "Exact match" the records don't have to be in any specific order.


1515 posts

Uber Geek
+1 received by user: 375


  Reply # 1485147 4-Feb-2016 12:48
One person supports this post
Send private message

couple of tips when using vlookups:  sometimes when coping and pasting data into excel the data can be pasted as text or with spaces that will break the vlookup.  simple trick is to place the number 1 into any random cell, copy it, then select all the data and paste-special-multiply it.  Easier than copying, pasting special as values only, then cutting the data back to the original location.

 

don't forget to "F4" the table range


3280 posts

Uber Geek
+1 received by user: 208

Trusted

  Reply # 1485459 4-Feb-2016 21:50
Send private message

Plus I really encourage people to us INDEX-MATCH. It's much more useful, and not really any harder to get your head around.




409 posts

Ultimate Geek
+1 received by user: 31

Lifetime subscriber

  Reply # 1488295 9-Feb-2016 19:35
Send private message

Thanks all it is working fine for what I need now.

 

 

 

 





'We love to buy books because we believe we’re buying the time to read them.' WARREN ZEVON


Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

TCF and Telcos Toughen Up on Scam Callers
Posted 23-Apr-2018 09:39


Amazon launches the International Shopping Experience in the Amazon Shopping App
Posted 19-Apr-2018 08:38


Spark New Zealand and TVNZ to bring coverage of Rugby World Cup 2019
Posted 16-Apr-2018 06:55


How Google can seize Microsoft Office crown
Posted 14-Apr-2018 11:08


How back office transformation drives IRD efficiency
Posted 12-Apr-2018 21:15


iPod laws in a smartphone world: will we ever get copyright right?
Posted 12-Apr-2018 21:13


Lightbox service using big data and analytics to learn more about customers
Posted 9-Apr-2018 12:11


111 mobile caller location extended to iOS
Posted 6-Apr-2018 13:50


Huawei announces the HUAWEI P20 series
Posted 29-Mar-2018 11:41


Symantec Internet Security Threat Report shows increased endpoint technology risks
Posted 26-Mar-2018 18:29


Spark switches on long-range IoT network across New Zealand
Posted 26-Mar-2018 18:22


Stuff Pix enters streaming video market
Posted 21-Mar-2018 09:18


Windows no longer Microsoft’s main focus
Posted 13-Mar-2018 07:47


Why phone makers are obsessed with cameras
Posted 11-Mar-2018 12:25


New Zealand Adopts International Open Data Charter
Posted 3-Mar-2018 12:48



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.