Repeating Items A Specific Number Of Times

Jan 22, 2008

I am trying to create a formula that would provide a result a specific number of times based on a table in a seperate worksheet. Here is an example:

Person: # of times
John 2
Joe 2
Frank 2
Jack 1

Based on an IF statement, the cell should bring back John, the next cell down should bring back John, the third cell should bring back Joe as John has reached his limit of 2, and have this repeat until all criteria that meet the IF statement have been met.

View 10 Replies


ADVERTISEMENT

Summarizing Times For Specific Items Within Specific Time-frame

Mar 26, 2014

I got Excel for Mac 2011 installed. I have a table called 'Raw" that holds data from the beginning until the end of 2013 (in total ~7000 rows). I have columns for Category, Start and End time, and time period in Hours, Minutes, and Seconds:

Code:
A
B
C
D
E
F

Category
Start
End
Hours
Minutes
Seconds

Transportation
2013/01/01 01:00:00
2013/01/01 01:15:00
0:15:00
15:00
900

[Code] ...........

I'm trying to get an overview of how much time I've spent in January on Transportation. I would need to look at the Category entries for Transportation, then only use the ones which have the Start set to 2013/01, and then take the Hours/Minutes/Seconds, and summarise it in a new table called 'Data':

Code:
A
B
C
D
E
F

Month
Category
Occurrence
Hours
Minutes
Seconds

2013/01
Transportation
48

[Code] .......

I have figured out a way to count the occurrences for Transportation for January:

=COUNTIFS(Raw!B:B,">="&"2013/01/01 00:00:00"+0,Raw!B:B,"

View 1 Replies View Related

Repeating Multiple Cells A Set Number Of Times To Print Labels

Jun 1, 2009

I have a form that users will fill in, and I need to print a set number of labels (all identical) based on the info that is entered.

I have the form set up with data validation and indirect references(Lists on a separate sheet)

Example...

User enters in:
Customer name
Product name
Lot #
PO#
Date made
Number of items

From there I have a separate set of cells that reference the above info formated to how I want the label to appear when printed.

Now, I need to repeat that label the set number of times (# entered in as "number if items") in a label sort of format (not sure if a mail merge will work for this??)

Then, print off and stick identical labels onto each part that is manufactured per PO/Date etc.

View 9 Replies View Related

Macro To Repeat Row Specific Number Of Times?

Apr 19, 2014

I have never built or used a macro before and need very clear step by step instructions. I am just assuming that a macro is the answer to what I am looking for but if there is a simplier solution that would be fantastic.

I need to be able to repeat a row of data a specified amount of times.

Example:

3 Yellow James
2 Green Mark
5 Purple Sue
1 Orange David

Needs to look like:

3 Yellow James
3 Yellow James
3 Yellow James
2 Green Mark
2 Green Mark
5 Purple Sue
5 Purple Sue
5 Purple Sue
5 Purple Sue
5 Purple Sue
1 Orange David

View 7 Replies View Related

How To Throw Form Specific Number Of Times

Aug 23, 2012

I have a form to collect employee details. If i give the number of employees in one form, I will throw another form to collect the employee details. If I give 5 in first form, then the second form should be thrown 5 times and get the details. If I use for loop, then all the 5 form are thrown at once.

View 2 Replies View Related

Text To Columns - Only Want To Split SPECIFIC NUMBER Of Times

Jan 26, 2006

I am trying to split names across columns. The problem is that some names
spilt into 3 columns (first, middle, last), and others split across 5 or 6
(extra names, etc.)

Is there a way to specify split, using SPACE as a delimiter, but only split
on the first TWO spaces, then leave the rest alone?

View 9 Replies View Related

Copy & Paste Specific Number Of Times Based On Value

Jul 22, 2007

I enter a part number in "D1". The number of components required for that part number is returned in "G1" based on a VLookup. I would like a macro that will copy and paste the part number I enter in "D1" in the first empty cell in column "D" and will paste it once for each component (G1) required. For example, if the number of components required is 4, and the first empty cell in column "D" is "D10", I would like to paste the part number in cells "D10", "D11", "D12", and "D13".

View 2 Replies View Related

Excel 2003 :: Get Number Of Items Against Specific Department?

Sep 7, 2012

I'm trying to get the number of items against a specific department which are contained in a sheet called "data", the sheet is contained in the same workbook.

There are named ranges for
Department (text)
Date_From & Date_To (in the format dd/mm/yyyy)
Band (Numeric 1 to 3)
Items (Numeric)

Using the following formula I get an #NUM error (using Excel2003)

=SUMPRODUCT(--(Department=A7),--(Date_From>=$B$2),--(Date_To

View 9 Replies View Related

Read From Column And Display How Many Times Specific Number Appears

Jan 5, 2009

I type random numbers into column B

I want cell E10 to read column B then display (number 26 for example) how many times number 26 appears in column B

View 9 Replies View Related

Repeating X Times Among Multiple Cells

May 1, 2007

ok is there a way to have excel fill a certain number of cells with specific data specified X times? For example, the end result would look something like the pic below. The column on the right would change according to the numbers specified in the yellow column.

View 9 Replies View Related

Counting Number Of Times Specific Month Appears In Entire Column?

Aug 22, 2014

I am trying to create a graph that is conditional on two different columns. The first column is a date column, the second column has various categories. I want to show how many times each category appears per month. This database is continually added to so I wanted the formula to reflect the entire column range.

For example, let say I have 5 categories (Grapes, Apples, Peach, Pear, Banana). Column A would show a date (in a M/D/Y format) and Column B would list the fruit type. I want to show how many Grapes were input in January, February, March, etc. and then move on to show how many apples in each month, and so on.

View 5 Replies View Related

Count Number Of Times Specific Intervals Occur Between Relevant Values

May 5, 2008

I will say exactly what i want.

I want to keep statistics of roulette.

More specifically, i want to count how many times a dozen lates to come.

The range from 1-12 is 1st dozen, from 13-24 is the 2nd and 25-36 is the 3rd.

I want to count among these numbers, how many times one of three dozens appear every 1 time, how many times appears every 2 times, .... until 20 times.

For example: I have put in a column 500 numbers from 0 to 36.

The output must be like this:

1st Dozen: Every 1 time: x
Every 2 times: n
Every 20 times: m

The same for 2nd and 3rd dozen.

View 9 Replies View Related

Searching A Column For Specific Text To Return A Number Of Items Found

Apr 28, 2006

on one sheet we have a summary of the main list, which includes totals of money recieved, totals of all the different sources (ie, where they heard about us from), the totals of the frequencies they pay (ie, how many donate monthly, quarterly...) ... etc. on the next sheet we have the "main" list of donors, their IDs, amounts, frequency, source ...

the totals on the first sheet are updated manually, but i want to change that as there are a great number of errors.

View 8 Replies View Related

Selecting Non Zero Dates And Repeating 24 Times While Pasting?

Mar 27, 2014

I want to select the dates(from column H) in which the value(in column I) is greater than zero and paste them in column K(Attachment). At the same time, I want to expand each day for 24 hours. That means, I want to repeat the date 24 times while pasting in column K.

View 5 Replies View Related

How To Avoid Repeating A Similar Loop Several Times (pivot)

Mar 2, 2007

I am coding a macro that would take all information needed from an existing pivot to put in in a new report file.

Now the problem is that I couldn t get to paste the data (for some weird reason), so I did a loop that terminates with IsEmpty...

My problem is I have to write on loop per column, because I don t know how to tell excel to go to next column (that I know!) AND to the first row, which means doing an offset of (x,1), but how do you set the x for it to be adaptable if I change the length of the pivot table?

I really hope someone can help me with this, I tried to replace range("first cell") by cell(x,... and set x as a variable but i am not good enough obviously....

Here is what I have so far:

Dim k
Dim w As Integer

Workbooks.Add
ActiveWorkbook.SaveAs "C:Dokumente und EinstellungenCustomerServiceDesktopMonthlyReportAutomated.xls"
'iniatiation before loop
Workbooks("ChannelProductionlastestupdateJAN2007").Sheets("pivot").Activate
Workbooks("ChannelProductionlastestupdateJAN2007").Sheets("pivot").Range("a20").Select
k = Selection

View 9 Replies View Related

Macro Loop – Find Specific Times, Extract Date, Average Values Of Times

Feb 23, 2010

In my workbook I have about 20 sheets (less in the attached sample), and on most sheets I’d like to query data for each day and find an average value based on the time and then copy that result into another sheet. I’m not sure if I’ll need 2 macro’s for this or if one can be used.

Here’s a quick description:

Assuming that I am currently in the sheet I want to run the macro, then I will either input “1:45” or “0:45” into a popup box, or I could always simply input the 1:45 or 0:45 in the code itself. I’m flexible

1:45:

If I input 1:45, then I’d like the macro to find the first 1:45 in Column B and the value in the same row in Column F will be used in the calculation. Once 1:45 is located, then the macro moves up to find 22:45 in Column B and the value in the same row in Column F will be used in the calculation.....

View 11 Replies View Related

Excel Formula To Calculate Difference In Times But Only Between Specific Times

Apr 8, 2014

I'm looking for a formula that will calculate the difference in times between specific times while working with a 24 hr clock. Please see details below:

E3 provides the start time of 4:00
H3 provides an end time of 15:30

If an employee works betwen the hours of 0:00 (midnight) to 5:59, this is considered DIFF hours and is therefore the number I am seaking. So for the data noted above, the total DIFF hours worked is 2 hours.

View 7 Replies View Related

Macro - Repeat Macro A Specific Number Of Times

Aug 22, 2008

I have created a macro that copies the outcome of a specific calculation (that is driven by random numbers) and pastes it (as values) into a seperate table. It then recalculates the sheet, copies the new outcome and pastes it into the same table at a row beneath the previous one.

However, I would like to be able to determine how many times this loop is repeated (i.e. how many rows of outcomes will be generated) without having to change the macro each time. Is this possible? Maybe by just linking it to a cell where the number of outcomes/repeats is specified.

View 9 Replies View Related

Looking Up Items / Quantity Within Dates And Times?

Jul 13, 2013

I get a list of data through xml data import

column A is dates WITH time, appears like so: 2013-07-13 20:25:02
column B is the product name
column C is the quantity

now I want to search certain items sold between two dates AND times which will then give me the total amount of that item sold between those dates and times

now I know how to do this with date but have a problem doing it with dates and times

View 9 Replies View Related

If Any Number Are Repeating

Feb 14, 2010

my document column "M" ,this type of numbers are there.

column "M"
125468A-B
125468A-B
458962
256897
412589A-C
412589A-C
412589A-C

01.i need to remove A-B,A-C part.

02.after that any number are repeating that all the number's end part should add (A,B,C,,,,)it's like this.....

[b]
column "M"
125468A
125468B
458962
256897
412589A
412589B
412589C

View 13 Replies View Related

Display Unique Items That Occur More Than X Times In Column?

Jan 25, 2012

I have a long column of 9-digit numbers which represent the swipe-card-ID's of patrons accessing a parking facility. Most of them occur more than once, some of them many times. There is an operational rule that bars them from using the facility more than x times. (I can't implement this limitation in the parking software/hardware, or I would happily do so.)

So my question is, is there a way to process through that column, identifying each unique ID, and reporting any that occur more than x times?

View 1 Replies View Related

Repeating Data Based Upon Number

Oct 19, 2013

raw data (before formula)

freq (number)
name

1
bill

4
zidan

3
marcos

etc

desired result (after formula)

bill

zidan

zidan

etc..

View 2 Replies View Related

Index And Match With Repeating Values Without Repeating First Found Name

Apr 20, 2006

sorting data I use in a workbook for athletics. I've really chopped down my workbook for upload, In the worksheet "Leaderboard" I can call up stats for different lifts, and it finds (in this case) the top 5 lifts and the names for the kids that have those corresponding lifts.

My problem is that when two or more kids have the same lift, it will only call up the name of the first instance of that lift. You can see this in the "Leaderboard" worksheet, and the name "Adams, Andrew" appears for both lifts of 75. I would appreciate any help on how to correct this, as I've searched the Internet for weeks now looking for a solution. I've tried experimenting with different things as well, all to no avail.

View 9 Replies View Related

Change Number In Repeating Cells That Also Contain Letter Such As D1 / D2 / D3

Jun 15, 2014

i need a formula for a sign in sheet for the academy i work at. we have night and day classes of the same sessions, in the planner they are listed as d1, d2 d3 and n1 n2 n3 and so on for each.

so basically im trying to create a formula to quickly ender the d1, d2, d3 ect into the cells on eachpage for the students to sign in for each day it works out to be about 190 calls and 9 diferent classes to you can see why id like to speed this up. problem is i need the number to change not the D and excel want to use the cell allocation.

as you can see from the document i have not attatched, i have created a formula to add in the dates automatically, i would like to do the same with the session numbers or the D numbers, this is one of the shorter courses and has about 190 days

View 4 Replies View Related

Random Number Generation Without Repeating Across Same Row Or Column?

Nov 24, 2011

Been trying to think of a way to get random numbers 1 to 36 generated without repeating in the same column, however also getting it to perform the same opertaion in 9 more columns (B:J) without the same number appearing in the same row.

example

1 2 5 4
2 5 3 1
3 4 1 5
4 1 2 3
5 3 4 2

Unsure if this is possible, have created a basic script for random number generation but have no clue how to expand across columns.

View 9 Replies View Related

Cell Format For Partial Repeating Number

Sep 19, 2006

I have an excel sheet that we need to type in an account number it always starts with 8774100 then has 9 more numbers. If I leave it on number formating it always changes the last number to 0 so I format the cell as TEXT. Anyway is there a way to get the 8774100 to automatically go in and only have to type the last 9 numbers? I know I can copy paste but then I have to double click or make sure I enter the last 9 numbers at the end or use the top entry. The data entry people just want to hit enter and go from line to line fast. In the past I just divided the cell into 2 cells and made the 8774100 in column A and columb B was the ending 9 numbers. But they need to be in the same cell.

View 2 Replies View Related

Formula That Creates Unique Number For Repeating List Numbers?

Jun 26, 2013

I need a formula that will add .1, .2, .3, etc. to a repeating list number. See the example below.
Project Work Id

8069000
8069000
8069000
8069000.1

[Code]....

View 5 Replies View Related

Countif To Find Number Of Unique Values And Number Of Times Repeats Happen

Aug 20, 2013

I have a large amount of data and I'm trying to count how many unique values I have in one column. I also want to know how many times each duplicate appears. I tried using a pivot table but it's not working for me.

I also tried the following formula: =SUM(IF(FREQUENCY(H:H,H:H)>0,1)) but it's not quite working.

View 9 Replies View Related

Generate Text Value Based On Number Of Times ID Number Previously Appeared?

Aug 3, 2012

Is there a function that allows you to read column A for an ID (these may or may not include letters/numbers/"?", are non-sequential and are of variable lengths) and, if it is the first time that it has seen an ID column B will read "sample_1_arm_1", if its the second time it has seen an id it will read "sample_2_arm_1", etc? An example of what I am trying to do on a much larger scale:

id
event_name
C83-858
sample_1_arm_1

[Code].....

View 3 Replies View Related

VBA - Copying And Pasting Unknown Number Of Values Each Different Number Of Times

May 28, 2014

I am trying to come up with a macro that selects values from one sheet and inserts them into another sheet. The number of values will change each time based on the user's entry, as well as the number of times that each entry should be pasted.

For example:

Entry: X | Y | Z
Number of Times to be Inserted to New Sheet 3 | 2 | 1

Result:
X X X Y Y Z

I have spent a while trying to figure it out, however the best I can come up with is using an array, but I can only get one value from the array to paste multiple times:

(*Note: In my testing, I didn't insert into new sheet or set up the array to handle different values, I was just trying to get the basic idea to work)

Dim A(1, 3) As Variant
A(1, 1) = Range("C3").Value
A(1, 2) = Range("D3").Value
A(1, 3) = Range("E3").Value

[Code].....

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved