Finding Min / Max Ranges In One Column

Feb 17, 2012

I have one column that has over 120,000 rows. In the column it is split into sections. I can manually find the min max from each section but would like to know how I could do this automatically throughout the whole column.

Here is a sample of data.

Column A
20.3456
21.4567
22.5678

19.3456
18.4309
19.4789

[code]....

View 5 Replies


ADVERTISEMENT

Finding Values Within Two Ranges

Feb 18, 2013

I have people who wrote down that they attended a location on a certain date at a certain time, and I have their start and end time.

So for example my person data has something like this:

Arrive: 1/1/12 7:00 AM,
Leave: 1/1/12 10:00 AM

Arrive: 1/1/12 3:00 PM
Leave: 1/1/12 4:00 PM

Arrive: 1/4/12 8:00 PM
Leave: 1/4/12 10:15 PM

I also have those fields formatted as text and as decimals so I can work with whatever I need.

The next portion is a list of events that occur at these same locations. Here are some examples.

Event 1
Start: 1/1/12 8:15 AM
End: 1/1/12 12:15 PM

Event 2
Start: 1/4/12 3:00 PM
End 1/4/12 8:30 PM

What I need to find out is if the person was present at the location during any of the events.

A person may write down more than one visit to the location in a day. The events only happen once per day. I'm sure there's a pretty manual way to do this, however the list of people and events spans an entire year and it will be too time consuming to do it that way.

View 2 Replies View Related

VBA To Select Ranges And Finding Last Row

Feb 4, 2014

(1). selecting a specific range to copy that is within a table but starting at a specific row to the bottom of the table. E.g.
Range("C4").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy

(2) finding the last row and then setting as a variable:
Range("D" & Rows.Count).End(xlUp).Select
lLastRow = ActiveCell.Row

View 8 Replies View Related

Finding Addresses Of Named Ranges

Dec 5, 2006

I have what I think is a simple question. I simply want a function that shows the text string address of a named range. If I can do that I can then do a vlookup from another sheet, put the result in an address function, and in effect automatically update dynamic ranges on another sheet.

I swear I have seen this but I can't find it now. Searches result in hundreds of hits, none of them relevant.

To make sure I've explained this properly, I want to put the name of a named range in A1 and have the address of that range appear in A2.

View 9 Replies View Related

Move Ranges To Corresponding Ranges Based On Column Having Data

Oct 25, 2007

I need help creating a macro that will search through my excel spreadsheet and for every instance where column A isn't empty it should cut a range of columns from that row and paste them in a different range of columns in the row before it. It should then delete the row that it cut the columns from and keep searching until it has done this for the whole worksheet. I can modify which range of columns are needed, but it has been so long since I've worked with excel macros that I haven't been able to do it.

View 5 Replies View Related

Copy Or Move Column Ranges From 1 Sheet To End Of Column Range Of Another

Mar 7, 2008

I have two different Excel reports and the data needs to be copied from each column on one spreadsheet and pasted to the bottom of the equivalent column on the other spreadsheet.

So, is it possible to get a macro that will copy the data from one column then paste it to the next free cell in the column on the other spreadsheet.

If I could get some code to do one column then this should be enough to get me started and I could apply this to the other columns I need to copy.

View 8 Replies View Related

Finding The Sum For Values In One Column That Are Connect To A Value In The First Column

Feb 10, 2009

I have two columns. One column has UPCs - some of which are duplicates. The second column just has number values. I'm trying to add the sum of all of the numbers in column two which are attached to their respective UPC. For example,

COL A///// Col B
11111111111///// 10
00000000000///// 15
11111111111///// 10
11111111111///// 4
00000000000///// 2

So, I need a third and fourth column to give me the total value for a single SKU(col A) of all the values in col B. In this example the Third column would contain the SKU, and the fourth column would contain the sum of all values in column B that are associated with the single SKU in column three. The third and fourth column would look like this:

COL C///// COL D
11111111111///// 24
00000000000///// 17

View 2 Replies View Related

Finding Matches From Column B Within Column A

Apr 6, 2012

Here is what I am trying to accomplish.

I have to columns.

I have copied column A from a PDF file. It contains entries like this, all in the same column:

5 0.002HP Direct- 26845 7/1959 Airesearch

This column contains an ID # (5), a description (0.002HP Direct), a part # (26845), a date (7/1959), and a manufacturer (Airesearch). All this info is in one column. This column is 11,000+ entries long.

I have column B which is 45,000+ entries long, and contains ONLY part numbers, like this:

325111

I would like to compare column B to find the matching results from within the text of column A, and put these matches into column C.

View 3 Replies View Related

Finding Column Name Using VBA And Selecting Column After?

Jul 2, 2013

augmenting current code to select the column after a column. Current code is:

Code:
If Sheets(data_sheet1).Cells(2, iCol).Value = "Stations" Then TargetCol = 1
If Sheets(data_sheet1).Cells(2, iCol).Value = "Agency" Then TargetCol = 2
If Sheets(data_sheet1).Cells(2, iCol).Value = "Advertisers" Then TargetCol = 3
If Sheets(data_sheet1).Cells(2, iCol).Value = "Product Code" Then TargetCol = 4
The next line should find the column after "Product Code".

View 1 Replies View Related

Finding MAX Value In A Column Not Just The Last Value?

Jan 22, 2014

I have a working formula that gives me the last value in a column using Index formula below. How can i slightly adapt the formula to find the maximum value in that column instead?

=LOOKUP(10^99,INDEX('Data Drop'!$A$15:$AZ$10000,,MATCH($H$9,'Data Drop'!$A$15:$AZ$15,0)))

View 2 Replies View Related

Finding Column Name

Nov 5, 2008

How can i know name of the column.

Example:

View 9 Replies View Related

Finding Column Or #

Jun 5, 2007

want to look at a row and find out what column has a Y in it

View 10 Replies View Related

Finding Last Column

Jul 9, 2007

Using and array to go through a series of sheets and do stuff (Thanks Gerald and Von Pookie BTW). I have used code which finds the last row (varies from sheet to sheet), but not the last column (which also varies sheet to sheet).

Finding Last row
LastRow = Range("A" & Rows.Count).End(xlUp).Row

However this code doesn't seem to work for last column...sample...
LastCol = Range("A" & Columns.Count).End(xlLeft).Column

Is there a trick I'm not seeing? Does this only work using the 'Cell' function in VBA? If so, how would the line of code look? I'd really prefer finding the column letter as opposed to using the 'Cell' method if possible.

View 9 Replies View Related

Finding Last Used Column

May 5, 2007

I am currently using the following code to find the last cell in a column that contains data.

lLastRow = ActiveSheet.Cells(Rows.Count, "a").End(xlUp).Row

Can anyone give me the version of this that would find the last cell in a row that contains data. The code would be used in a loop so I would need the row reference to be a variable.

View 6 Replies View Related

Finding Next Empty Column

Jun 6, 2008

I need to append this macro to find the next empty column to place the data in. The orignal VBA works fine, but I need to go into the editor, and repalce the offset number every time I add a new row (weekly).

Here's the orignal coding:

View 9 Replies View Related

Finding What Numbers Are In One Column But Not The Other

Nov 10, 2009

I have a large list of numbers in two columns. I need to know what numbers are in column A but don't appear in column B. For example if the numbers are 1 2 and 3 in column A but column B only has 1 and 2 I need to know that 3 is missing.

the only thing I can think of is doing =IF(A1=B1,"TRUE","FALSE") however typing this a thousand times would not be practical.

Is there a macro that can check column A against column B and tell me which ones are missing?

View 10 Replies View Related

Finding Names In Column That Appear Only Once?

Nov 2, 2011

In a column i have multiple names, most individual names appear many times.

I want to find the names that have only one entry (appear only once)

Is there a vba that could search a column, and underline all the names that appear only once?

View 7 Replies View Related

Finding Column / Row Heading?

Dec 20, 2011

I have a 70x70 table where I teased out the largest 20 values. I'd like to utilize a formula to deliver the column headings (as well as the row) headings for each of these 20 values. VLookup and HLookup don't seem to work for me, and Index/Match seems to only work for single columns.

It might be worth mentioning that is highly unlikely that any of the values in the table are repeated.

View 1 Replies View Related

Finding Last Row In A Column - Always Returning 1?

Feb 5, 2013

Why is lastRow always returning 1? Even after adding values to worksheet and running macro - its always returning 1 for lastRow.... Am i missing something here? Do I need to refresh worksheet or something? I just dont get it :/

.Range("B:B").End(xlUp).Row

Code:
Option Explicit
Private lastRow As Long
Private curRow As Long[code].....

View 7 Replies View Related

Finding The Last 10 Values In A Column?

Apr 29, 2013

I have a graph which is reading from a table. This graph is reading flows from a flow meter, but after reading data for over an hour the graph gets really squished. I'm looking at creating another graph with just the last 50~ values from one column. Is there a way I can create another table that only reads the last 50 values from one column?

View 6 Replies View Related

Finding The Min. In Column B Between Two Occurances

Jun 6, 2007

Is there a way to find the minimum value in column B that corresponds to the two occurances of "Yes" in column A.

Column A Column B
NO 1
NO 4
NO 7
YES 6
NO 3
NO 9
Yes 2
[Note: the numbers are in column B.]

I basically want to return the # 3 from Column B.

View 9 Replies View Related

Finding Whether Value In One Column Exists Or Not In Another

Sep 21, 2007

I have serial numbers say 1 to 100 in column A. In column B i have values which are text and numbers combined. In column C I have similar values as in B.

Now, if any value in Column B appears in Column C, then in Column D It should tell me Yes or No or 0 or 1.

I basically want to know whether any value from Column B exists or not in column C. I tried Countif and Vlookup but didn't work.

View 9 Replies View Related

Finding Smallest Value In A Column

Aug 21, 2008

In column A, I have a list of names.
In column B, I have a list of values.
I want column C to show me which name has the smallest value from column B.
In other words, if there are 5 names, I want ONE name to give me a value of 10 (for the smallest value), and the rest of the names I want to show zero.

I also have in column D another list of values.
In column E, I want to show first, second and third place amongst the list of values from column D. The rest of the names I want to show zero.

View 17 Replies View Related

Finding Names In A Third Column

Oct 13, 2008

I have three columns of names. I need to loop through the first two checking to see if any name is in the third column and if so, place a 'found' in a fourth column.

View 9 Replies View Related

Finding Numeric Value Of Column

Jun 23, 2006

how I can get the userform to close when another worksheet is selected. what I really need is for the userform to just show on one worksheet (not close) Is that possible? If not I want to be able to re-size the userform when another worksheet is selected (like getting it to minimise)

View 2 Replies View Related

Finding Same Strings In The Same Column But Different Row

Apr 20, 2007

Lets say I have a column of data and there are many sub parts.

A

John
Apples
xxx
Banana


Peter
Apples
xxx
Banana
yyy

How do I modify the range. find to locate the 2nd "Apples" , 29th "Banana" and so on or is there another method ?

View 9 Replies View Related

Finding Data From A Four Column Table

Dec 29, 2008

I have a table (Sheet 1) with four columns data, A,B,C and D. There are about 60,000 entries in them. In Sheet 2, I wish to enter a value in A1 which will be from A OR C columns of Sheet1 and get its corresponding value from B or D (Sheet1) in B1 (Sheet2) with the help of a formula. i.e. IF(A1, Sheet1!A60000:C60000, then B1 = B or D of Sheet1).

View 2 Replies View Related

Finding List Of Keywords In Column?

Mar 17, 2014

I need to find 100 or so keywords in a column, I have the list but how would I search multiple keywords as there are 10k columns and it would take forver to search for them manually?

View 4 Replies View Related

Finding And Selecting Last Non-Zero Cell In A Column

May 20, 2014

I putting together a spreadsheet that applies Payments (as they come in) against the oldest open invoice. As payments come in, old invoices are closed out. An aging is done and late fees are applied.

I have made a macro that inputs all of the information of the invoice in a list. However, when a payment comes in, I am trying to write a macro that:

1) in column G - Finds the first non-zero balance
2) Applies the payment amount to that open invoice. If there is additional funds left over after the satisfaction of that invoice, I would like the payment to be applied to the next open invoice until all the funds of the payment have been drained.

I am having so much trouble trying to even just locate the first nonzero balance and select it.

View 13 Replies View Related

Finding Last Cell With Data In A Column

Oct 20, 2009

I have the following code. Is there any way to select a range once the last cell with data is found. I would like to be able to select whatever cell in column A is selected with the code below through E2.

View 4 Replies View Related







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