Code To Produce Rows Of Numbers

Feb 8, 2012

How to write code to produce 17 rows of 0s, then 17 rows of 1s ....all the way up to 120. So that would be 2040 rows altogether. It takes forever to do it manually.

View 5 Replies


ADVERTISEMENT

Produce Random Numbers

Feb 22, 2008

Im wondering is there any way/method to make a certain number of cells randomly produce to an amount you want.

For Example:

1 92
2 150
3 37
4 86
5 38
6 97
7 =500

View 9 Replies View Related

Produce Reports Either By Code Or Name?

Mar 9, 2013

I coach High School track and recorded all the kids workouts in DATAEASE - I had to upgrade my PC - (Dataease no longer works) so I am trying to record the kids workouts in EXCEL and be able to produce reports either by Code or NAME. Attached worksheet - SHEET 1 - data entered / SHEET 2 - is a report I would like to produce.

View 3 Replies View Related

Produce A List Of Combinations From A Range Of Numbers?

May 9, 2014

Am looking for an easy way to produce a list of combinations (maximum 6 numbers) from a range of numbers listed in 6 different columns:

Example
Column A contains : 1,2,3
Column B contains : 7,8,11,15
Column C contains : 12,16,18,19
Column D contains : 17,30,31
Column E contains : 30,31,32,33,34
Column F contains : 37,39,40
The rules are:

In each combination of 6 numbers, numbers should always be taken from ALL 6 columns. In each combination, numbers cannot repeat.

show me a formula to arrive the results.

View 3 Replies View Related

Produce 5 Position Number From 5 Single Numbers?

Oct 23, 2012

When I enter the function below as a User Defined Function it gives me a "#NAME?" error. I entered in J12 as:

Code:
"=condense(D12,E12,F12,G12,H12)"
I have values for each column is row 12.

Code:
Function condense(ByVal d1, ByVal d2, ByVal d3, ByVal d4, ByVal d5)
condense = d1 & d2 & d3 & d4 & d5
End Function

How do produce a 5 position number from 5 single numbers?

View 1 Replies View Related

Count Duplicate Rows And Produce Count #

Jul 21, 2008

I have a spreadsheet of over 15,000 lines of student information, sorted by student number. I want to count the number of rows which have a duplicate student number, up to 15 duplicates in a row, and show the total number of duplicates in a Separate Column. I.e.

Column 1 Column 2
Row 1 - 200101 3
Row 2 - 200101
Row 3 - 200101
Row 4 - 200102 2
Row 5 - 200102
Row 6 - 200103 1

I've been trying to use a Countif formula, but I found I had to use so many ANDs and ORs that the formula became too long. I don't know how to use programming code, only formulas in Excel. Is there an easier solution using some type of SUMPRODUCT code?

View 19 Replies View Related

Macro Code To Change Positive Numbers Into Negative Numbers

Feb 1, 2007

I know ASAP has a feature to do this but I need the code in a bigger macro that I wrote.

EX: -1 needs to be 1

View 9 Replies View Related

Extracting Numbers From Text And Turning The Numbers Into Rows Of Data

Feb 23, 2010

The format of the text in which I need to extract numbers is as follows:

23411268 - 23411270

Need to extract the following:

23411268
23411269
23411270

These numbers have to be listed in three seperate rows.

View 14 Replies View Related

Create Range Of Numbers On One Row From Incrementing Numbers On Multiple Rows

Aug 20, 2014

following issue:

The following table is given:

flower
20

rose

flower
21

rose

[Code] ........

Which needs to be turned into:

flower
20
22
rose

flower
31
32
blossom

tree
1
3
apple

The last column is the one that dictates when a new range of numbers start. There should be one range of numbers for Rose, One range for Blossom etc.

View 4 Replies View Related

Deleting Rows Matching Numbers From Numbers In Column

Sep 11, 2008

I want to delete rows in whole list and numbers of rows to be deleted I have in for example C column. How to do it?

View 9 Replies View Related

Count Numbers Of Rows Housing 2 Specified Numbers

Oct 18, 2006

I have the data as follows in each cell a number:

1 5 6 23 45 2
6 23 45 5 1 22
9 10 11 1 36 5

I have this kind of data going down about 2000 rows. I want to find how many times 1 and 5 appear in each row until there is no more data to read. I found the formula below but I cant use it for 2000 lines plus any extra that will appear in the future...

View 4 Replies View Related

Code To Delete Rows Based On Status Code In Column

Jul 24, 2009

I'm trying to write a VBA script which will delete all rows in my Excel spreadsheet where Column I (which contains a status code) does not contain the word "Completed".

At the moment, I'm doing this the other way round: my script is able to search for entries in Column I which contain the status codes "Pending", "Awaiting Authorisation", "In Progress" etc and delete them. The idea is that when all those rows are deleted, I'll only be left with rows which have a status of "Completed". This works fine at the moment. However, the concern is that if a brand new status code is added to the data file, my script would be unable to pick it up and delete it. This is a small sample of the code I'm currently using (which deletes all the rows with statuses other than Completed):

View 4 Replies View Related

Match 2 Cells To Produce A Third Value

Sep 7, 2009

I have 2 sheets of data one for data the second for input and calculations.

SHEET 1 (Data)
HEADINGS - FROM / NUMBER
A / 81
C / 99
E / 01

SHEET 2 (Input & Calculations)HEADINGS - FROM / TO / FROM val / TO val

I want to be able to stick "A" in Col1 (FROM) and the number 81 to automatically appear in Col3 (FROM Val). I am unabel to use LOOKUP as my Pocket PC doesen't recognise it.. VLOOKUP and HLOOKUP are ok though, I just can't seem to get them to work for me.

View 3 Replies View Related

Compare Worksheets & Produce A Third

Jun 6, 2007

I have 2 XL sheets with the below data.

Sheet 1
EMP# Ename
111 AAA
222 BBB
333 CCC

Sheet 2
Emp# Marks
222 80
111 90
333 60

Now i want a macro which will compare the data of the two XL sheets with the help of Emp# and produce a new XL sheet which will look like this

Emp# Ename Marks
111 AAA 90
222 BBB 80
333 CCC 60

View 7 Replies View Related

Add Numbers From 2 Rows,then Move To Next 2 Rows & Repeat

May 24, 2007

I have 3 columns and 200 rows. The first column is for Name of product. 2nd column for number and 3rd for $value of number of products. Have 200 rows. Have done a sort and checked. 2 sets of rows are for the same product name. I want to know if it is possible to add up values in 2nd and 3rd column, 2 rows at a time , then 4th and 5th column and so forth, by some formula rather than doing it manually?

View 4 Replies View Related

Code For Deleting Rows Verses Hiding Rows

May 25, 2013

The first code hides everything just fine based on the date in A1. When I change it to the second code to delete instead of hide it is leaving a bunch of rows that the 1st code hides. Both codes have the same search criteria.

Code:
For Each cell In Range("B8:B5000") If cell.Value Range("A1").Value Then cell.EntireRow.Hidden = True
Next cell

Code:
For Each cell In Range("B8:B5000") If cell.Value Range("A1").Value Then cell.EntireRow.Delete
Next cell

View 4 Replies View Related

Excel Formula To Produce Dates

Dec 3, 2013

Any formula where I can in a single cell have 18 Nov - 22 Nov as an output, and drag it to the right so the next cell shows the 25 Nov - 29 Nov and so on. i.e. just the weekday range, in that format?

View 3 Replies View Related

Excel Spreadsheet To Produce A Report Per Row

Feb 18, 2014

Any way to produce a report per row of an excel spreadsheet. For example if my spreadsheet contains the names of 10 people in column one and lots of columns of data per person. Is there an easy way for me to pull all that data to produce a one page report for each person listed with the data within it?

View 14 Replies View Related

Produce Lists From Master List

Oct 24, 2011

I have a set of unique customer names in a column A, say A1 to A200 in my data sheet. These customers have route numbers assigned to them (defined by the client) column B - B1 to B200. The route no.s are 1,2,3,4,5,6,7, & 8. The column lists can be of varying lengths but no more than 500 rows. I want to relate the routes to 8 separate sheets in the workbook. In each sheet I want to extract a column of customers based on the route number. So if the first customer in column A is route '1' (column B) it populates the first entry in sheet 'Route 1' with the customer name as so on for the rest of the sheets.

View 9 Replies View Related

How To Produce List Of Unique Values

Jan 21, 2012

I was trying to produce a list of unique values from a much larger list. I'm using this array function -

{=IFERROR(INDEX(Sheet2!$B$2:$B$100,MATCH(0,COUNTIF($B$1:B1,Sheet2!$B$2:$B$100))), "")}

- which is marvellous and gives me exactly what I want. However my test book only has this dragged down 10 rows and already it takes 20-30 seconds to calculate. The real workbook is likely to stretch to several hundred rows, and to make matters that little more complex where I have Sheet2!$B$2:$B$100 this will relate to a completely separate book on a company network.

Is there any more efficient method of creating this list or will I just have to bear with the calculation speed?

View 4 Replies View Related

Macro Produce Result In Sheet

Jun 20, 2009

I have the following data which is download as csv, i need a macro to produce result in sheet2, notice if there are duplicate stmt or ledg for the same case No then the units need to be consolidated as shown in sheet2

Outstanding Holdings Case ReportAs At Thursday 4 June, 2009 16:15AccountSourceCase No.Ledg StmtValue DateMessage FeedSecurity CodeDescriptionCcy CodeUnitsExceptionUnsettle UnitsCase TypeKnown SecurityMatch NoCase AgeAge BreakAgent Code:DERIVHOLD ABERDEENJPMC.AEIABIDERIV562272Ledg4-May-09JPMC.AEIABIXT0906AUS 10YR 0309 BOND FAUD-440Hold Singleton CaseYes305779830LATEST CASE NOTES:5-May-09FuturesJPMC.AEIABIDERIV569967Ledg1-Jun-09JPMC.AEIABIYT0906AUS 3YR 0609 BOND FUAUD7-70Hold Singleton CaseYes2599402LATEST CASE NOTES:2-Jun-09FuturesItem Count : 2JPMC.AEIABIFA1569598Ledg29-May-09JPMC.AEIABIQTC0813QUEENSLAND TREASURY CORP 140813 6.00 GBAUD150000015000000Hold Net DifferenceYes3598143JPMC.AEIABIFA1569598Stmt29-May-09305496516891QUEENSLAND TREASURY CORP 6+ BDS 14/ AUG/2013..........

View 9 Replies View Related

Formular To Produce A Negative Result

Feb 20, 2007

If I put a formular in cell A2 "A1*.10" how can I get the result to come back negative if there are no negative numbers involved?

View 2 Replies View Related

Comparing Two Cells Of Data To Produce A Comment

Sep 10, 2009

is it possible to compare two sets of data (can be numerica or alpha) and produce a different outcome comments.

Attached workbook might explain better.

View 4 Replies View Related

Produce Blank Cell If Date Is 00/01/1900

May 10, 2010

I have a column of data that requires the cell to be blank if the value is 00/01/1900. The data is linked to another cell. IE: cell E3 is linked to cell $D$3 The cell is formatted for dates in the format shown.

View 7 Replies View Related

Macro To Produce Purchase Order Data

Oct 17, 2008

i have a purchase order sheet

firstly i have attached said spreadsheet
1st sheet is named purchase order
2nd sheet is named purchase order numbers

upon opening the spreadsheet i would like on sheet purchase order to automatically input the next available number from column a in sheet purchase orders ( in this case next available is st010 and put that into cell k12 on sheet purchase order

i then want to enter the relevant data in sheet purchase order cells
b16 , b23 , g23 , i23 and d28

i then want to click a button with macro attached to transfer that data in to sheet purchase order numbers

View 14 Replies View Related

Automatically Produce Save As File Name By Value In A Cell

Mar 21, 2009

I would like excel to automatically suggest the save as file name and location for my workbook when I click the save, save as or close options. The file name should be a combination of values in cells A1 and A2 of Sheet1. The location should be a folder named "Bill" in C:/My Documents. I think I can do it with a beforesave code but I am new to vba.

View 13 Replies View Related

Macro To Produce List From Specific Range

Dec 2, 2009

I have a workbook with 2 worksheets, Sheet1 & Sheet2.
Sheet1 has a list of products on it, with a code, pack size and cost.

Sheet2 has got 8 columns in it.

The first column will be A , B , C

The second will be D, E, F

Third will be G, H, I

Going right through to column 8 which will be V, W X

In the second column in each on I will be have a (sell by date) So B, E, H, through to W will have sell by dates in them.

What I am looking for is a macro that will give me a list of short sell by dates when I click the button. So if today’s date is 02/12/09 when the button is clicked it will give me a list of all the product that have lets say a month sell by date left, I would like to be able to change the month to anything I want, just in case I want to do a longer check on the sell by date.

When it finds a short date I would like it to check against the code, so in the first column the code will be in A, it will match that code up against the code in Sheet1 and give me a list of the Code, and the Product from sheet1 and the sell by date that’s in Sheet2. The problem I have is when data is put into the second column on sheet2 which is D.E.F, I would want it just to check that column and not the A,B,C from column 1.

View 14 Replies View Related

Produce A Drop Down Menu In A Single Cell

Aug 3, 2006

How do you produce a drop down menu in a single cell in Excel

View 9 Replies View Related

Using If Statement To Produce Results Based On 2 Cells

Nov 25, 2011

I was trying to use an if statement to produce results based on 2 cells. The number in the 1st cell can be the number 1 to 5, but each number has critera with it. Say the cell is A1 and i enter the number 1. Then i want to check the value of Cell A5, if this is less than 40 then the cell A10 should read 250 and if A5 was over 40 then it should read 285. struggled to get a formula properly to work.

Here are the values for each number: A1 = 1 with cell A5

View 7 Replies View Related

Automatic Formula That Can Produce Data In Column D And E?

Jan 12, 2012

I have a very long list in columns A and B, about 1000 rows. I was just wondering how would i be able to setup an automatic formula that can produce the data in column D and E?

Ideally, i would the sequence running every 5 rows but iam doing this manually and running the sequence every 5 rows would be way to slow.

View 7 Replies View Related







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