Mark Maximum Value In Range Block Based On 2 Columns

Mar 21, 2008

I have a long list of stock values (col C) arranged in time blocks so;

CREATE TABLES LIKE BELOW?B C M N

19:00 50.00 0 47.1
19:00 51.00 0 47.5
19:00 52.00 1 48.3
19:00 51.00 0 47.3
19:10 36.00 0 45.3 (nb time has changed)

etc

I need a routine that takes the following action;

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.

View 9 Replies


ADVERTISEMENT

Transpose Every X Range Block Across Columns

Jan 15, 2008

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.

View 3 Replies View Related

Maximum And Minimum Formulas Based On Date Range

Apr 28, 2009

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).

View 2 Replies View Related

Return Values In Range Based Upon Relationship To Maximum Value

Jan 22, 2008

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.

View 5 Replies View Related

SUM MAXIMUM Or Index/Max: Count Number Based On The Maximum Time??

Oct 23, 2008

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).

=SUM((Download!$H$2:$H$10=A4)*(Download!$D$2:$D$10=MAX(IF(Download!$H$2:$H$10=$A4,Download!$D$2:$D$1 0)))*Download!$I$2:$I$10)

Would a Index/Match/MAX function be more efficient?

View 4 Replies View Related

Comparing Columns And Mark Difference?

Oct 30, 2013

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.

View 11 Replies View Related

How To Convert A Block Of Rows To Columns

Jun 19, 2013

I want to convert a bloack of rows to columns

1abc2xyz3mnq
4efg5klm6rst

required format
1abc
4efg
2xyz
5klm
3mnq
6rst

View 2 Replies View Related

Cost Based Mark Up

Sep 26, 2007

set up a cost based markup spreadsheet?

I need to be able to mark up values from 0.01-9.99 by 20% of their value, and 10.00 and above by 10% of their value.

I only know how to mark up values by a single percentage.

View 9 Replies View Related

Mark Numbers Between Numeric Range, Above Or Below

May 21, 2008

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"

View 3 Replies View Related

Block Input Into Range When CheckBox Checked

Sep 27, 2007

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?

View 3 Replies View Related

Maximum Hidden Columns

Oct 12, 2007

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.

View 9 Replies View Related

Copy/Special Paste Data Within A Range To Next Empty Cell Then Mark The Copied Area

Aug 29, 2008

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............

View 4 Replies View Related

Remove Empty Rows Based On Range Of Columns If Columns Are All Empty (no Data) Delete

Oct 24, 2012

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

[Code].....

View 1 Replies View Related

Display Maximum Times Text Appears In Particular Columns

Dec 19, 2012

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

The formula should work as follows

Table 2 May-12
Glass 2 July-12

View 6 Replies View Related

Get Maximum / Minimum Date And Time From Separate Columns?

Mar 21, 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.

View 9 Replies View Related

Find Maximum In Mutiple Columns & Delete All Values After

Dec 2, 2006

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.

View 3 Replies View Related

Copy/Fill Down Formula To Maximum Row Of Last Cell In Columns

May 27, 2008

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.

View 6 Replies View Related

List As Columns Based On Range?

Mar 29, 2012

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)

95 - 99 100 - 104 105-109 110-114 115-119 120
Betty Fred Wilma Bam Bam
Dino Barney Pebbles

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.

View 2 Replies View Related

Add Columns Based On Date Range

May 25, 2012

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.

View 4 Replies View Related

Maximum Based On Condition

Dec 28, 2006

function that can find the maximum value in a range, where the range is defined by the rows containing a specific string, i.e:

In column A:
Alm Rød
Alm Grøn
Alm Blå
Special Rød
Special Grøn
Special Sort
...

In Column B I have values for each of the above string names.

Now I would like to find the maximum value for the range with names starting with "Alm".

View 6 Replies View Related

Change Range Of Maximum Value

Jan 2, 2009

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.

View 9 Replies View Related

Maximum Text From Range

Mar 17, 2009

I am trying to get the maximum from a range of text cells. The data in the cells consist of

00001
00003
00014
00028
00007
etc.


the formula I am using is:
=MAX(VALUE(Interface!E2:E20))

the answer that is returned is 15 and it should be 28. Any ideas on how I can fix this?

View 9 Replies View Related

Maximum Range For Sum() Function?

Aug 25, 2009

I am trying to sum 44,582 cells in a column, the values in all of them are either 0 or 1, but I always get a value of 0.

It works when I bring this right down to 1000 or 1500 cells but it can't seem to sum the entire range.

This is Excel 2004 for Mac OSX Version 11.3.5

View 9 Replies View Related

Lookup Value Above Maximum Value Of Another Range

May 15, 2008

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.

View 2 Replies View Related

Maximum Value Based On Multiple Variables

Jul 28, 2009

Maximum value based on multiple variables. Basically what I have is something like this:

View 3 Replies View Related

Return MAXIMUM Based On Criteria

Aug 13, 2008

i have a spreadsheet like the following

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?

View 5 Replies View Related

Excel Function To Select Two Columns Based On Range?

Jul 30, 2014

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.

View 4 Replies View Related

VBA To Hide Columns Based On Input Date Range?

Mar 26, 2014

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

View 11 Replies View Related

Return Range Address Across Different Columns Based On Conditions

Apr 23, 2008

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.

View 9 Replies View Related

Maximum And Minimum Time Value In A Range

May 17, 2014

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

[Code]....

View 8 Replies View Related







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