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.




553 posts

Ultimate Geek

Lifetime subscriber

#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
1203 posts

Uber Geek

Trusted

  #1483941 2-Feb-2016 21:38
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.





Please keep this GZ community vibrant by contributing in a constructive & respectful manner.


 
 
 
 


2158 posts

Uber Geek

Trusted

  #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



553 posts

Ultimate Geek

Lifetime subscriber

  #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




553 posts

Ultimate Geek

Lifetime subscriber

  #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




553 posts

Ultimate Geek

Lifetime subscriber

  #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


1203 posts

Uber Geek

Trusted

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

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

 

Looking good.





Please keep this GZ community vibrant by contributing in a constructive & respectful manner.


 
 
 
 


3316 posts

Uber Geek

Trusted

  #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.


2158 posts

Uber Geek

Trusted

  #1485147 4-Feb-2016 12:48
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


3316 posts

Uber Geek

Trusted

  #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.




553 posts

Ultimate Geek

Lifetime subscriber

  #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 and LinkedIn »



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 »

Chorus completes the build and commissioning of two new core Ethernet switches
Posted 8-Jul-2020 09:48


National Institute for Health Innovation develops treatment app for gambling
Posted 6-Jul-2020 16:25


Nokia 2.3 to be available in New Zealand
Posted 6-Jul-2020 12:30


Menulog change colours as parent company merges with Dutch food delivery service
Posted 2-Jul-2020 07:53


Techweek2020 goes digital to make it easier for Kiwis to connect and learn
Posted 2-Jul-2020 07:48


Catalyst Cloud launches new Solutions Hub to support their kiwi Partners and Customers
Posted 2-Jul-2020 07:44


Microsoft to help New Zealand job seekers acquire new digital skills needed for the COVID-19 economy
Posted 2-Jul-2020 07:41


Hewlett Packard Enterprise introduces new HPE GreenLake cloud services
Posted 24-Jun-2020 08:07


New cloud data protection services from Hewlett Packard Enterprise
Posted 24-Jun-2020 07:58


Hewlett Packard Enterprise unveils HPE Ezmeral, new software portfolio and brand
Posted 24-Jun-2020 07:10


Apple reveals new developer technologies to foster the next generation of apps
Posted 23-Jun-2020 15:30


Poly introduces solutions for Microsoft Teams Rooms
Posted 23-Jun-2020 15:14


Lenovo launches new ThinkPad P Series mobile workstations
Posted 23-Jun-2020 09:17


Lenovo brings Linux certification to ThinkPad and ThinkStation Workstation portfolio
Posted 23-Jun-2020 08:56


Apple introduces new features for iPhone iOS14 and iPadOS 14
Posted 23-Jun-2020 08:28



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.