LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default Incrementing Data based on user input

OK. I have been toying around with these formulas and they are functioning
great!

I have one more request: I have recently been asked to add the feature to
start at a given "Lot" and count from there.

For instance, we might release a "Lot" of parts that starts with "Lot 12".
So i would need it to count as follows:

12345-67-8910 12 1
12345-67-8910 12 2
12345-67-8910 12 3
12345-67-8910 12 4 ...etc

Any thoughts?

"learningaccess" wrote:

That actually does what i would like with the exception of stopping at the
specific number of lots. For instance, if i put in 3 lots with 10 parts per
lot, the counting continued on to the 4th lot, 5th, etc.

I was actually thinking something along the lines of having all of this in a
macro and having that macro load when the page loads. Along with that, i
would like the macro to disply an input box asking for job number, then one
for Lots of parts, then another one for parts per lot. Once the last input
box has been "OKed" i would like it to display all of the data so that i can
format that for a label printer.

I hope this is making sense.

"vezerid" wrote:

A formula solution... (VBA is also easy)
Say Job Number in F1, No of Lots in F2, Parts per Lot in F3.
Your labels start in A1:Cn, where n=No of Parts*Parts per Lot.

In A1:
=$F$1

In B1:
=INT((ROW()-1)/$F$3)+1

In C1:
=MOD(ROW()-1,$F$3)+1

Does this help?
Kostis Vezerides

On Jan 25, 8:21 pm, learningaccess
wrote:
My basic goal is to be able to have a user input 3 pieces of information and
have Excel increment the data based on the information entered. More
specifically, the user will enter "Job Number", "Number of Lots", and "Number
of Parts in each Lot" as such:
Job Number: 12345-67-8910
Number of Lots: 3
Parts per Lot: 10

I would like for Excel to increment the data and print in a format that will
act as a "label". The data should be incremented as follows:

12345-67-8910 1 1
12345-67-8910 1 2
12345-67-8910 1 3 ...etc.

12345-67-8910 2 1
12345-67-8910 2 2
12345-67-8910 2 3 ...etc.

12345-67-8910 3 1
12345-67-8910 3 2 ...etc.

Spaces are not required between the job number, lot number, and part number,
i just added them for emphasis on what i would like to achieve.

I am guessing that the best way to achieve this is to use macros, but i am
not very "macro savvy".

Thanks in advance.



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
data table based on data table BorisS Excel Discussion (Misc queries) 0 September 24th 06 03:11 PM
Choosing data based on Match to several items Nipper Excel Worksheet Functions 5 May 12th 06 07:19 PM
Pull data from another sheet based on certain criteria steve_sr2 Excel Discussion (Misc queries) 1 February 23rd 06 10:08 AM
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
Retreive data based on multiple column input hgopp99 Excel Worksheet Functions 1 January 20th 06 08:59 PM


All times are GMT +1. The time now is 11:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"