Re-Arrange DataSet Elements Into All Possible Sets; Dynamic
Feb 9, 2007
With a data array use its elements to create, fixed length sets. Where elements can be re-used. Print all sets.
Have brute-forced a three item set with fixed loops. Need to dynamically account for any string, within reason, for sets containing n items.
have tried many different algorithms.
Sub ADataSetReArange()
'Standard module code, like: Module1.
Dim myStrArray() As Variant, myDataArray() As Variant
Dim p1 As Byte, p2 As Byte, p3 As Byte
Dim p%, c1%, c2%, myStrLength%
Dim n&, g&, r&
Dim myStr$, x$, y$, z$
On Error GoTo myErr
'Build data array!
myStr = InputBox("Enter your DataSet string, of any three characters:", "Enter Your Data!", "ABC")
myStrLength = Len(myStr)
ReDim Preserve myStrArray(0 To myStrLength - 1)
For p = 0 To (myStrLength - 1): myStrArray(p) = Mid(UCase(myStr), p + 1, 1): Next p
With ActiveSheet.Columns("A:B"): .ClearContents: .HorizontalAlignment = xlCenter: End With
ReDim myDataArray(1 To Rows.Count, 1 To 1)
'Build results array!
c1 = 1: c2 = 2
For p1 = 0 To 2
x = myStrArray(p1)
View 9 Replies
ADVERTISEMENT
May 27, 2014
HOW TO MAKE DAILY AVERAGE IF I HAVE DATA SET WITH 15 MIN SETS
View 3 Replies
View Related
Apr 10, 2008
Below is a series of sets. Column A is the set number. I need a macro that will insert a row between sets and then put a border around each set. In my spreadsheet the sets are from A1:C500. Sometimes the sets are only 1 row, sometimes multiple rows. It looks like I will be doing one of these sheets every week. So far I have been doing it manually, but a macro sure would save some time.
View 13 Replies
View Related
Feb 28, 2014
I am having trouble finding an efficient way to expand a set of data that I have by adding another column to it.
Look at attachment : help.xlsx‎
I can do it manually but I have 5000+ rows of data that I need to selectively expand do accommodate the data from the new data set.
View 4 Replies
View Related
Aug 4, 2008
I have an excel document with a list of about 12,000 names/addresses. They are currently displayed like this:
A B C
1 <name1> <name2> <name3>
2 <address1> <address2> <address3>
3 <zip1> <zip2> <zip3>
...and I want to re-arrange them so they are displayed horizontally:
A B C
1 <name1> <address1> <zip1>
2 <name2> <address2> <zip2>
3 <name3> <address3> <zip3>
Is there any possible way of doing this quickly without copying/pasting 12,000 lines of text?
View 2 Replies
View Related
Apr 3, 2014
I want to delete alternative row in a worksheet or sorted so that I only have the following arrangements..
I have Data in Rows which as followings
Row 1
Row 2
Row 3
Row 4
Row 5
.
.
so on till 1000 data
I don't want Row 1, 3, 5 .... so on
The result should should be arranged as follows:
Row2
Row4
Row6
.
.
.
so on
View 6 Replies
View Related
May 13, 2014
How to arrange a lookup formula.
Book2.xlsx
In this example, I am attempting to look up one value based on two criteria. The month must match, and the location must match. In doing so, the value "1" should be returned in the example.
View 3 Replies
View Related
Mar 27, 2009
Can you arrange 2 worksheets in the same workbook so they are side by side, like you can the way you can tile two different workbooks?
View 2 Replies
View Related
Dec 12, 2013
A Length B Length Sort & Arrange Data By Length
Required Data
455915.210 10.000455797.536 15455790.0235
455905.557 20.000455790.023 5455915.21010
455898.910 30.000455781.210 25455797.53615
455888.044 40.000455773.414 85455905.55720
455881.357 50.000455768.432 45455757.24424
455870.547 60.000455764.583 77455781.21025
455863.575 70.000455763.990 91455762.80228
455856.131 80.000455763.478 105455898.91030
455850.238 90.000455762.802 28455888.04440
455840.065 100.000455762.218 84455761.73241
455839.316 110.000455761.732 41455768.43245
455833.056 120.000455761.150 66455751.48346
455827.908 130.000455760.505 67455881.35750
455820.185 140.000455759.243 88455870.54760
455814.451 150.000455757.244 24455761.15066
455805.390 160.000455751.483 46455760.50567
Attached File : Required Sheet.xls‎
View 6 Replies
View Related
Oct 22, 2007
I working on a macro that re-arrange a table, but can not find the code. In the attached file, my original data are on the Sheet1. I would like a macro that create as many sheet as there are different values in Column D and rename each sheets by that value.
View 3 Replies
View Related
Apr 21, 2009
I run a spreadsheet that manages golf tournaments. i have to group
the # of players evenly as possible on each hole once they are entered into the tournament. since the number of players varies from tournament to tournament the math gets complicated trying to get the groupings right. i can do the math on paper but do not know how to code the math in a macro. this would save me a ton of time if someone can figure this out. i have attached a sample .xls that includes all the info i could think of a person needs to see what is going on. If i am asking to much i understand and will remove the thread.
View 6 Replies
View Related
Feb 1, 2012
i have a huge data in excel some rows has been shifted down ...e.g. from column.AY3200 data shifted down :-in column B3201 & i want arranged that B3201 in AY3200,so .it;s seem like below ..
sssssssssssssssss
ddddddddddsssssssssssssssssss
View 2 Replies
View Related
Jul 24, 2012
Can I arrange the columns D-ZZ based on a Date Value in Row 3?
View 9 Replies
View Related
Dec 21, 2012
Im developing one excel vba file to an entity .
My main objective is speed and automatization in the competition organization.
Im almost finishing it but now im stuck in this situation:
I have a table with 13 cells
A: athlete name
B: athlete weight
C: random number (raffle)
and then from 1 to 10 is the final Groups.
E.g
Name
Weight
No
1
2
3
4
5
6
7
[code].....
Now i need to create a macro to display the itens in the groups when the weighing is finished...
E.g
Name
Weight
No
1
2
3
4
5
6
7
8
9
[code].....
The conditions are:
The numbers should be displayed in the athletes groups
The difference between all the athletes weights shouldn't be > 3 kilos If theres is more than 5 athletes per group the heaviest should go to next athletes group and pop up one message informing that maximum athletes per group was reached...
View 6 Replies
View Related
Jun 16, 2014
My data are in cells A2:E7 I have 3 options first one is always in column A and rest 2 options are distributed in 4 columns B-C-D-E
I need to arrange all them to left as shown In G2:I7
ABCDEFGHI1FranJoneMichalPedroJoseLeft1Left2Left321Z71Z737Z17Z14Z17Z1751Z71Z7617Z17Z7Z17Z17Sheet1
View 4 Replies
View Related
Jul 9, 2007
I do not know much about macros so thats is possibly an easy problem to solve. My problem is basically rearranging the rows and columns. Example is below.
M.N= Material Name C.N= Country Name
M.N C.N
1 A
1 B
1 C
1 G
2 A
2 H
3 C
3 F
3 K
4 A
4 C
4 E
Here i have two columns. I would like to take the country list to rows as shown below.
M.N. A B C D E F* * *
1
2
3
4
5
*
*
And if the country has that material name it should show "Y" in the crossing cell. ( eg 1 A, 4 C)
I'd appreaciate your help. If you can help me with how to do this kind of layout changes with macro, it'd be more useful i guess, because i come accross with this kind of issues so often.
View 9 Replies
View Related
Aug 9, 2006
Would like to know if there is a way to arrange two different sheet under the same workbook horizontally? I have used the excel help box but did not manage to find a way.
View 6 Replies
View Related
Sep 23, 2006
I have a spread sheet that looks like this
TOP/BASE/SHELF 364X445
BASE/SHELF 7644X445
TOP/BASE 764X499
TOP/BASE 764X499
FIXED SHELF 264X304
FIXED SHELF 264X304
364X448 INT FIXED SHELF
364X448 INT FIXED SHELF
364X448 INT FIXED SHELF
470X2600 SHELF
470X2600 SHELF
470X2600 SHELF
I would like to have the cell contents show the string descriptions first then all the numbers at the back which includes the x. the lenght of the text and numbers could vary. the top 6 examples are correct i also need a space between thwe string and the numbers
View 8 Replies
View Related
Mar 13, 2009
I have a report as below:
Cust IDCust NameAcct 1Acct 2Acct 3…Acct 10…Acct 100Total123AB 123 255 663 - - 1,041 456AC - 3 833 51,008 - 51,844 157AD - 46 46 550 - 642 226FE 5 7,733 - - 553 8,291 658FZ 9 8,833 - 444 555 9,841
and would like to get the final product as following:
Cust IDCust NameAcct 1Acct 2Acct 3…Acct 10…Acct 100Total123AB 123 255 663 - - 1,041 456AC - 3 833 51,008 - 51,844 157AD - 46 46 550 - 642 226FE 5 7,733 - - 553 8,291 658FZ 9 8,833 - 444 555 9,841 Total Region 1 137 16,870 1,542 - 52,002 - 1,108 71,659
Criterias:
# of Rows are variables.
# of Columns are variables.
Sum amount for each of account including total per customer ID.
Total region line is hilited and bold.
View 9 Replies
View Related
Jan 8, 2009
Dim struserID As String
Dim strPassword As String
Dim strUploadFile As String
Dim strQueryURL As String
Dim objIE As SHDocVw.InternetExplorer
Dim htmlDoc As MSHTML.HTMLDocument
Dim htmlInput As MSHTML.HTMLInputElement
Dim htmlColl As MSHTML.IHTMLElementCollection
Set objIE = New SHDocVw.InternetExplorer
struserID = "xxxxxx"
strPassword = "abcdef"
strUploadFile = "C:Misc estupload.txt"
Code navigates to sign on page, enters userID and password, clicks on submit. The password used causes upload page to load. This all works ok. After upload page is loaded, the code does not enter either of the two following "for" routines.
View 8 Replies
View Related
May 11, 2014
I am starting a data sheet that I will be pasting from the internet into my data sheet daily, the problem I have is that the content data is pasting with blank rows between data and also there is one piece of data that is situated on the row below which i need moving to the end of the main data row, the idea is to have single data rows with no blank rows.
I have attached an example sheet showing the layout it repeats with only the amount of data that changes.
I have colored the data as follows:
Grey= Blank Rows
Yellow= Data Move to end of main row
Green= Unwanted Data
View 5 Replies
View Related
Apr 25, 2014
I have attached a work book to this to show what i want to do.
On sheet 'lorry 1'.
I have data in columns g to m.
I need that data to transfer to the lorry sheet as per example on sheet 'what it should look like'
It needs to segregate days and leave a line clear in between drops as per example
lorry 1.xlsx‎
View 4 Replies
View Related
May 26, 2014
i got data something like this...
m4-1
m4-10
m4-100
m4-2
m4-3
m4-30
i try to arrange it in ascending order...
m4-1
m4-2
m4-3
m4-10
m4-30
m4-100
View 7 Replies
View Related
Apr 4, 2009
I have 2 columns of data:
Column A is SKU #
Column B is Bin Capacity
I would like to take each SKU and its corresponding bin cap and arrange them into a 16 column and 9 row table on another sheet.
For example A1, B1, A2, and B2 of the old sheet, should become A1, B1, C1, D1 of the new sheet. Also I need there to be a line gap between each table.
Anyone know how to do this?
This is what I got so far:
View 10 Replies
View Related
Sep 25, 2009
I am starting an excel file that extracts file from another worksheet, then after it is extracted, A2 cell has a value in cell B2, I wanted to copy all the cells in column A&B to column C&D in such a way that when the word "check is encountered in column A, it will arrange itself in the last with the other cells that contain same words before the word "check". I wanted to do this in macro or formula if possible.
View 12 Replies
View Related
Mar 29, 2012
I want to know is there any way to arrange bars in the chart with respect to their magnitude (ascending or descending) without making changes in the source data?
View 5 Replies
View Related
Dec 25, 2013
This is for a race track. Drivers sign in on one sheet. On that sheet there is 4 different columns. Column 1 lists the division that they race in. Column 2 is the name of the driver. Column 3 is his car #. Column 4 is the number that he draws that decides his starting position. Typically there is 2 heat races per division with the odd number that is drawn being in the first heat and the even number being in the second heat. I created a second sheet called heat races. I am using an index function with a small function with a row. I have my divisions listed separately with 2 heats per division. I want to display the car number per division but lined up by the position that they draw. I have figured out how to display all of the cars per division, but I can't figure out how to separate them by what they draw (odd and even and in order from lowest to highest).
View 1 Replies
View Related
Nov 5, 2009
I'm trying to write code which allows me to cut and paste arrange of data from one sheet to the next.
the critical field is MRPC column i, I need to select all data that when I apply a auto filter allows me to cut and paste from the line below the header. And repeater using the a value
>=200
Cut all cells, rows paste.
then repeat this
>=155 to 199
>=145
PlantMaterialMaterial DescriptionSLocBatchL/OBMRBulkMRPCBinTypeUnrestr.BUnOpen QtyQual.Insp.BlockedMtyp100029PCV00703AAASADDLE CLAMP COVER1000R1120018.0008.0000.0000.000#N/A#N/A
View 9 Replies
View Related
Jul 3, 2007
How do I rearrange the data columns in a pivot table? I have a table with year to date months, open PO's, & budget numbers, but I'd like to change the order in which they show up in the pivot table.
View 2 Replies
View Related
Feb 26, 2008
I have a question regarding Excel 2003.
I have to complete a task using Excel. Normally I would complete the task using a database, but this one needs to be complete using Excel (for others to use afterwards)
I have a flat semicolon delimited text file which holds x amount of lines OR I can get the data using an ODBC connection (directly from the DB)
Each line starts with a date, a name, a second name, and a price.
See: 1.input.jpg
200080221;AAA123;excel;0.34765
200080221;BBB123;access;0.16278
200080221;CCC123;powerpoint;0.35894
What I would like is the date on the horizontal row and name and second name as headline, and the price as the data.
See: 3.result.jpg
How can I solve this using Excel?
View 5 Replies
View Related