When the value 1 occurs in col M row .. (it will only occur once in each time block) and N1 on the same row has the highest value [ 1 and 48.3 above] put 1 in column O on the same row else a 0.
If 1 occurs in column N (time block X) and the value in N is not the highest then store a 0.
This needs to be done for each time block.
It feels like this can probably done by an If or vlookup type of routine but I can't come up with one that works across blocks of times.
I need to move data stored in column A to columns B and C, then skip 3 blank lines and perform the operation again. The attachment shows a before and after example. I'm very much a novice.
I have a spreadsheet with two columns - column A contains dates and column B has the corresponding data (always numbers). The data is not uniform (i.e there may be lots of entries in any given day and none over the next few). The data is always sorted in chronological order.
I want to set up a summary table to show the min, mean, median, max for each week. I have set up an array to calculate the mean, but I am having trouble working out a good way of gettting the others short of having a set of columns that manually define each cell...for instance =min(b3:b27) or =min(b28:b30).
I am looking to select two values from a range based upon their relationship to the maximum value. In this specific case I am trying to calculate the Quality factor based upon the frequency response of a transducer. So I need to identify the Maximum impedance and its corresponding frequency. I also need to identify the 3db points either side of the maximum impedance.
The 3db points are found at 2/3rds of the maximum value of the impedance (Impedance Mag in attached spreadsheet). Calculating the first 3db point isn't overly difficult as I just calculate the value for the 3db point and use the MATCH function to find the closest Impedance value and then work out the corresponding frequency from that. I am stumped as to how to calculate the second 3db point (above the Max impedance value). I have attached a spreadsheet with frequency information in column A, the other columns are used to derive the values found in columns M (Impedance Mag) and N.
I was hoping that my formula would give me the count number based on the Maximum time (latest time) and the Name field...My result is a 0 instead of 62 (the correct answer).
When comparing collumns to find out if the values are the same or different I use this formula:
=IF((A2)=(B2);"same";"different")In some cases I see the results are not OK. I see the same values but the result states "different". This might be caused by spaces around the value that does not exist in the other cell I think.
File is attached, the green marking show what I expect to see, the yellow marking shows what puzzles me.
how to put together a function that will provide for me 1 of 3 results, ( lower than, higher than or similar to). What I would like to do is have a function to have the results for column B, be either "lower than", "higher than" or "similar to" based on column A. Column A will have a range of %'s from -100% to 100%. What I would like happen is the following results for cloumn B, based on column A. If Column A is:
Between -5% and 5% - Then cloumn B = "similar to" >5% - Then cloumn B = "higher than" >-5% - Then cloumn B = "lower than"
I am working on a spreadsheet where multiple inputs are entered by a user in certain cells and ranges. I would like to block the ability to enter values in a certain range based on the condition of a check box in the spreadsheet. I do not want to delete or hide the range. Does anyone know a simple command to either allow or not allow input in certain cells/ranges?
Is there a maximum amount of hidden columns within Excel? I have double-checked protection, and I have enough columns total for the action I'm attempting to do. I am using Excel 2003, and working on a rather large spreadsheet for a forecast. The basics of it is that I have macro's within buttons set-up so that users can hide columns and just view certain columns for approximately 30 columns per week and 5 weeks. And I can run the hide macro's for up to 4 weeks at a time, but when attempting to hide the 5th week it gives me a "Run time error 1004" Unable to set the Hidden property of the Range class.
I'm trying to find a macro that will copy data from the areas of B120:E179 and I120:K179 for example (linked to another worksheet within the workbook) and special paste (Values Only and skipping blank cells) it to the next available open cell up top where basic data entry will be taking place B10:E29 and I10:K29. I need it to only copy/paste the rows with data (skipping all cells/rows with no data) and once it is finished coping I will need it to place an "X" in column M next to the row that it copied data from. I would also need it to reference the data in each row from B to E and if there is an entry say on B14 to E14 that matches it but if I10 to E29 are blank then paste that information on row 14. If it does not match or if those columns are full then paste on next available line.
I hope I'm making sense here. This is for a vehicle tracking log between checkpoints. Each driver and info will be listed on each row. Columns B through E will contain information for each driver: name, badge, #passengers, and vehicle #. The log lists location, time, and destination for outgoing travelers in columns F to H. Incoming info is listed on Columns I to K............
Using the following code to remove empty rows based on whether a specific range of columns is empty. The code works if the cell has a zero, but not when the cell is blank. An example of the data is attached.
VB: Public Sub DelRows2() Dim Cel As Range, searchStr, FirstCell As String Dim searchRange As Range, DeleteRange As Range
I have number of items and many items appear more than once. I need a formula so that counts the number of item appearing maximum number of times and it displays the name of the text written NOT the number of times it is written. It should also calculate number of times it appears in a particular month.
For E.g.
Table 1-5-2012 Chair 1-5-2012 Fan 3-5-2012 Table 10-5-2012 Fan 1-6-2012 Window 1-6-2012 Glass 1-7-2012 Glass 9-7-2012
So I have a workbook that has a range of dates in one column and a corresponding range of times in the column next to it. On a separate sheet I want to return the lowest time&date, and then the maximum time&date. I've tried a few different things but nothing is working.I tried this:
Code: =MIN(B:B+D:D)
This didn't work for some reason. It did return a time, but it wasn't the lowest. The maximum wasn't even close.
Previously I was just doing the min/max of the date in one cell and then the min/max of the time in a different one, but obviously that didn't work since the time wasn't going off of the maximum date, so it was just showing the lowest time period.
writing a macro to find the max value in each column and delete all the data points that come after it (or preferably: delete all the data points that come 2 rows down after the max, if possible). There will be many columns of data where the max will come at different positions in the column.
Instead of deleting post-max values, it would also be acceptable to just copy values from the beginning to the max to the same column in a new worksheet.
In a worksheet I retrieve data from a SQL query. Now I have to add 5 different calculations per row and each calculation will be stored in a new cell (so 5 columns will be created)
I want to do this with a loop macro and calculate this till the last "filled" row. The number of rows differs every month.
What loop code should I use and can somebody give me an example of the VBA code. Note that some formulas contains nested If-functions.
I am trying to create a data wall without using filters and manual drag drop
I have a sheet with 1000 sets of data such as below in 2 columns Name and Score
Name score Fred 101 Barney 104 Wilma 110 Betty 94 Dino 96 Pebbles 112 Bam Bam 120
What I would like to do is sort the data into another worksheet with score as rows in a range and an automated way to list the names under the columns as names such as below (each range is a different) (not displaying correctly below bu names are stacked under the score ranges they correlate to)
Is there an easy way to do this using formulae or other? Tried pivot table and it got a bit messy with the only way of doing it being names and data as columns with multiple repeated data.
I am trying to add a gantt chart feature to a project summary worksheet. Ideally I'd like to search Col C (Start date) and Col D (End date) for all projects, and based on the earliest start date (ESD) in C and latest end date (LED) in D, repeatedly insert columns labeled with the value of the ESD (ie Feb 6, 2011), increment by 7 (1 week), insert the next column with ESD+7 and continue on until reaching LED.
From A1:A500, I have data with different numerical values. I want to be able to use a corresponding column and rows (example: B1:B500) where I can enter formula where maximum values where be reported. This I would like to change with a simple change of a single cell value (example: C1). So, If C1 has a value of 10, it will be used from every b cell to create a maximum value that would use a range going back only 10 cells for A.
How to lookup for greater than a given particular value in a list of data? Suppose the value to find is in cell C17 & the column to be looked for is F, in the attached sheet. Now the data range is from F8:L27. If the value in C17 is not present in Column L, then the value greater than the specifed value should be searched in Column L. I have tried using VLOOKUP, but cannot find for a range of values.
A B C Country Revenue Month 1 UK 10 Jan 2 France 20 Jan 3 US 30 Jan 4 UK 25 Feb 5 US 35 Feb 6 France 5 Jan
and so on...
So where country = UK, France or US I want to retrieve the MAX revenue from all months and which month it was in. Eg UK max revenue was in Feb of 25. I am not sure how to apply the max formula with criteria. Is there any way to do this?
Function to select two columns based on the header and the variable given.
Sample excel file attached for your ref.
Excel sample.JPG
Find the excel file in which I am looking for an formula which will look up variable in Col A for Eg USD and search the same in Row 1 and then will select COL D:E and so forth for other currency.
I need some VBA code to hide columns if they are outside of a specified date range.
- the worksheet i need to run this VBA on is named 'Summary' - Columns A to G need to remain un-hidden at all times - from H17 to ZZ17 i have every month of the relevant years listed (all there chronologically) - D3 holds the 'Date From' variable - D4 holds the 'Date To' variable
I am trying to return a cell address range based on values in different columns. Attached is an example.
In Column A1 I have "Range" and below that a set of numbers from 1 to 31.
In Column B1 the name "Test" is used as an identifier, below that are the letters "a" though to "e". Once the letter "e" is reached the identifier "Test" is moved to column C "C6" and the alphabet continues from "f" down to "j". This process is repeated through the rest of the alphabet and the identifier moved to the next column after every 5th letter.
What I want to do is as follows:-
I would like to know the cell addresses of all instances of "test" from Column A numbers 6 throught to 24. The result should be C7:C12, D14:18 & D20:24. The results should ignore all instances of the identifier "test" and only return the cells which contain the letters of the alphabet.
I have tried using Vlookup which works well if the letters are all in the same column and I have incorporated the Address and Match formulas to return the range if all the alphabets are in the same column, but I do not know how to do this if the identifier "test" and letters move to a differnt column.
I have used max and min function to display minimum and maximum time value; however, it is not displaying the correct time value from the list. I think there is a better formula to achieve this. From the sample data displayed below, minimum time value should be 11:30PM and maximum time value should be 6:30AM
See sample data below:
4/1/2013 11:45 PM 4/1/2013 11:30 PM 4/2/2013 6:30 AM 4/2/2013 6:15 AM 4/2/2013 6:00 AM 4/2/2013 5:45 AM