Carrying Out LINES To Selections Of Data In 2 Columns
Jul 29, 2013
Power (kW)
Head (m)
Mass Flow (kg/s)
51.58
30.00
206.1922
92.2492
30.00
401.8627
[code].....
The data I have looks like above, with the Head increasing by 0.1m after a changing number of rows. What I would like to do is to select the Power and Mass flow rate where the head is constant, I.e all of the power to the left of 30.00 and all of the mass flow for 30.00 and produce coefficients of a 6th order polynomial which for 30.00 looks like :Head (m)
6
5
4
3
2
1
A
[code].....
As the data goes down, there are different numbers of rows with constant head value, i.e 14 rows of 30.00m and 7 for 35m. I am trying to run a macro that will give me 150 rows of the coefficients of the 6th order fit line for each head value.
View 1 Replies
ADVERTISEMENT
Mar 13, 2014
FFLX9g.jpg
What I'm after is an easier way to get data combined without having to type it all out. If you look above I would like to have A-C actually as dropbox's or listbox's, something I can click, then drop down to the proper name and select it. Then on E I'd like a timestamp for when this action was done with the date and time as shown along with the reason. Then in F I'd like the Name fields combined so I just need to right-click on F and copy/paste into the other program I use.
Maybe one column can just be the names of everyone with a selection box and I click this stuff then when I am done it resets?
View 1 Replies
View Related
Apr 16, 2009
Below is an IF CASE VB code i was using yesterday. I am coming to a dilemma. There can be multiple columns on this one particular spreadsheet that will have different selections from the dropdown that was created. For example in column B "VIRTUAL" could be selected which will hide the rows specified in the code below, but in column C "PHYSICAL" might be selected which requires other rows to be displayed but the rows for the selection in column B need to stay displayed. I am thinking the best way to do this might be to color code cels within each column based upon selections but how can a cel be color coded based upon a specific selection from the dropdown?
View 10 Replies
View Related
Jul 7, 2013
I am trying to take two random Mouse click selections and swap a set of ranges associated with the cells that are selected. For example if the user clicks on A1 it will resize(3,22) and store the selection as a variable to be swapped with another selection. Here is what I have so far but I keep getting a object required error on rngEmp1.
VB:
Sub SwapGroup()
If Selection.Cells.Count < 8 Then
MsgBox "Please Select two Groups to swap. Press and hold 'Ctrl' in between your selections", , "Swap Groups"
[Code] .....
View 4 Replies
View Related
Feb 11, 2014
I am currently setting up a userform where one of the options is for an error code (chosen from a listbox) but the user has to be able to select multiple codes. I have the below working if it is NOT multi select, works a dream and goes in the right column.
VB:
If ListBox2.Text = "A1" Then
LastRow.Offset(1, 20).Value = "x"
ElseIf ListBox2.Text = "A2" Then
LastRow.Offset(1, 21).Value = "x"
But as soon as I set it to mutliselect and choose say A1 and A2 neither one writes, I imagine because Listbox2.text is now A1,A2 and not just one or the other.
View 9 Replies
View Related
Mar 9, 2007
I am currently using this formula: =IF(AND(D3=$H$1,E3="Win"),1,0), where E3 can also equal "Loss" or "Draw", and the cells D3, E3, and F3 are populated by data validation lists containing various criteria. I have seven total Win/Loss/Draw columns, and in the first row the formula works perfectly when you change one of the cells in D3:F3. But when I copy the formula to create a second row, it no longer works!
View 5 Replies
View Related
Nov 7, 2008
i need to do is have a formula in one sheet that will use information from a given cell on another sheet. These sheets are in the same workbook.
View 2 Replies
View Related
Jun 27, 2009
I am using Microsoft Excel 2003. My question is about calculating time. Let's say my answer, after calculating time, is 2 hours and 1 minute (2:01) and that answer is placed in cell A1. How would I be able to have only the 2 hours (2:00) carry over to cell A2 without the minutes showing?
I have tried =MOD(A1,24/24) and =TIME(0,HOUR(A1),0). I have also tried to right click the cell, went to Format Cell, went to the Numbers tab and tried the different options in the Time and Customs category, but I can't seem to get 2:01 to appear as 2:00 only.
View 4 Replies
View Related
May 22, 2013
I have a macro running in a workbook that gathers some data (a date, a string and a few arrays). Towards the end of this macro, I need it to open another workbook and run a macro that sits in this other workbook, using the data from the first workbook. I then need it to return some results (several integers) back to the first macro to be pasted into the first workbook.
I gather that I can't use 'Call' as the second macro is in another workbook.
I've found that I can use Application.Run but I'm unsure how to carry variables back and forth using this.
How to move the variables between macros / workbooks using the Application.Run option, or maybe another way of doing things?
View 1 Replies
View Related
Sep 24, 2013
I need to do in excel, clean same lines and text to columns.
In the 1fs sheet "Sheet1" is the file I need to clean same lines and text to columns;
In the 2sd sheet "final" is the result I need in the end of the clean lines and text to columns;
View 6 Replies
View Related
Jan 14, 2014
is there possible to freeze multiple line and column in one sheet i.e freeze line 1 and column A1:A10 and free lines 3-10 and then freeze line 11 and free lines 12: 20
View 1 Replies
View Related
Mar 1, 2008
I have data records that are 3 rows long by 18 columns (A thru R) wide. People's 1st names only exists in the 1st row, 2nd column (B) of each record. The 1st record starts on row 5.
I need a VBA procedure that when run, it will sort the data alphabetically by the 1st row, 2nd column (B) of each data record. The 3 line data records looks like this starting on row 5:
________A__|_____B___|____C____|___D___|___E___|___F___|___G___|___H___etc
1st row _18_|_John____|_730-6853_, etc
2nd row ____|_Doe____|_238-4835_, etc
3rd row_____|_Sales___|_328-4893_, etc
1st row _32_|_Jack____|_684-3812_, etc
2nd row ____|_Jones___|_232-4954_, etc
3rd row_____|_MFG____|_238-5355_, etc
1st row _18_|_Jimmy___|_485-2294_, etc
2nd row ____|_Smith___|_223-9110_, etc
3rd row_____|_Maint___|_368-6381_, etc
If only above 3 records exists, when sorted Jack's record starts on row 3, Jimmy's record starts on row 6, John's record starts on row 9, etc
We can have as many as 15 records (3 lines long) that goes thru row 49.
View 9 Replies
View Related
Aug 12, 2014
I have is a list of the over 500 people with one line per college degree. Some have up to 4 or 5 degrees. Each have SSN as unique identifier.
I need to consolidate into one like per person with multiple columns one for each degree.
See attached : Test Degrees.xlsx
View 6 Replies
View Related
Jan 7, 2013
Iam trying to auto filter a data range based on criteria passed from a list box selections.I want the auto filter to be filtering column 2 of the data range based on ALL the items SELECTED from a multi-select list box (named listbox2) at the click of a button. Here is what i currently have:
VB:
Sub Cmd1_Click()
Application.ScreenUpdating = False
For i = 0 To ListBox2.ListCount - 1
If Me.ListBox2.Selected(i) Then
Range("A3:C600").AutoFilter Field:=2, Criteria1:=ListBox2.List(i), Operator:=xlFilterValues
[Code]...
It works, only that it filters the data by ONLY the last selected value of the list(i.e only one value item in the list). I want it to loop through ALL the selections, applying filter on column 2 based on EACH of the selections on the list box.
View 9 Replies
View Related
Jan 24, 2014
I have quite a long sequence of column for which the headers are all two-lines titles (with a line break). I need to copy many columns that are discontinuous, and the operation would save me a lot of time if I could select them at once. Of course, I know about selecting the columns holding CTRL, but here is the snag: as soon as a two-line title column is selected, the formula bar displays the content of the header, obviously on two lines, and I can't select any more columns. I tried many things, but nothing could solve this...
Is there anything I can do besides copying the columns one by one (which would take a long time) or renaming them?
View 1 Replies
View Related
Mar 26, 2013
I have a table which is refreshed from a view on our SQL server. I use a part of this data further on and would like to automate the following: I would like to have a range set which I can use to loop through data. The range should hold the filtered data of table "PremiumTable", the columns "Grouping2", "Price", "Grower"
I have found a couple of posts giving the ability to create a range of visible cells and specific columns, but I wasn't able to combine this yet.
View 2 Replies
View Related
Jul 10, 2009
I have a couple of drop down lists of data created from lists as well as fields next to it.
What I want it to do is take that data, which is name, start time, end time, days worked, queue (or work type), and fill the table next to it which is just a 30 minute by 30 minute schedule sheet with days of week 1 and week 2 on top.
I figure it would be easier to have a GO button to do this.
I will attach an example of what I mean, but please, if you guys find that there is an easier way to do this, just let me know, I feel this might involve some code/macros instead of excel functions
View 2 Replies
View Related
Nov 28, 2012
I would like to find out how can I create a chart, where it is interacting with the selection of 3 drop down list (created from data validation-list option). It will show up to 12 months of data.
First list would have only Male & Female, 2nd list would have 1st Class, 2nd Upper, 2nd Lower, 3rd Class and Pass Only, 3rd list would have all the months of 3 years.
My data is from J9:U22. These data needs to be changed accordingly, reading from D45:U58.
For the graph, if I select Male, 2nd Upper, and Jun-2012, I want it to show only this selection, where the period will be from Jul-2011 till Jun-2012.
Previously I have done one, with only 1 selection of drop down list, where I used Vlookup. Now involves 3 criterias.
Or is there an easier way to do it?
View 3 Replies
View Related
Feb 3, 2012
Using Excel 2007.
I have some connector lines that cross over tables in Columns G:K that are connecting tables in $D to tables in $M
How can I make the part of the connector line in $G:$K invisible?
something like:
Code:
Sub FormatConnector
Dim oConnector as Shape
With oConnector
If .Connector Or .Type = msoLine
If .Connector In Columns($G:$K) Then
.Connector.Segment.Visible = False
End If
End If
End with
End sub
View 1 Replies
View Related
Dec 27, 2011
I'm using Excel 2010. One spreadsheet I'm using has 1048576 lines and is a XLSX file. The other file has 65536 lines and is also a XLSX file. When I try to do a VLOOKUP, I'm given an error stating "invalid reference. This file version cannot contain formulas that reference cells beyond 256 columns or 65536 lines.
If both are XLSX files how do I expand the amount of columns in the one spreadsheet with 65536 lines? I thought all XLSX files had a million lines.
View 4 Replies
View Related
Mar 14, 2009
I have a worksheet (attached) that lists various clients in columan C. Column E lists whether each of the clients listed in Column C are 'Existing Business' or 'New Business'. I require a user form that has three radio buttons (one to select 'New Business', another for 'Existing Business' & one for 'All').
When Selecting a radio button, (e.g. 'Existing Business'), I need all clients listed in Column C of the worksheet that also have 'Existing Business' in Column E to be listed in a ListBox on the UserForm (with the second radio button allowing the text box to list 'New Business' and the third to list both Existing and New).
View 3 Replies
View Related
May 7, 2014
I've written a procedure that loads a list of country selections in a dropdown (see attached/vb editor/ThisWorkbook).
The problem is the valid values for this column need to be just the two digit country codes, not the country code +dash+country name. The reason the dropdown selections include both the two digit country code and the country name is because most users will not know the two digit codes. Presenting the selections in this fashion will make t much easier for the user to make the proper selection.
So here is what I need: When the user makes a selection from the dropdown list, the resulting value needs to be the two digit country code only. Is there a way to incorporate this formula .... =MID(B2|1|2) ... in the vba procedure which runs after the user makes a selection? Or, is there another way to accomplish this?
Example_COO.xlsm‎
View 10 Replies
View Related
May 29, 2013
I'm trying to create a dynamic msgbox that will display what data has been updated based on checkbox selections in the userform. I've named my checkboxes as Carey, Keith, and Juliet.
Ideally if only Carey's data has been updated, I'd like the msgbox to say
' Data has been Updated for:
- Carey '
If Carey and Keith's data has been updated, I'd like the msgbox to say
'Data has been Updated for:
- Carey
- Keith '
etc.
MsgBox ("Data has been Updated for:" & vbnewline & _
If CAREY.Value =true then "- Carey" End if & vbnewline & _
If KEITH.Value =true then "- KEITH" End if & vbnewline & _
If JULIET.Value =true then "- Juliet" End if & ")
View 3 Replies
View Related
Aug 21, 2014
I go negative in one column I want it to show up in the next column as a positive number because when I add my income and subtract my bills and the negative from last month to get the what cash I'll have left it screws up because negative subtract a negative is a positive. So how do i get the sum of say B9 to from -$5.00 to +$5.00 into C4 so when i subtract C4 From my income it wont add to it.
View 1 Replies
View Related
May 8, 2008
I'm trying to use combobox1, say, department, to filter items listed in combobox2, say, employees. I don't want all employees from different departments listed in the combobox2 so as to make the user spend time looking, but only names of a particular department once that department is selected in combobox1.
View 9 Replies
View Related
Dec 23, 2013
I am having trouble being able to put data into a table. The data I have breaks down orders of products in crates into lots of 45 crates with a remainder.
I would like to be able to fill a table from left to right which displays the item number with the corresponding amount of crates, which seamlessly goes from one item to the next.
I have attached an example.
pallet data.xlsx‎
View 5 Replies
View Related
Dec 5, 2008
What formula do I need for the cells in column F to show the name of the cheapest supplier ... for example the cheapest (£17,820) in line 2 is supplier A ????
View 5 Replies
View Related
Nov 28, 2012
I have a set of data spanning across 400 rows and I want to somehow be able to have a macro to randomnly select say 40 rows of data and highlight it..
View 5 Replies
View Related
Nov 20, 2007
I have a large spreadsheet I need to sort into alphabetical manager order.
As there are between 2 and 20 rows per manager I would like to know if I am able to sort this into alphabetical order!
View 9 Replies
View Related
Jan 16, 2007
I sometimes import data in the copy-paste way from completely different sources, eg. a program on the web or whatever, which has arranged the data in a table.
It is often succesful with the data neatly arranged in the spreadsheet in columns and rows and all, but sometimes the gridlines disappear even though 'cell format' is set to 'none' in 'grid lines' and the settings have a mark for 'visible grid lines' and their color is 'automatic'. Only the imported area misses the gridlines.
It is of course possible to set some grey gridlines manually in cell format, but then I get them on the print also and I don't want that.
View 9 Replies
View Related