Formula The Looks For Name The Gives The Relivent Data As Headed By The Colums Under The Word Average
Mar 31, 2009i need a formula the looks for neame the gives the relivent data as headed by the colums under the wrd average
View 3 Repliesi need a formula the looks for neame the gives the relivent data as headed by the colums under the wrd average
View 3 RepliesI have a large table of data:
A y y y y y y
x b b
x c c
x d
In the column headed 'A' I am wanting to return the value from the columns headed 'y'. There are 40+ columns and 1,500+ rows of data so I don't particularly want to do this manually (understandably).
Just for background the rows are lists of properties, the cells are populated with the name of a contractor, and the Ys represent different types of work.
with the following problem : i have a matrix and a list with words and i need to delete every column from the matrix which contains one of the words from my list. I have a VBA script which uses entirecolumn.delete but i need one which doesnt rely on this function. The reason i can't use entirecolumn.delete is that it messes up all of my predefined ranges. here is the script i am using :
Dim c As Range, d As Range
Worksheets("table1").Activate
For Each c In Range("matrix")
For Each d In Range("listofwords")
If c = d Then
[Code]...
I have the following sheet with reg hours and ot hours. I need to insert a column that sums these two items. I used the macro recorder and it only works when the same amount of ID's or less. If there are more ID's it does not sum the remaining ID's. What it currently looks like:.........
View 3 Replies View RelatedI previously posted a problem related to copying data from one sheet and paste it in another workbook when "Delivered" is chosen from a drop down menu. Everything works fine with my dummy files, but a problem comes up when I try to incorporate this code into the original file.
The issue is that once the code copies the info from the range A3:D3 it has to paste it into different cells in the other workbook.
Please see the attached file to see where I need the data from the range A3:D3 to be pasted.
This is info I have in a column
The formula in each cell is
=REPLACE(Track!B58,5,11,"") the reason behind this is that the info originally is entered into one cell like 25.0 x 32.0 and I wanted to use a part of the cell for column A and the other for column B.
25.032.025.032.125.032.225.032.325.032.425.032.525.032.625.032.725.032.825.032.925.032.1025.032.1125.032.12
My dilema is that I want to average the row which I have tried loads of formulas etc which are not working
I use this as sometimes not all cells are filled in so I want it to average only the data avaliable and discard any ZEROS.
=AVERAGE(IF(B28:B41>0,B28:B41))
However when I use this formula it is just coming up with
#DIV/0!
how to enter a correct formula so I can get the average.
I'm using the formula =AVERAGE(B16:L16) to give me the average.
However I have a couple of problems with this. Firstly I would like to exclude the value zero from the average. Secondly to also ignore the lowest and highest values.
Example, if the values in the cells are 0,1,2,3,4,5,6,7,8,9,10 then the current result shows 5, by ignoring the 0 and lowest value 1 and highest value 10 the average should be 4.5.
Look at the total in Cell A2, B2 and so on..... and multiply by the numbers below - then add them together at the end.
Problem im having is i cant seem to copy and paste the original formula as when i do it for the next row down it wont look at ROW 2, it will look at ROW 3, ROW 4 etc..
I have an excel program that is supposed to count word instances in a word document. I can't seem to find the right declaration for a word document.
For example to declare a workbook in excel its
Dim wb As Work Book
I've tried
Dim doc As Word.Document
'or
Dim doc As Word.Application
as shown in some of the forum posts, but an error user-type not defined keeps displaying.
I have a sheet with products and information regarding these products. It is consistently build up in a 5-row information block per product like:
A1: name
A2: info
A3: price
A4: to be deleted
A5: to be deleted
What I want:
A1: name
B1: description
C1: Price
For product 2 it should:
A6 -> A2
A7 -> B2
A8 -> C2
A9 -> to be deleted
A10 -> to be deleted ..etcetera
The Macro should loop until no data is found in the A column. Note: some of the 2nd rows (information) are not filled. They can't be deleted but need to be left empty!
I would like to get the last value in column A & B and place them into another sheets cell. The number of rows will always be changing too.. In the attached spreadsheet I want the totals, which is the very last value in the colums.
View 8 Replies View RelatedI have an excel sheet with a pivot table with some data about the trades that I have done in the stock market. Before reading the query request you to please have a look at the attachment as I have referred a few data columns.
Coming to the pivot table, in column 'I', I have the 'Total Sum of Trade Value' column which basically adds up the data frome columns E and G (i.e. Sum of trade values under 'Buy' and 'Sell'). I also have the brokerages paid for buying as well as selling and the brokerages are summed up in column J. Basically, what I want to do is to be able to get a difference between different columns within a pivot table. So I want a column which will have 'G-E-J' (Sum of Sell value - Sum of Buy value - Sum of Brokerage). I could click on one of the data fields and after selecting Value filed settings, it shows the summarized by tab.
how do I move the codes (1CH,1CL,1CP,1EM) from Column B to Colum A under Fee Earner cells where opposite the dates by using a macro?
How do i work out the percentage difference between two colums and show the results in a third? I then need to know the average of that third colum
View 9 Replies View RelatedI'm using this code to input values into the next available row of columns of A and B.
Range("A65536").End(xlUp).Offset(1).Select
ActiveCell.FormulaR1C1 = Textbox1
Range("B65536").End(xlUp).Offset(1).Select
ActiveCell.FormulaR1C1 = Textbox2
I have this piece of code right under it:
Range("E65536").End(xlUp).Offset(1).Select
ActiveCell.FormulaR1C1 = Range("B65536").End(xlUp).Offset(1) - Range("A65536").End(xlUp).Offset(1)
The value being returned is 0.
What I want that last part to do is take the last row of column B and subtract the last row in column A.
I am trying to create a spreadsheet to select different values. I have 5 columns with type A values then 3 cols with type B values, a blk col then 1 cols with type B values and 5 cols with type A values then 1 cols with type B values and 2 cols with type A values a blank 1 col with a B value, 2 cols with A values and 2 cols with B values. [ A A A A A B B B Blank B A A A A A B A A Blank B A A B B ]
I need to select 5 lowest values from this set but a minimum of three A values need to be used. I have used the min, small 2, small 3 for the A set then used an IF statement for the fourth value. The formula returns the correct sum for values up to the fourth value. The problem comes on the fifth value. I am attaching the formula I started with.
=(MIN(F3:J3,R3:T3,V3:W3))+(SMALL((F3:J3,R3:T3,V3:W3),2))+(SMALL((F3:J3,R3:T3,V3:W3),3))+(IF((MIN(K3: M3,U3)<SMALL((F3:J3,R3:T3,V3:W3),4)),(MIN(K3:M3,U3)),(SMALL((F3:J3,R3:T3,V3:W3),4))))+(IF(SMALL((K3: M3,U3),2)<SMALL((F3:J3,R3:T3,V3:W3),5),SMALL((K3:M3,U3),2),(SMALL((F3:J3,R3:T3,V3:W3),5))))
I am trying to create a marco that clears the columns of a named range if the sum of the cells in the range is zero.
View 3 Replies View RelatedSay i have database (A2:X4), the first 2 row is ID (text), and the last row is the value.
If given, 2 ID that can be looked up to the database, and say the data given is equal to the ID in cell I2&I3. The question asked is how to get the sum value of (cell E4:G4)?
For more clear explanation i have attached the example.
I need to have a macro of formula that would take a cell's value (value1)and spread it over equally over a number (value2) of columns across
A B C D E ...
1 $300 3 $100 $100 $100
2 $20 4 $5 $5 $5 $5
etc.
The expectation is to place a formula like this:
=dividevalue(A1,A3) in Col3 and it does the rest magically!
I have a parts index containing 500+ rows of data, I also have multiple columns in which I can sort the data.
I would like to have a button fixed in cell C4, D4, E4, etc... row 4 is the header, that when clicked, will filter all rows that have a selection (non-blanks) for only that column. So If I have data in various rows & column (C5:F500) that when I click on the button in cell D4, only the data listed in the various rows of D5:D500 are shown and columns C, E & F are hidden. Clicking cell D4 will show all data.
I can create the button so that it is sized specific to the cell and follows the cell sizing and I can create a button to filter only columns D or E or F, etc... but that means that each button is a separate VBA, macro.
A while ago I found a VBA code that allowed me to sort rows Asending/Desending depending on which button in which column was clicked... See inset: and this allowed me to add columns without changing the code. So I think If I can modify this code this will work great for me..
Sub SortTable()
'code written by Dave Peterson 2005-10-22
'2006-08-06 updated to accommodate hidden or filtered rows
Dim myTable As Range
Dim myColToSort As Long
Dim curWks As Worksheet
Dim mySortOrder As Long
Dim FirstRow As Long
Dim TopRow As Long
Dim LastRow As Long
Dim iCol As Integer
Dim strCol As String
Dim rng As Range
Dim rngF As Range
Could ye have a look at this sheet. I need to extract the cells that are in ColumnB but not in ColumnA.
View 5 Replies View RelatedI have a spreadsheet with 20+ columns. Each column contains a list of invoice numbers, eg, 1234. The lists are all of different lengths (see below). I want to find a way to find/highlight/identify those invoice numbers that appear more than once in the entire sheet (eg if invoice 1234 is listed in column B, and also in column H, and/or if invoice 5678 is listed in column A, and also in column J, and also perhaps in column D, etc.)
I've searched this forum but haven't found anything about searching for multiple duplicates in multiple columns. Ideally the matches would be highlighted in different colours, (eg all cells that contain 1234 would be red, those that contain 5678 would be blue, etc., for ease of identification) but I'm not sure if that's possible. I've attached an example that I've shaded myself to show what I mean. I've tried the MODE function but that only tells me which invoice number occurs the most.
I have a question about sorting. I would like to sort multiple columns from small to large at the same time. Is this possible? I have over 400 columns to sort so I would rather not do this one column at the time.
Example
A.... B.... C
0.2 0.4 0.3
0.4 0.3 0.5
0.1 0.6 0.1
shoud be
A.... B.... C
0.1 0.3 0.1
0.2 0.4 0.3
0.4 0.6 0.5
In Sheet1 from row 12 on down in columns A to E I have numerical values.
Column F has letters, either N or S
Column G has numerical values
Column H has letters, either E or W
and columns I, J and K have numerical values again
On a new sheet (Sheet2), I want everything copied but the numerical values
in columns G need to be changed to negative if the cell to the right, column F,
have an S and the values in column G need to be changed to negative if the cell
to the right, column H, has a W.
Columns F and H are therefor not copied to Sheet2
(Sheet1 has quadrant readings and Sheet2 will end up with azimuth readings)
The result is that Sheet2 will have all numerical values from column A to column I
with columns E and F either positive or negative values.
Currently I use the following
Sub CopyTNS()
Sheets("Sheet1").Range("A12:D" & Range("D65536").End(xlUp).Row).Copy _
Destination:=Sheets("Sheet2").Range("A12")
Sheets("Sheet1").Range("I12:K" & Range("K65536").End(xlUp).Row).Copy _
Destination:=Sheets("Sheet2").Range("G12")
I have a problem with a data set that I'm working on. Basically, I've got a data set that was downloaded from a weather station. I need weather data like average temperature, maximum temperature, minimum temperature for each day over a 90 days period. This is simple enough.
The problem, however, is that the weatherstation has been sampling every 5 minutes. In the data sheet, each day is represented by 12*24 rows of data (12 samples per hour times 24 hours). The total dataset across all days is something close to 26000 rows!
Of course, I can spend hours doing all this by manually by average(), min() and max() and then selecting the cells I want it to apply to each time, but the thought of doing so makes me wince. I would have to do it 90 times per column across hundreds of cells each time and I'm after much more than just temperatures.
Is there a less labour intensive way of doing this?
I routinely have do download massive data sets of reporting that is saved as an excel spreadsheet. The three columns of sample data attached are Report Numbers, Report Evaluation Serial Numbers, and Report Evaluator ID.
As seen in the attached spreadsheet, there can be multiple Report Numbers (in same field separated by comma) which have been evaluated by different Evaluators. It is my responsibility to account for the number of Reports that have been evaluated, and many other metrics from like data. The issue I have is when more than one report number is listed in the same field I need to parse the data into its own field for ease of counting (and also maintain the adjacent data). It is not a problem to merely copy the fields and delete the excess numbers, however when dealing with thousands of Reports, and Evaluators this can be very time consuming. In the attached file I have separated .xls into three workbooks to help explain my problem: Initial state of Data; What I need To Parse Out; and The final endstate I require. I hope that I have explained this issue with enough detail. I am sure that the attached file will explain better.
I have a simple AVG formula and I would like to insert the word "minutes" after the result.
I cant get it to work .... i know this is simple, but I am drawing a blank!
AVERAGEIF('producton 3'!E:E,"march 2008",'producton 3'!G:G)
I use this formula to look for a word in this range. Can I add to this formula to do the same thing but in a second range, new word. OR can I add a second formula behind this one?
Code:
=ISNUMBER(MATCH("CPM",'OBS5'!C7:C26,0))
Can I add the range of D7:D26 and look for GFT with the same formula?
I wrote out a long IF statement in Word, but when I pasted in the formula bar, I got an error. I've determined that the quote marks are causing the error. Can anyone advice how to fix this going through and changing the quote marks one-by-one?
View 9 Replies View RelatedI have a UDF which basically accomplishes a lookup. To do that I use this
Function name(number As String)
Select Case number
Case Is = "1"
name = "BOB"
.
.
.