Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Excel


First Instance Of A Value In A Column

I need a simple formula which does the following: I have a column of numbers, and I want to find the first instance which is equal or greater than a specific number. For example,

Column A

If the specific value is 55 the formula needs to return: 67
if the specific value is 10 the formula needs to return: 23

View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Find Last Instance In A Column
I am in the process of designing an inventory like spreadsheet with prices. If possible, I'm trying to find a well to look at a column for every instance an item shows up (lets call them apples) & then find the LAST instance of apples showing up to pull the pricing of that row only. Is this possible?

View Replies!   View Related
Search Down The First Column And Find Any Instance Of The Letter
I have this piece of code

Sub do()
Dim i As Integer
Dim x As integer
x = 5000
i = 1
Do Until i = x

If Cells(1, i).Value = "C" Then
Selection.Insert Shift:=xlToRight
Selection.Insert Shift:=xlToRigh

i = i + 1

End If
End Sub

I want it to search down the first column and find any instance of the letter C and shift it (along with the entire row) over two clumns to the right.

View Replies!   View Related
Use VBA Code If Cells Within A Column For Instance
I want to use VBA code so that if cells within a column for instance, column I, is selected it warns the user 'Check you have used the correct column'.

View Replies!   View Related
Add 2 Instance >=.01 Of First Instance Of >=.01
I have the following
Private Sub test2()
Dim c As Range, t As Long

With Worksheets(3)
Set c = Range("AO10", cells(Rows.Count, "AO").End(xlUp))
t = Application.WorksheetFunction.Max((Application.WorksheetFunction. CountIf(c, ">=.01") * 2), 0)
Sheets("Template").Range("D3").value = t
'Range("D3") = t
End With
End Sub

The code is suppose to get the value of >= 1 percent from AO10 then go down the column until it finds the second instance and then add that number to the tile.

Thanks for any help in advance.

Have a great Friday all! : D


View Replies!   View Related
SUMIF In A Column: The First Instance Of Each SUMIF
I have many kitchens using the same recipes. I need to distill information down until I've got a summary of how much is being made. Uploaded is a condensed version of the point in the process I'm having difficulty with. This workbook will pull information from 8 other workbooks and give me excatly what everyone made on any weekday.

And from there, with the kind help of this forum, I figured out how to do a SUMIF based on the recipe number. And it summed up all instances of 'Recipe X' being used. However, it continues to SUMIF itself all the way down the page... which is good, because of how recipes are chosen for each kitchen. However, I only need to report one instance of each recipe.

In the uploaded example (and I apologize for the colorful sheet, but it helped me double check what I was working on.) ... I only need to report the PURPLE results elsewhere... the first instance of each SUMIF.

View Replies!   View Related
VLOOKUP - Last Instance
Using Excel 2003 SP2. The formula =vlookup("apple",table,2,false) would return the data in the second column of the array named "table" for the FIRST INSTANCE it comes across for the word "apple." Is there a formula to have it return data for the LAST INSTANCE? This is one where I say to myself "Self, there has got to be a way to do this," but I just can't figure out what it might be.

View Replies!   View Related
Returning First Instance Of Zero
I am trying to create a formula that will search a row left to right for the first instance of zero and return the corresponding column label. I had this working for a smaller table using a couple of hidden columns with nested ifs however the new data set is approximately 25 columns wide and it will get very messy using the same approach. See attached sample with desired results.

View Replies!   View Related
Multiple Instance Of Excel
I am working on an application for a monthly sports tournament that I run. There are three workbooks to this application: the Administration workbook, the Bracket workbook, and the Leaderboard workbook. I currently have a dual monitor setup (extended, not clone) with my laptop in front of me and a large TV on the wall for the players to see.

In order for the players to see the bracket and the leaderboard, I open excel, then I open the Bracket.xlsm workbook, then the Leaderboard.xlsm workbook, and I drag those to the TV. I then open another instance of excel on my laptop, and open the Administration workbook. This stays on my laptop and the players cannot see it.

Here's what I want it to do:

In less words, the administration workbook controls the other two workbooks. Every time a player reports a win/loss, I enter that into the Administration workbook, and that needs to update both the bracket and the leaderboard, so the players can see it on the TV. So, basically, all the data is in the administration workbook, and the other two serve as displays for that data in a format the players can understand.

Here's my problem:

When I run a macro that is supposed to update the other two workbooks, I get an error: "Runtime Error '9': Subscript out of range." I believe this is because of the seperate instances of Excel. Since Bracket and Leaderboard are in a different instance than Administration, it can't 'see' those other two workbooks. Below is the part of the code that deals with these three workbooks: ....

View Replies!   View Related
Find Every Instance Of 0 Within A Workbook
I need a Macro that will find every instance of 0 within a workbook and then replace that value with an average of the values in the two cells above it and the two cells below it?

View Replies!   View Related
Close Instance Through VBS
how to close the instance of excel created by my VBS script.

I run the script to open a workbook run a macro within the workbook and save it. I'd like to also close the workbook and the instance of excel.

If I close the workbook within the end of my macro I get an unknown run time error from my script. If I elect to just save the file and close it within the end of script, the workbook closes but the instance of EXCEL.EXE is still running in task manager.

View Replies!   View Related
2d VLookup: Unique For Each Instance
Column A contains numbers that repeat themselves. in column B codes are assigned to each number. numbers in column A may have multiple codes in column B. but are unique for each instance the same number may appear in column A.

what i'm trying to do is.

have the numbers in column A show only once and then have the codes for the corresponding codes appear each in seperate columns rather than all in one.

View Replies!   View Related
SUM But Only The First Instance If There Are Duplicates
This is an export from a shopping cart. Each row is an individual SKU that was ordered. So if John Doe orders 4 items on the same order, I've got 4 rows with most of the data being the same. I want to sum my "Grand Total" column, but only take one instance when the Order-ID is repeated.

Now the sample data: ...

View Replies!   View Related
How To Remove Text After The Second Instance Of An Asterisk?
I'm trying to convert variable length strings which are being copied from a display and loaded into an array.

I have it working fine for the majority of the data, which comes in looking like "*ABC@US" or "*AABC@US"

However, some of the data looks a bit different, particularly lacking the @ symbol. So what I end up with is


What I need to get to is just "ABC US" FYI the US part can be 1-5 characters.

SO... I need a way to truncate anything after the second instance of the asterisk. Haven't been able to get it to work using various trim, mid, len, left, right, etc functions.

View Replies!   View Related
Lookup Nth Occurrence Or Instance
I have a very very long weekly table of, say, sales regions, items sold, revenue, profitability, etc.

(Very long here means 120,000 rows, and in Excel 2007 - please don't hold this against me! )

Let's assume Row 1 and Column A are for headers. So Column B is Sales Region and Column C is Item Name. The first Sales Region, beginning in B2, let's call it "America", will repeat (B3, B4....) until the Item Names are done for that region. Then the next Region starts, "Australia", and the list of Items starts again, etc.

Not all the Items will be sold in every Region each week, and even some Regions may disappear from the table one week only to reappear a few weeks down the road. The table is Sorted alphabetically, though, first by Region, then by Item.

One way to VLOOKUP week over week information from last week's report onto this week's report is to concatenate both weeks' Region and Item information (=B2&C2) seperately, and VLOOKUP by that. This returns only combinations of Region/Item that occured in the current week, and with ISERROR, 0 for combinations that occured this week, but not last week. As far as what it returns, this is fine for our purposes but with several pieces of information to VLOOKUP (#, revenue, profit, etc.) and 120,000 rows, it takes forever. Literally over an hour to copy down the week over week parts.

I had the idea that maybe it would be faster if I could define individual VLOOKUP ranges for each Region, and then look up Item within that range. These ranges would vary in placement in the table and in numbers of rows each week, as the number of Items sold in each Region waxes and wanes, hence "dynamic ranges" - I hope I've used that term correctly.

Is there an effective, efficient way to return the row numbers of the first and last instances of a given Region, and use that range for the Item VLOOKUP?

View Replies!   View Related
Lookup Each Instance Of Repeated Data
In the sample file attached, I want to do a lookup with the employee id in the master sheet and find the multiple results in the "open_text" sheet. From there, I want to display the open text results in one row per employee on the master sheet. If there are multiple comments, then the results will be displayed in separate cells to the right of each other (filling comment1 through comment5 if needed).

My main goal at the end of this is to be able to do a mail merge out of the master file. This is why I want the results in one row per employee.

View Replies!   View Related
How To Activate Workbook In Separate Instance
-I've been trying to get an answer to this problem for some time and I would like to try again from a different approach.

I may have 5 workbooks open in 5 different Instances of Excel. The number of files open varies. When the below Function is called, it checks to see if the file, trying to be opened, is already open or not.

Currently, if the file is already open, a mesage is displayed stating that it is open and the user has to search through tabs looking for the file so that it can be displayed.

What I want to do in place of a message, is activate the file that is already open and display it. No message necessary.

I have tried "Application.Activate" and can not make it work.

View Replies!   View Related
Finding Cells With First Instance Of Number
I've got a very large spreadsheet wherein I need to write a formula for each row to find the first cell with any entry greater than 0 and then add to that cell the contents ONLY 5 cells contiguious to it.

For example data set is this (in .csv format for you)

(column headers)
Name, Jan01, Feb01, March01, April01, May01, June01, July01, Aug01, Sept01, Oct01, Nov01, Dec01, Jan02, Feb02, March02, April02, May02


I need formula to find first instance in each row of entry greater than 0 and then add to that the contents of next 5 cells.

Jones would find the 5 and then add the 2,7,9,3,10 to it for formula result of 36
Smith would find the 3 and then add the 8,17,23,9,3 to it for formual result of 63

View Replies!   View Related
Common Macros Ready To Use In Every Instance
i have a couple of macro's i use regular. can these be loaded when i open excel so they are there to run on any workbook i open?

View Replies!   View Related
Force Workbook Open New Instance
I've created a UserForm which the user exclusively uses to interact with a workbook.

The problem is, if the user opens another workbook, it will open in the same Excel "Process" or "Instance" and the user would have to close the UserForm in order to use the other workbook they opened.

In VBA or some obscure application setting, is there a way to force workbooks to open in a new Excel Process (or new "Instance" of Excel)?

Another possibility would be to code something in the UserForm workbook that, on Workbook Open, would start a new separate Excel process....if that's even possible (can VBA execute a system shortcut or system command string?).

View Replies!   View Related
Formula To Calc Total Hours For Each Instance
I want to find out how many hours, in total, relate to "consolidation 1, 2, 3; Lease Renewal 1,2 3 etc. What formula can I use. I am working on a "sumif" but it's not working out for me.
1 Consolidation 4.75
3 External Sublea
3 Consolidation 2
3 Special Project
2 External Sublea
1 Lease Renewal w
1 New Lease w/o T 4
1 New Lease w/o T 1
1 External Sublea
3 Lease Renewal w 1
2 Lease Renewal w .5

View Replies!   View Related
Last Instance In Range Excel Cell Location...
I just used the excellent formula =row(index(range,match(1,index,--(range)>0),0),0))) to give me the first instance of a number, but i am wondering if there is a formula to give me the last instance of the number as well? Maybe? This would save me much time if possible.

View Replies!   View Related
VBA Code To Find The Last Instance Of A Value In A Range
I have a worksheet with a column that lists the city where an item is located. If the city is say Austin I need to find the last cell in the range that has Austin in it. I can find lots of examples where you can find all instances within the range and to find the last cell in the range that has any data in but nothing that tells me how to find the last cell in the range that has a specific value.

View Replies!   View Related
Search For First Instance Of Text & Return The Value
I have a list of product numbers in col. A. In col. O I have a list of file
names that contain the product numbers as well as additional characters. I
need a formula that will search col O for the first instance of the text in
cell A2 and return that value.

The next formula will return all instances that contain the text found in A2.

View Replies!   View Related
List First Instance Only Ignoring Blanks In ROWS
I have a set up of investments. Say A1 through to G1. Then on the next row the investments range from A1 to G1 again. This continues down many rows. There are spaces such as D1 and D2 through E2.


Starting in column H, I would like to list the investments but ignore investments that have already appeared on the row (ie list only the first occurence) and ignore the blanks as well. For example, D1, E1, F1 are to be ignored because of the blank, and the fact that ausbil and amp already appear.
In row 2, the blanks in D2 and E2 are ignored as well as the repeated 'amp' in F2. So the table should look like below from column H:


Is there a simple formula for this? It has to be in rows as I have at least 60 columns of data before these columns begin. There are at least 300 rows.

View Replies!   View Related
CSV Files Open In New File Instance
I regularly process CSV files that are downloaded from various websites. The problem is, for some reason many (but NOT all) downloaded CSV files do not open in "Microsoft Office Excel" and thus, my primary workspace. They instead open in a separate instance of "Excel.exe" which is actually kinda nice because I can treat each separately, move windows around, etc. The problem is, macros that are in my primary workbook, cannot be seen by the secondary instance(s). So while I have created a number of nifty macros to clean up all the data and format it exactly how I want it in the blink of an eye, I can't run them when a file opens in its own instance.

1) How can I force ALL .csv files to open in the primary "Microsoft Office Excel" application? NOTE: Using the normal Windows Explorer "Open With..." function and setting the default application only works for LOCAL files, and does NOT work to control how remotely downloaded .csv files are opened.

2) How can I make it so that macros can be seen between Excel instances - such that when I choose to see macros in "all open workbooks", it will actually see the macros in the open workbook in the other primary Excel instance?

View Replies!   View Related
Macro VBA Find Last Instance Of A Word
I have a spreadsheet which I am trying to put in a macro to add a new page (below the current page in the same worksheet) so that users who are unfamilair with Excel can simply do this.

I have got the macro to copy the cells I want and can get it to paste but the issue is I don't always want it to paste in the same place. The current document is 1 page long but it may need to be up to 10 pages long. I am trying to get it to find the last instance of the word "COMMENTS" and then paste the copied info 3 rows below that.

View Replies!   View Related
Return Nth Instance Of Text String
I have the following formula that returns the most frequently occuring string in a range. what I would like to do is return the 2nd, 3rd 4th and 5th most common occourance as well. I am not sure if I can do this by adjusting this formula or whether that would be a completely diffent formula or worst case senario it is not possible at all.


obviously this is an array.

View Replies!   View Related
Create Instance Of Microsoft Windows Journal
1) When using the command below, how can I determine what the "XYZ" component could be. I see plenty of examples of it being used to start a MS Word session or Powerpoint but I'd really like to see a definitive list.

At the moment, I'm not even sure what to type into Google that describes this part of the command's argument.

Set target = CreateObject("XYZ.Application")

2) I'm just a frightened noob on this site and I tried to follow the advice on bumping my previous post on this subject, having altered my plea. All I got was a telling-off for being a double-poster and my old old thread sat where it was despite my 'Bump' command. Do you have to have at least one reply before your thread moves?

View Replies!   View Related
Find Last Instance Of A Word And Insert Blank Row
I would like to be able to add vb code to my developing macro that searches within 1 column for the last instance of a particular word, then inserts a blank row under that word. All the data is sorted, so the words will be used multiple times, but I need the row to go under the last instance of each word in the column.

View Replies!   View Related
Macro:finding Next Instance Of Text Using FindNext Method
I am facing problems with finding next instance of text using FindNext method. Kindly find code belowe which i have used.

Set srcCell = SourceBook.Worksheets(1).Columns("A").Find("Risk", After:= Sheets("SubArea"). Range("A21"), LookIn:=xlValues, lookat:=xlWhole)
'Set srcCell = SourceBook.Worksheets(1).Columns("A").FindNext
Set firstsrccell = srcCell
Do While Not (srcCell Is Nothing)
tgtCell.Offset(tgtRow, 0) = srcCell.Offset(-1, 255)
tgtCell.Offset(tgtRow, 1) = subAreaId
tgtCell.Offset(tgtRow, 2) = srcCell.Offset(0, 1)
tgtCell.Offset(tgtRow, 3) = srcCell.Offset(1, 1)
tgtCell.Offset(tgtRow, 5) = srcCell.Offset(3, 1)
tgtCell.Offset(tgtRow, 6) = srcCell.Offset(2, 1)

Set srcCell2 = SourceBook.Worksheets(1).Columns("A").FindNext
' If firstsrccell.Address = srcCell.Address Then
' Exit Do
' End If
tgtRow = tgtRow + 1

I checked above code by putting breakpoint, but code is unable to find next instance where it matches the required string (FindNext reamains at the same position).

View Replies!   View Related
Drop Down Box To Show 1st Instance Of Repeated Data
I have a list that I want to show in a drop down box. The list is like this;


Can a drop down box be made to only show each item 1 time?

View Replies!   View Related
Pull Every Instance INDEX/MATCH Criteria Into Consecutive Rows
I'm trying to fix a report that I created but can't seem to figure out a way to display the information for a single student.

I've attached a mock report up so that maybe it would make more sense.

So the first tab, 'DIR', I managed to find a way to pull up only the information for a single student that was selected in the drop-down D1 cell. For that I used a simple INDEX/MATCH combo. The student's name would only appear once in the 'Paste DIR' tab, so it was fairly simple to create these formulas.

Now for the 'Paste Outreach' tab, a student appears multiple times in the chunk of information. Right now, the way that I have the report is so that it would just pull the information from each row, regardless of the student. What I would like to do is find a formula similar to INDEX/MATCH, but find every instance when the criteria is met for the INDEX/MATCH. I would like to be able to log each instance a student has an Outreach log entered. Then if I switch the student selected in D1 of the DIR tab, then it would only populate their Outreach Logs.

So if Student Name & Outreach # matches D1 ('DIR' tab) & "90" in "Paste Outreach, then pull row info into rows 7-11 in Outreach.
Find the next instance Name & # matches, and pull that into rows 12-16, etc.

View Replies!   View Related
Multiple Instances (VBA To Open 3 Workbooks In Their Own Session/instance)
I'd like to use VBA to open 3 workbooks in their own session/instance/etc of Excel 2007. Ideally, there will be one main workbook, that upon opening will subsequently open the other 3 workbooks.

Also, when I open that first main workbook, I will obviously have to enable macros to get any code to run. Is there a way to carry this enabling of macros over to the other sessions to avoid having to enable macros in all 3 other workbooks? (Changing my security settings isn't an option)

View Replies!   View Related
Hlookup: Capture The First Instance Of A Value(ie 1) And Reflect The Top Row Of The Value (date)
Im trying to capture the first instance of a value(ie 1) and reflect the top row of the value (date). I cant seem to make Hlookup work. I got it to work on the first line using index and match, but when i tried to copy it on the succeeding cells, it gives me the wrong data.

I also tried the following

StartedDate started1-Dec2-Dec3-Dec4-Dec5-Dec6-Dec7-Dec8-Dec9-Dec10-Dec

View Replies!   View Related
Run An SQL Query To The Worksheet Of The Workbook Opened Then Ghost Instance Appeared
I am trying to run an SQL query to the worksheet of the workbook opened. This is worth noting, that this code is being called multiple times. Suppose if I have around 100 items in a listview, any item I will check or uncheck, this query will be fired. I tried selecting the five items, and the following code ran five times, and the excel ghost instance appeared.

View Replies!   View Related
Copy A Range Of Cells In Another Workbook Opened In A Separate Instance Of Workbook
I m not able to use the standard Excel Paste Special function when I copied a range of cells in another Excel workbook opened in a separate instance of Excel. Instead, Paste Special thinks that I have copied some non-Excel objects and gave me the Paste As options. This is not the case if I open both workbook within the same instance of Excel. Could you share with us if there is a trick to trigger the normal Paste Special options in such situations (without having to invoke Macro procedures)?

View Replies!   View Related
Return Text To The Right Of Last Instance Of "/"
I'm trying to return the string of text to the right of the LAST instance of "/" in:


So that the result would be "DANDRUFF"

how to get just that last part?

View Replies!   View Related
Search For Text Delete This Row And Delete The Row For Every Instance
I have an formula if statement that returns "deletethisrow" if the test is true.

For every occurence of "deletethisrow" I want to delete the row. The number instances will be variable each time I run the file. So maybe it will find that string, maybe it will find 10 instances. I want to do some kind of loop that won't error out when it cannot find "deletethisrow", but will delete the rows for each instance where it does find this string.

I know it was verbose, but if I just do a loop for a fixed number of loops it will error out if it runs out of rows to delete.

View Replies!   View Related
Lookup/Match: Compare A1 For The Values In Column B, Then Return The Corresponding Cell (column C) In Column D
I've been searching the forums for this problem but I can't seem to find any answers. Anyway, this is the problem. See screenshot.

I want to compare A1 for the values in column B, then return the corresponding cell (column C) in column D.
e.g. D1 = 2, D2 = 1, D3 = 4, D4 = 5 and D5 = 3.

View Replies!   View Related
If Column Contains Data Then Insert A Blank Column And Shift Specific Column To The Right
What I'd like to do is; If column C contains data then insert a blank column and shift column C to the right.

View Replies!   View Related
Check One Column, Get Value From A Second Column And Display Sum In 3rd Column
I am tying to total all the sales for a given customer. This is what I have at present

Customer Sales
CustA 1000
CustB 500
CustA 1250
CustC 750

Elsewhere in the spreadsheet I have the following

Customer Total Sales

As you can probably see I need to get the sum of each customers sales and display this under Total Sales. I thought about using VBA but am not really sure where to start.

If anyone has any ideas how I could progress this I would be most grateful. I am using excel 2007

View Replies!   View Related
Find Rows W/same Value In Column A And B And Offset Column C To Next Available Column
I need to combine rows that have the same value in column a and column b to the same row by offsetting column c to the next available column. For example, I would like the first 6 rows of the provided sample to appear like this.

0014B22<@44>Soil Properties and Qualities<@44>Soil Properties and Qualities<@44>Soil Properties and Qualities

Sometimes the values are the same in column c, sometimes they are different. I do not want to delete duplicate rows where they are the same. Sometimes there are 2 rows that have the same values in column a and column b, other times there may be 3 or even 4 rows with the same values in column a and column b. Regardless, I would like the values in column c combined on the same row in the next available column. It would be nice if the duplicate column a and column b rows (with a null column c cell) were then removed, but I could do that in the next step.

0014B22<@44>Soil Properties and Qualities
0014B22<@44>Soil Properties and Qualities
0014B22<@44>Soil Properties and Qualities
0014B24<@33><i>Available water capacity:<p> High (about 11.5 inches)
0014B24<@33><i>Available water capacity:<p> Very low (about 2.9 inches)
0014B24<@33><i>Available water capacity:<p> High (about 9.0 inches)
0014B25<@33><i>Slowest saturated hydraulic conductivity:<p> Moderately high (about 0.57 in/hr)
0014B25<@33><i>Slowest saturated hydraulic conductivity:<p> High (about 1.98 in/hr)
0014B25<@33><i>Slowest saturated hydraulic conductivity:<p> Moderately high (about 0.57 in/hr)
0014B26<@33><i>Depth class:<p> Very deep (more than 60 inches)
0014B26<@33><i>Depth class:<p> Very deep (more than 60 inches)
0014B26<@33><i>Depth class:<p> Very deep (more than 60 inches)
0014B27<@33><i>Depth to root-restrictive feature:<p> More than 60 inches
0014B27<@33><i>Depth to root-restrictive feature:<p> More than 60 inches..............

View Replies!   View Related
Subtracting Column B From A, And Leave Third Column Blank If No Value In Column B?
I have a spreadsheet with three columns (A,B,C). I want the third column C to be column A - B (A minus B) for each row, but only if there is a value in column B.

If there is no value in column B, then I want that row in Column C to just stay blank.

View Replies!   View Related
Match Text In Column Of Another Workbook & Return Nth Column Same Row
I have two excel files.
File #1 is a varying length and has 4 columns with ID #s in Column A.
File #2 is a two column file that contains a list of ID #s in column A AND modified ID#s in column B.

I need to match the ID #s in column A from file# 1 to the list in column A of file#2 then replace ALL instances of the matching ID #s in column A of file#1, with the values found in column B of file #2.

I've tried using the substitute function but I could only replace one found ID at a time.

View Replies!   View Related
Merge Two Workbooks. Copy Column Data Based On Numerical ID Match Of Another Column.
I am trying to get excel to search a workbook/(or worksheet if easier) for a matching unique value and fill in its associated data. My first workbook has the SKU (A) filled in but not the UPC (B). My second workbook has both the SKU (A) and the matching UPC (C) filled in.

I need to take both workbooks/(worksheets), compare the SKUs, and if a matching SKU is found, extract the UPC from Workbook 2 and fill in the UPC field in Workbook 1, and if no UPC is present in Workbook 2, then it leaves the cell in Workbook 1 blank.

View Replies!   View Related
Function To Put In A New Column To Get The Abbreviated Year And Month Of A Previous Column In The Same Row
Is there a function to put in a new column to get the abbreviated year and month of a previous column in the same row???

Ex. Row A B C D
3/14/2007 5/16/2007 2007-3 2007-5

Instead of using the YEAR MONTH funcion for each row is there a universal function that I could designate to the whole column of C and D something like C=YEAR(A(row#))???

View Replies!   View Related
COUNTIF: 2 Criteria: Date Range Column & Text Column
Col C = Text and Col F = dates
I would like to count the # of times a value occurs in Col C based on a date
range in Col F.

View Replies!   View Related
Macro Optimization And Moving Text From One Column To Another And Deleting Previous Column
I am running Win XP and Excel 2003.

I have a macro I found here on the boards written by Lenze to delete an entire row based on what is found in column A. I would like to delete any row where Col. B contains 10 or less characters and I have modified it to do so (or at least I think it does). My problem is that it takes about 12 minutes to run the macro (I have about 50k lines to run through). I was wondering if this is the fastest method or if it examines things other than just column B.

Sub Test()
Dim i As Long
LR = Cells(Rows.Count, "B").End(xlUp).Row
For i = LR To 2 Step -1
If Len(Cells(i, "B")) < 11 Then Cells(i, "B").EntireRow.Delete
Next i
End Sub
After this runs, I am left with Columns A to somewhere around AH. The columns are generally in the format of text followed by a numeric column. An individual text column has the same name through all of the rows. The numeric columns have varied values whether negative or positive.
Ideally what I would like: If a given cell (ie. C2) in Row 2 is numeric, then copy the cell to the left (ie. B2) into (ie. C1) and then delete Column B. I need this to work for multiple columns from B to C, skip D and E, and then from F to AG (and maybe beyond).

View Replies!   View Related
Enter Sth In Column A Then The Date And Time Automaticaly Entered In Column B E.g
I want to enter any thing in column (A) and then the date & time automaticaly put in column (B)
enter any thing in (A1), the date & time entered in (B1) automaticaly
enter any thing in (A2), the date & time entered in (B2) automaticaly

and so on ...

View Replies!   View Related
Sort Column To Match Pair In Other Column, Skip Blank Spaces
Here's what I have.. (on a much smaller scale)

(notice how the lines that match are now even.)

[Edited by admin~ *Link* to large images, don't display them]

View Replies!   View Related
Copyright 2005-08, All rights reserved