+ Reply to Thread
Results 1 to 18 of 18

barcodes handling as daily routine

  1. #1
    Registered User
    Join Date
    06-16-2016
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    8

    Question barcodes handling as daily routine

    Hi All, I'm not a native English speaker but I will try my best to explain my situation and hope that I could get some help from this forum. Thanks a lot.

    I'm pretty grin on using excel, and I'm now trying to work out how I could ease the workload of data entry and matching and all as my daily routine, first and foremost, how can I attach my file here? And please help with my inquiries as much as possible as I knew I have a lot questions. Thanks.

    1.) How can excel listed out automatically the sequence of numbers by scanning the barcode of the 1st ticket selling and the barcode of the last, which including the barcode of the 1st and last?

    2.) How can excel see a scanned barcode as a number so that I'm capable to set a formula of deduction to indicate the selling quantity in one time by one particular client?

    3.) If one particular client has already purchased some tickets in the morning, let say if he comes back to do a new purchase on the same date evening, how can excel sum up the total amount for the evening purchase away from the morning purchase?

    4.) How can excel tells if there is a barcode duplication if any from a new scanning?

    5.) For the 16digits of barcode, how can excel help in decoding once the barcode is scanned into one cell in one particular row? As the 3rd digit is actually reflecting the cinema while the 13th digit is reflecting the types of adult/child.

    Thanks a lot for the help and I appreciated any input.

    B.rgds,
    Jaco
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: barcodes handling as daily routine

    Will you have a situation where barcoded scans overlap? In the example you show where barcode 32108 duplicates. But this is only a one ticket sale.

    Suppose you had one sale with a start of 32100 and end of 32104 (5 tickets) and another of start 32003 and end 32006. Can this situation happen?
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: barcodes handling as daily routine

    Unless I hear otherwise, I will assume that the combination of start and end barcodes is used to determine if barcodes are unique. There will not be an overlap condition as I pointed out in the previous post.

    First, I converted the Selling Record into an Excel Table for a couple of reasons.: Tables know how big they are, so you don't have to change formula or pivot table ranges as you add data. Tables copy down formulas automatically. You can use column header names in formulas.

    The first 5 columns in the table are the same as provided in the example.

    Column F parses out the third digit of the ending bar code using the mid formula and does a Vlookup against a table on the Lookup sheet to determine which cinema it is. I had to multiply the third digit by 1 because the lookup value is a number and the MID() function returns a string. Multiplying a string that looks like a number by 1 converts it into a number. Since the lookup table is also a table, if you add another cinema, you do not have to change the formula.

    Column G does a similar thing except it looks at the 13th digit to determine if it is an adult or child.

    Column H looks at the last 4 digits of the end and start barcode and determines the number of tickets sold.

    Column I looks up against the same table as Column G, except it gets the ticket price.

    Columns J, K, L are the same as in the original data.

    Column M is a "composite key" it concatenates the start and end barcodes to check if the record is unique.

    Column N contains the formula =MATCH([@Compostie],M:M,0)=ROW(). This returns TRUE for the first occurrence of each composite and false for subsequent occurrences. This value is used with conditional formatting to highlight the row in red if a duplicate is detected.

    Both of these columns may be hidden.

    I think the pivot table handles the summaries you wanted.

    If you need some more information about Excel Tables, this article may help: http://www.utteraccess.com/wiki/inde...ables_in_Excel
    Attached Files Attached Files
    Last edited by dflak; 06-22-2016 at 01:16 PM. Reason: Add attachment

  4. #4
    Registered User
    Join Date
    06-16-2016
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    8

    Re: barcodes handling as daily routine

    Dear Dflak,

    I think I will need sometime to understand and run through your message, and thanks for your help, much appreciated, I will come back when I have doubts about it all. Thanks again.

    Have a good day!

    B.rgds,
    Jaco

  5. #5
    Registered User
    Join Date
    06-16-2016
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    8

    Question Re: barcodes handling as daily routine

    Dear Dflak,

    Thanks for helping me out, it works perfectly well even I have made a little bit of modification, there is only one thing I'm not able to understand so I left as the way you created them. Now I have other problems came up, my boss wants me to tell how many coupons have been used and unused, I'm stuck again here, so anyway, I'm attaching the file here and see if you could help me out. Simply I have separate the file of purchase and sold, and I will receive a list of barcodes from the cashier in regard to those used coupons everyday, I was thinking how I can have one sheet to list out all the barcodes I have scanned in advance and then how can I mark those barcode that have been used so then excel is able to tell how many have been used and unused... please help again. Thanks.

    B.rgds,
    Jaco
    Attached Files Attached Files

  6. #6
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: barcodes handling as daily routine

    Just getting back from holiday - will need time to catch up.

  7. #7
    Registered User
    Join Date
    06-16-2016
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    8

    Red face Re: barcodes handling as daily routine

    Dear Dflak,

    Hope you hv a good one. Well, tks in advance and I'll b looking forward. In the meantime, I'm still surfing on the internet and see what I can find out about these functioning so that may ease my burden. Chill and hope to hear from you soon.

    B.rgds,
    Jaco

  8. #8
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: barcodes handling as daily routine

    Run this by me again on how you plan to use these sheets. Particularly, what is the difference between purchase and sold?

    Please elaborate on what the various tabs are. I get that matching is the lookup tables.

    In the purchased workbook, the detail list looks like tickets already sold. The record tab looks like the list of prescanned but unsold tickets. Also what is the significance of barcodes 1 to 5?

    In the sold workbook, why do you only show barcode 1 and 5? I think I know but tell me anyway.

    This would be easier if the information were all in one workbook. However, data can be imported from multiple workbooks into one for the purposes of reporting.

    One of the issues I think we will have to deal with is working with barcode ranges in the sold workbook. These will have to be exploded out into individual bar codes.

    So let me rephrase the requirement: You prescan a bunch of bar codes. (please confirm this location) and you want to know which of these were used and which were not used by looking at the sales record, I presume. Is that all you want or do you want the other information like cinema and type, etc.?

  9. #9
    Registered User
    Join Date
    06-16-2016
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    8

    Question Re: barcodes handling as daily routine

    Dear Dflak,

    I know it is somehow confusing but I'll try to explain this as much as I can.

    - Purchased record is to keep track of what we have purchased and prevent of duplication, yet for us to number each booklet (5coupons in 1) we have made
    - Sold record is to keep track of what have been sold and the amount of what we shall receive by the date
    - Used coupon record is to keep reference of what we shall pay to the developer monthly, and yet to prevent re-use in case error. For payment we made each month, only those have been USED by the customer counts.

    ** the coupon is valid for upto 2years for the customer **

    First we have to purchase the coupon from the developer (let's say "A"), since we are one of the selling location for customer, we then need to purchase these coupons from A, so we have a list of barcodes which one barcode of 16digits represents one coupon, that is why we need a purchase record to keep for reference and for monthly payment, and since the cost of what we purchased is actually $2 cheaper than we sell to the customer, you can see there is two matching tables (which I tried to combine them but fail of reading data to certain pages so I stick with two tables instead). The sheet named "detailed list" is for all the coupons I have purchased everyday from the developer, the sheet of "purchased record" (I know my formula might've looked stupid) is actually a print-out report that I tried to make it run automatically so that I can generate a report of what I have purchased that day and distribute together with the actual coupons to different counters for selling as a reference. "Sold record" is a record apparently for what have been sold on the day. Now by the end of each day, I will receive a list of coupons' barcode that have been used at certain cinema, my boss would like to know several data as below, I'm thinking to use a filter but don't know how I could have all the data sorted:

    1.) data shows the purchased coupon which have been sold and unsold
    2.) data shows the sold coupon which have been used and unused
    3.) data shows the amount(quantity and cost by date) of purchased coupon
    4.) data shows the amount(quantity and cost by date) of sold coupon
    5.) data shows the amount(quantity and cost by date) of used coupon

    I hope I did make the picture clearer to you by now.

    Thanks and look forward to hearing from you soon.

    B.rgds,
    Jaco
    Attached Files Attached Files
    Last edited by jacohauritz; 07-08-2016 at 12:59 AM. Reason: forgot to attach my combined file

  10. #10
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: barcodes handling as daily routine

    I am going to have to take a bigger look at this to make sure that what you are saying makes sense in my mind. I have to go away, "let it settle" and then come back to it.

  11. #11
    Registered User
    Join Date
    06-16-2016
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    8

    Re: barcodes handling as daily routine

    are there ways that excel can extract all barcodes from various columns to one column in a brand new sheet? I'm able to address the barcode of what I'm looking for, if there is way that excel can show the text on the address I've found, I can try other ways to reflect the data I need... I'm kinda trapped now and need to do it manually one by one... this is pretty exhausting... Please help! Thanks.

  12. #12
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: barcodes handling as daily routine

    Can you give me a short example of "before and after" so I know what you mean by "extracting from the various columns to one column?"

  13. #13
    Registered User
    Join Date
    06-16-2016
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    8

    Question Re: barcodes handling as daily routine

    Please check the attached image. Thanks.
    Attached Images Attached Images

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: barcodes handling as daily routine

    See attached: "Barcode list"

    to extract list ...


    =IFERROR(INDEX('detailed list'!$D$3:$H$300,INT((ROWS($1:1)-1)/5)+1,MOD((ROWS($1:1)-1),5)+1),"")
    Attached Files Attached Files

  15. #15
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: barcodes handling as daily routine

    I'm still not sure that this is what you want. I ran into an issue. On the detailed list page, there was some hidden data down to rows 1002. Whatever it was, it was "countable" and was also detected by going to the bottom of the column and pressing CTRL up arrow or by going to the top of the data and pressing CTRL down arrow. I could not see anything in the cells but they could be filled with ASCII characters above 127.

    To make the code work. I went down to the end of the visible data and deleted all rows after that.
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    06-16-2016
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    8

    Unhappy Re: barcodes handling as daily routine

    Dear Dflak,

    I have another issue coming up. It works fine from column one to 2305, but when I scanned the barcode to column 2306 and column onward, all data are being highlighted in red and all functions in each column are no longer valid. What would the problem be?

    Besides, as if you can remember, I actually have all barcodes scanned in 5 different columns, I'm wondering how I could check if any barcodes have been duplicated and such duplication's location. I tried to use the "countif" function as what I can find from youtube but I failed when I reached the step of sorting for the column of the TRUE and FALSE value.

    One more question, I want to have a sequence number of each column which two of the digit will show which month they belong to (ie. July - 070001, August - 080001. etc.), of course I'm not as professional so I have the first column number typed up, 070001, and the second column set to be cell A1+1, which I will be able to have the sequence number runs in this way... until this month, I changed one of the cell to 080001, and the column follow will resume to be A?+1, but I don't know what happen, the next column still show a sequence number which starting as 07XXXX, I'm actually using the file you have sent me on 6/23 with more functions add on, so I'm not sure if there is any macro or visual basic that I need to modify from the functions I have added, please help, I'm feeling very useless after I have input the data for the entire month in it and I might have to manually re-do the past history and data in the future.

    Thanks and I look forward to hearing from you very soon.

    B.rgds,
    Jaco

  17. #17
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: barcodes handling as daily routine

    I just got back from vacation, and have some backlog of work to clear out. It may be a while before I can get back to this.

  18. #18
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: barcodes handling as daily routine

    I assume you mean row 2305 and not column 2305. I did a bit of experimenting and the reason the rows are turning red are because of conditional formatting that is checking for a false value in column N.

    Column N checks for duplicate ranges with the formula =IF(D294>0,MATCH([@Composite],M:M,0)=ROW(),""). It does not check for individual duplicates. It only checks that the combination of the first and fifth bar code are unique. If you want to check that each bar code is unique, it will take a more complicated formula and I would probably do it with some helper columns to keep it from getting too complicated.

    The Match = Row method of checking for duplicates can be modified to tell you where the first occurrence of the duplicate is.

    Let me know what you want to do with the duplicates. Is the range good enough (as we have now), or do you want to check each bar code - the latter will have 5 match formulas for each of the 5 columns.

    Now as to why it first started showing red at row 2305, I can't tell you other than you are beginning to scan duplicates. Tell me what you mean by formulas no longer being valid.

    Also, I am not understanding your requirement with the sequence number. I'll need some elaboration. Perhaps a sample with a walk-through. With the example you provided and the existing numbers, we're in month 96.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] naming a routine and calling it in another routine - not a loop
    By HeyInKy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-16-2015, 11:54 AM
  2. Daily Allowance Calculation From Previous Daily Spending Against A Daily Budget
    By WillYoung351 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-03-2014, 05:00 PM
  3. Replies: 3
    Last Post: 10-01-2013, 05:05 AM
  4. Pass a variable from one sub-routine to another sub-routine
    By gowtham_pec in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-01-2013, 07:07 PM
  5. [SOLVED] Perform daily routine without opening Workbook
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-26-2013, 07:02 PM
  6. Inventory counting by comparing stock barcodes against master barcodes list
    By jamiemacdonough in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-23-2011, 04:51 PM
  7. Error handling with a handling routine
    By ben in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-15-2005, 11:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1