How To Select Data Entries From 2 Columns

Jul 29, 2014

I have a large spreadsheet of species activity data and want to separate information from two columns to create a bar chart of when a certain species is active over a 24-hour period. There are duplicates of each species in one column and a unique corresponding time of activity for that species in another, something like the following:

Species A 23:01
Species B 07:09
Species C 13:45
Species D 08:30
Species A 01:55
Species A 22:07
Species C 15:29

What formula can I enter that only selects Species A and their corresponding times that I can copy into a new spreadsheet?

View 2 Replies


ADVERTISEMENT

Find Duplicate Data - Identify Which Entries Are In BOTH Columns

Apr 27, 2014

I have data (e.g. PPL0106AU) in columns A (Rows 2 to 104) & C (Rows 2 to 303) and need to identify which entries are in BOTH columns.

I've entered in column B: =IF(MATCH(A2,C$2:C$303),A2,"No")

This formula is resulting in a duplicate of column A in column B.

View 7 Replies View Related

Duplicate Entries In Rows - Add Accompanying Data To New Columns?

Jun 4, 2013

I have attached a before and after image of what I am looking to accomplish.

In the before image, you can see that there are 3 rows of data

- a header

- a repeating model number (in column F) with accompanying data (values in columns G - J are the items of interest)

In the after image, you can see that I took the 3 rows of data and turned it into simply two rows of data

- a header

- the repeating model number

What I did however in the after image, as can be seen, is I took the data that appeared on the repeating row (Row 3 from the Before image), and included the PRICE, COST, BEGIN, and END values in new columns on row 2.

The model number is the same of course, which is why I did it that way.

If the model numbers were different, I would have simply left it alone, as-is.

Is there a way to accomplish this via some functions or maybe even a VBA script?

By the way, if we have to dump all of this onto a new sheet, then so be it.

View 5 Replies View Related

Finding Unique Entries Among Two Columns Of Alphanumeric Data

Jun 16, 2006

Columns A & B contain several thousand Project Numbers (e.g., P1052, PA844, etc.). Many of the Project Numbers in column B are the same as in column A, but column B also has additional (i.e., newer) Project Numbers scattered throughout. Ideally, I would like to use a built-in function (versus a custom function if possible) that compares all the Project Numbers in both columns and then separately lists those that are unique to column B.

View 9 Replies View Related

Select All Non Blank Data In Columns

Nov 7, 2008

I need to select all data in columns A:F but the number of row containing data is variable. I need to select only the rows with data.

View 7 Replies View Related

User To Select Top Left Of Data And Then Automatically Do Text To Columns

Feb 15, 2012

Data is input into my spreadsheet. It is not always in the same cell, and is not always the same length vertically. I want the user to select the top left of the data and then automatically do text to columns. Here is my code that is not working! :

Sub TextToCol2()
Dim rng As Range

Set rng = Application.InputBox(prompt:="Select a cell", Type:=8)
ActiveSheet.Range("rng:A" & Range("A65536").End(xlUp).Row).TextToColumns DataType:=xlDelimited, ConsecutiveDelimiter:=True, Space:=True
End Sub

View 3 Replies View Related

Select And Copy Multiple Columns Based On 2 Data Fields

Feb 20, 2014

I have a spreadsheet with a heap of raw data in it. I need to perform a search based on a customer name, then return certain columns from the raw data IF the customer name is matched in one column, AND a special flag name is matched in a second column. The customer name is always a single entry for the purpose of the query, however the special flag must be checked against a possible list of values in a table. I know this is hard to explain, and I can't add attachments to my posts, so I have created a sample document and placed in in dropbox:

[URL] ........

View 9 Replies View Related

Select 81 Winners At Random From 5000 Entries

Nov 26, 2013

I am looking at ways to select 81 winners at random from a spreadsheet with 5000 + names on it. I have tried assigning each cell with a value between 1 and 81 and then removing the duplicates but i cant seem to get excel to pick 81 unique numbers, instead it will pick no number 1, or two number 70s.

I have managed to get a macro to pick 1 cell at random but cant get it to pick across the whole range of 5000.

View 1 Replies View Related

Select Valid Entries Based On Letter Entered

May 26, 2009

I tried to search the forum with the above title but keep getting a fatal error.
My worksheet contains a data entry column that is verified against a named range entitled "Categories". If you click on the down arrow, it displays all the valid entries. What I'd like to do is enter in the field the first letter of the entry and display only those valid entries that start with the letter I entered. For example, if I entered "c", the validation screen would display:

Car Insurance
Car Payment
Car Repair/Tires
Charity
Chase Mortgage
Church
Cleaning Supplies
Cleaning/Laundry
Contact Lens
Cosmetics

Then, if I entered "ch", the validation screen would display:

Charity
Chase Mortgage
Church

View 5 Replies View Related

Display A List Of Cell Entries, Allow The User To Select Which To Delete

Sep 16, 2009

Hoping someone would be able to help me with this. I have a sheet (example attached) and this sheet has a number of varying description types in the W coloumn (usually approx 10,000 rows). This field is manually input so there could be spelling mistakes and/or non standard descriptions.

What I would like, if possible, is a macro that would look at the D column and if this is 'GENERAL LEDGER', it would then look at the W column.

An input box would come up, and would list the different descriptions it found in column W, and number them. It would only list each different description once.

e.g.

1. Bank charges
2. Bank charge
3. Cash
4. Fund Custodian Fees
5. Fund Manager fee
6. Interest income cash account
7. Interest income cash acc
8. Miscellaneous expenses
9. Miscellaneous income
10. Other income
11. Sec lending comm
12. Sec lending commission income
13. Tax Reclaimable - Dividends
14. Withholding tax dividend

The user would then be able to type in the corresponding numbers, if possible seperated by a space, comma or semicolon and the macro would then run through the sheet and delete the entire row if D was GENERAL LEDGER and W was the selected description.

View 9 Replies View Related

Userform One Combobox Three Data Columns Select Required Column Based On Radio Button

Jun 10, 2013

I have a user form that has one combo box on it that right now references one column of data.

Now I am being asked to have three columns of data and the combo box to show one of the three when a certain criteria is met.

I believe it would be easiest to have an additional combox with a change event when the box is populated with "whatever" in the field

So S:3 to S:5 have A, B, C

And EC:1-EC:59, ED:1-ED:59, EE:1-EE:59 contain the data that should show when S:3, S:4, or S:5 is selected.

If S:3 is selected then the list in EC:1 - EC59 would show and so on.

View 2 Replies View Related

Taking Entries From Certain Columns And Putting Them Together

Apr 4, 2014

I have a huge spreadsheet where after every 12 columns there are two "special" ones, which contain certain entries. In the first of these two, the entries from the second one are numbered in a certain way. Please see the example.

I need a formula in a separate column (yellow) which will gather all these entries from all columns, and put them in order, as I did manually in this example.

Instead of 4 "groups" of columns, in my real file I have 200 of them, with 400 rows each, which makes it more complicated..

View 2 Replies View Related

Don't Allow Duplicate Entries Across Multiple Columns

Jan 14, 2010

how i can set 'Data Validation' to stop me from entering duplicate values across multiple columns, i can set it for a single column i.e. A1 to A100 but i am after this but for something like A1 to H100.....?

I am currently using this formula in Data Validation:
=COUNTIF($A$1:$A$100,A1)=1

I need something to do this but for multiple columns.

View 7 Replies View Related

Unique Entries In Each Column Of 620 Columns?

Jun 18, 2012

I have 620 columns of data with each column consisting of 17 rows. I need to be able to count the number of unique entries in each column. I recorded a macro that would do what I wanted, but it just used absolute references for each column, which would make the process rather tedious. Is there a way to make the macro less restrictive?

Sub Macro1()
Columns("B:B").Select
ActiveSheet.Range("$B$1:$B$17").RemoveDuplicates Columns:=1, Header:=xlNo
End Sub

View 1 Replies View Related

Duplicate Entries Validation With 3 Columns

Feb 15, 2014

I am looking for either vba or excel method to prevent duplicate entries across multiple columns. The data validation only works when it is input manually by the user and not when it is generated by the formula

What i am trying to do ( assuming " | " are column dividers and each new line is a row)

abc | 2 | bac | 3 | cab | 4

bac | 3 | abc | 2 | cab | 4

abc | 2 | bac | 3 | cab | 4

View 2 Replies View Related

VLookup / Finding Reverse Entries In Two Columns?

Dec 23, 2013

I have a dataset that looks like below -

Header1 Header2 Data
100 101 20.50
102 19
103 1003.2
101 100 20.50
200 300
102 100 20
200 104 30

Now, what i need to do is for each of the rows in my dataset, I need to find the reverse entries (consider first row where header 1 is 100 and header2 is 101, I need to search the entire dataset to find if I have some data for header1 is 101 and header2 is 100). In this case, I do have such data where header1 is 101 and header2 is 100.

Header1 Header2 Data Reverse Entry Difference
100 101 20.50 20.50 0
102 19 20 -1
103 1003.2 Not found Not found
101 100 20.50 20.50 0
200 300 30 270
102 100 20 19 1
200 101 30 300 -270

let me know if that's possible through excel formulas?

I need a column D with such data and column E for differences. So that, my final output should look like below -

View 10 Replies View Related

Comparing Two Columns And Display Not Matched Entries

Jun 17, 2009

I've tried searching for an answer all over with out success. Here's my dilemma. I've got two columns (A and B) with over 1000 entries in each column with computer names. Most of the names are the same however some differ in the way that they might be in column A and not in column B and vice versa. What I would like to achieve is to compare those two columns and display the result in column C and D but keep the names of the in the retrospective column.

What I mean by that is that if a name was found in A but not in B I would like to have it displayed in column D and vice versa. If a name is found in B but not in A, to have it displayed in column C. If there is an easier of doing this, please by all means (i.e. highlight the name in A if missing in B and vice versa).

View 5 Replies View Related

Userform VBA To Check 2 Columns (A And B) For Duplicate Entries

Apr 23, 2014

I have a userform that I use for data entry with lots of combo boxes, list boxes and text boxes

One thing i haven't cracked yet is to check for duplicates against two matching fields

If a user (for example) enters 'SAB' (which will be stored in column A) and then 'UK' (which will be stored in column B) and there is already an exact match for both, then I need to inform the user that a matching record already exists

The following is OK: (the dots below are meant to illustrate spaces between the columns!!)
Col(A).....Col(B)
SAB........UK
SAB........USA
SAB........Italy

BUT, if a user then tries to enter:

Col(A).....Col(B)
SAB........UK

I need my userform to register a duplicate entry.

My sub routine is detailed below : .....

View 3 Replies View Related

Compare The Two Columns And Pull Out The Unique Entries

Jun 1, 2007

I have two columns in Excel.

I want to compare the two columns and pull out the unique entries.

So any entries that are in both column 1 and column 2 I don't want anymore.

I just want all the entries that are NOT IN BOTH columns.

View 11 Replies View Related

Compare Cells In 2 Columns For Incorrect Entries

Sep 8, 2007

I have two columns that use data validation. Column-F uses a dynamic named list in the validation and column-G validation is set to allow a decimal entry only. I need a third form of validation to compare the two values and an message when there is an error.

If F1="None" then the required entry in G1 must be 0 (zero). If F1 <> "None", then G1 entry can be any value greater than zero.
What I would like is a message box to pop-up explaining the error when F1="None" and G1>0.

I'm using a helper column-K that concatenates the cell values (in F:G) into a single string that I can check. Not having much success, but what I've tried so far is:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

Dim myrange, mycell As Range

On Error Resume Next
Set myrange = Sheets("Copper Data").Range("K10", Range("K65536").End(xlUp))
For Each mycell In myrange
If mycell.Value = "No Scrap0" Then MsgBox ("You entered a scrap reason of 'No Scrap' and quantity of 0")
Next mycell

End Sub

It either fires all the time if the helper cell string is "No Scrap0" or it doesn't fire at all if the string is "NoScrap1" (where "1' can be any number).

Currently trying to build this, but my fledgling VBA knowledge has me hamstrung. I'm getting an error of "Next without For').


Private Sub Worksheet_SelectionChange(ByVal Target As Range)

Dim r, c As Range
Dim note As String, Response As Long

note = "Data Entry Error: Scrap Quantity cannot be greater than zero with a reason code of No Scrap." & vbLf & vbLf & _
"Please check the accuracy of your entries."

View 9 Replies View Related

Create List Of Unique Entries Based On Several Columns

Jul 27, 2013

[URL] ......

In that file, you can see there is a list of somewhat similar data across 5 columns. Some of the entries are duplicates, some are different by only one character. What I want to be able to do is generate a list of all the unique rows of data, taking into account the data from ALL 5 columns. The list can be on another sheet or simply just further down on the same sheet, that doesn't matter too much.

I could do it if it were just one column of data, but struggling trying to do it with several columns.

View 7 Replies View Related

Cross Check Two Different Columns And Output Common Entries?

Jul 12, 2012

So I have two columns, in column a, i have a list of zip codes and in column b i have a larger list of zip codes. is it possible to find what zip codes in column a appear in column b, and then output those zips?

View 1 Replies View Related

All Number Combinations From Entries In 7 Columns And 3 Rows With No Duplicates?

Dec 2, 2013

I have 7 columns x 3 rows with unique numbers. I wish to determine every combination of the above numbers without repeats.

5
11
17
24
29
35
40

[Code] ........

Column 1 would only use column 1 numbers.
Column 2 would only use column 2 numbers...etc.

Also have the same for 5 rows of unique numbers.

I've been working on this for 10 years and this is the last step to finalizing the WINNING numbers.

Back checking using the 5 row technique I would have spent 10,000,000.00 playing over 8 years with a winners purse of 33,000,000.00

With the 3 row I would have spent close to 200k and won 2.5 mil.

Only problem is that I don't have the 10 to start with, the 200k is a maybe .

I need to be able to generate the combinations to play the numbers.

View 9 Replies View Related

Count Number Of Rows With Unique Entries In 2 Columns

Oct 9, 2006

I have a spreadsheet which is to record quality checks on work carried out by staff. The spreadsheet has a customer reference number in column B and a Staff reference number in column C.

I can carry out a number of checks on a member of staff on one transaction, so for instance, I could carry 3 checks on one customer number, which would result in the staff ref number being enetered 3 times (there is 1 check per row).

I need a formula to count the number of checks I carry out on each member of staff. My problem is that although 3 checks could be completed on someone, if it is on the same customer NO, it only counts as 1 check. In effect, I need a formula to count the number of staff ref numbers which have a unique customer number eneterd in the adjacent column.

All the cust numbers are unique so would I be able to use a wildcard?

View 4 Replies View Related

Select Multiple Columns In VBA

Nov 1, 2012

To select multiple columns I can use Union but can I use something that will cicle through the values from an array?

Example (how do I see this)

VB :

columnsToDelete= array("UM","Post","Pre")
For i=0 To UBound(columnsToDelete)

Set columnsFound=Range("1:1").find(what:=columnsToDelete(i), lookin:=xlvalues,lookat:=xlwhole, matchcase:=True)
columnsFound.select
Selection delete
Next i

View 2 Replies View Related

Select Number Of Columns

Apr 1, 2014

I want to select a number of columns. I know the column indexes.

I want to use something like (Doesn't work):

[Code] ......

Instead of (Works):

[Code] ....

Rows can be selected according to:

[Code] ....

I have written this code that works. But there must be an easier way:

[Code] ....

View 4 Replies View Related

Select Multiple Columns

Sep 15, 2008

I am using VBA to change the format of columns. The code work with 1 column, but In need to change the format of mulitiple columns. E.g Cols 11 to 22. I tried the code below but it does not work!

View 3 Replies View Related

Select Range Of Columns

Jun 26, 2009

I'm in the midst of preparing a Year-To-Date (YTD) simple financial report in MS Excel.

Firstly:
I allow user to enter a number in cell A2.

Secondly:
Cells from A4 - L4 are linked from Sheet1. Cell M4 will give sum of A4:L4. Users are not allowed to change data in cells from A4 - L4. Users are only required to enter a number between 1 to 12 in cell A2. Upon update cell A2, the VBA shall sum the number of columns as entered in cell A2.

For example, if user enter 3 in cell A2 then cell M4 must give sum of A4:C4. If user enter 8 in cell A2 then cell M4 must give sum of A4:H4.

View 9 Replies View Related

Select Columns By Number

Sep 27, 2007

an equivalent to the code

rows("8:10").select

for columns. I don't want to use the A, B notation but rather, column numbers.

View 6 Replies View Related

Select Specific Columns Rather Than Entire Row

Sep 28, 2013

I plucked a macro off an old post from here (as I always do), but I'm having trouble tweaking it.

VB:
Sub completedtest()

Dim c As Range
Dim rngG As Range
For Each c In Intersect(ActiveSheet.UsedRange, Columns("i"))

[Code] ....

As it currently stands, the macro selects the entire row of rows containing the letter Y in column I. All I need to change is, I want to simply select columns B through I, rather than the entire row.

View 2 Replies View Related







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