+ Reply to Thread
Results 1 to 2 of 2

Macro/formula to work out number of labels

  1. #1
    Registered User
    Join Date
    02-15-2018
    Location
    England
    MS-Off Ver
    365
    Posts
    34

    Macro/formula to work out number of labels

    Hi,
    Not sure if this could be sorted out by macro or formula. If this is possible with formulas only, please could you move it to other category.
    Some background info about worksheets:
    1. CASES SUMMARY – this will always be pasted keeping the same cells and format, so for example line 9 will always contain Store No and Line 10 will always contain Cases ordered. Also page 1 will be finishing with 49 line and another one will start from line 50 and finish on line 98.
    2. DATA - this will be pasted every day so information will be changing as well.
    3. SUMMARY – this tab will contain template that will consolidate data from 2 previous worksheets and return information I need.
    What I need:
    I need Macro/formula that will tell me how many labels I need assuming that for every 25 cases ordered (in CASES SUMMARY worksheet) I will require 1 label. I need that information to be returned in “D” column in SUMMARY tab. For example now for store 79 I will require 3 labels, for store 130 I will need 1 label, store 181 will need 3 labels and so on. I also need to know how to change this setting so if I need to assume I need to print a label for every 50 cases ordered.
    If macro is needed for this could that be worked out by button in SUMMARY worksheet.
    Thanks in advance for help, please ask if you need any other info.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Macro/formula to work out number of labels

    In your example workbook on sheet Cases Summary there are hidden numbers below each Cases Ordered row. What are those numbers and are they a regular part of the pasted data set?

    If those hidden numbers are not part of your normal data, this formula would work. Put it in D3 and copy down...
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note the Criteria range (red) is offset by one row from the Sum range (green).
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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] Macro to automatically workout number of labels and pages numbers
    By poodek in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 02-21-2018, 12:45 AM
  2. Macro to add Data Labels in all charts available in the whole work book?
    By D2S in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-27-2017, 12:29 PM
  3. [SOLVED] Formula in macro dont work with mixed number and letters
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-22-2014, 10:37 AM
  4. Need macro/script to generate serial number labels
    By c.young in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2012, 06:18 PM
  5. How can you do a text and number formula to work out something specific
    By hayley_1485 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-03-2010, 12:48 PM
  6. Replies: 3
    Last Post: 03-08-2010, 10:24 PM
  7. macro to work for variable number of rows
    By incognito in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-18-2007, 08:48 PM

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