# Comparing Values And Returning Info From Separate Cells

Sep 18, 2013

If I am working from cell (D16), I am looking for a formula to compare the value in 2 different cells (D8 and D12) to a value in a third cell (D14) and the one with the closest value without going over returns a seperate value from either (D7 or D11), But if both D8 and D12 are above the value of (D14) then the closest value would be the answer and return the answer from (D7 or D11).

Example: D7=Bob and D8=25
D11=John and D12= 40
D14= 45
OR:
D7=Bob and D8=46
D11=John and D12=48
D14=45

## Comparing Two Columns And Returning Number Of Cells In One Column With Higher Values?

Apr 8, 2014

I have two Columns C and E that have dollar amounts in them. I want to compare each row in those columns and then total the number in column C that are higher that column E.

So basically C6>E6, C7<E7, C8=E8,C9>E9 should return the result of 2. There are two instances where the price in C is higher than the price in E.

## Comparing Values And Returning Different Column

May 31, 2007

I want to return the proper value from sheet 2 into column C in sheet one. I have the current formula set up as an array but I only get the value that matches the first row in Sheet 2.

HTML Column A Column B Column C
Date Number Who
3/23/2007 902-555-2596=IF(\$B2=Sheet2!\$A\$2:\$A\$2001,Sheet2!\$B\$2:\$B\$2001,)
3/23/2007 980-123-6621=IF(\$B2=Sheet2!\$A\$2:\$A\$2001,Sheet2!\$B\$2:\$B\$2001,)
3/23/2007 980-123-6621=IF(\$B2=Sheet2!\$A\$2:\$A\$2001,Sheet2!\$B\$2:\$B\$2001,)
3/23/2007 980-555-6621=IF(\$B2=Sheet2!\$A\$2:\$A\$2001,Sheet2!\$B\$2:\$B\$2001,)
3/23/2007 980-678-0352=IF(\$B2=Sheet2!\$A\$2:\$A\$2001,Sheet2!\$B\$2:\$B\$2001,)
3/23/2007 902-555-7958=IF(\$B2=Sheet2!\$A\$2:\$A\$2001,Sheet2!\$B\$2:\$B\$2001,)
3/23/2007 980-555-6621=IF(\$B2=Sheet2!\$A\$2:\$A\$2001,Sheet2!\$B\$2:\$B\$2001,)
3/23/2007 980-555-6621=IF(\$B2=Sheet2!\$A\$2:\$A\$2001,Sheet2!\$B\$2:\$B\$2001,)
3/23/2007 902-555-7958=IF(\$B2=Sheet2!\$A\$2:\$A\$2001,Sheet2!\$B\$2:\$B\$2001,)
3/23/2007 902-555-7958=IF(\$B2=Sheet2!\$A\$2:\$A\$2001,Sheet2!\$B\$2:\$B\$2001,)
~~~~~~~~~~~ Sheet 2 ~~~~~~~~~~~~~~~~~
Column A Column B
902-555-7958Big Bird
902-555-5100Daffy Duck
902-678-0352Elmo
902-555-5752Donald Duck
902-555-7420Bert
980-123-6621Ernie
902-555-2596Grover

## Comparing Two Columns Of Data And Returning Values That Do NOT Appear In Both

Apr 22, 2014

I have an attendance sheet that employees scan their badge number, and returns their name and time/date stamp using a simple VLOOKUP.

I want to create a report that compares the names in the attendance sheet against the all the names in the master sheet, and only returns the names that have not attended the training.

I have tried a few test formulas using COUNTIF function, but with no luck.

I have attached an example. Use the worksheet labeled April 2014 A (2nd shift)

New Six Point Safety with Attendance Sheet Barcode Scanning.xlsx‎

## Comparing Customer Names In Rows And Returning Text Data In Different Cells If Same

Jan 26, 2010

I've got a list of donor names, names listed multipled times in Column A, each row with different donation data. For instance:

Sheet 1

A1 - Mary Jones, B1- Internet Donation
A2 - Mary Jones, B2 - Silent Auction Purchase
A3 - Mary Jones, B3 - Event Ticket Purchase
A4 - Gary Jones, B4 - Foundation Grant
A5 - Gary Jones, B5 - Internet Donation
A6 - Sara Parker, B6 - Event Ticket Purchase

I want Excel to compare rows A1 and A2, and if the name has not changed, enter the donation data from Column B into another sheet that will just list that person's name once:

Sheet 2

A1 - Mary Jones, B1- Donation1, C1 -Donation2, D1 - Donation3
A2 - Gary Jones, B2 - Donation1, C2 - Donation2, D1 - Donation3 (which would return no value because there the name changes

Does this involve IF, MATCH or VLOOKUP formulas?

## Comparing Character Strings In Separate Cells In Excel Spreadsheets?

Apr 1, 2014

I have a large excel spreadsheet with alpha-numeric data. I want to be able to compare two cells in different row side by side and return the difference in another cell.

e.g. I have in cell B2, "tom, rick, mike, I" and in cell C2, "mike, rick". I need to compare the cell C2 to cell B2 and return the difference in cell D2 which in this case would be the characters " tom, I". They are separated with "," and they can be in different order as you can see in the example.

## Comparing Data And Returning Changes

Feb 24, 2014

I would like compare data using a certain column to key off of and compare whether data has changed.

I have 5,000 rows and 26 columns. Cell C1 is CALLED PMNUM, cell I1 is called CHANGEDATE

I want to find all of the same PMNUMs (C2-C5000), look at the last change date (I2) (sorted in descending order), compare it to the previous change date (I2) and if anything has been changed in columns D2 through G2 and J2 through Z2 compared to the last time the data was reported, list the changes in in AA2.

## Merge Info From 2 Separate Sheets

Aug 8, 2008

I have information in range(p10:Q10) on sheet DEMO! that I want to paste the Values only into a Separate sheet "LIST!" in columns(W:X). The row will vary and will be based on the cell: "DEMO!A3" and will match a cell in column A of "List!"

## Moving Info From One Column To Two Separate

Jun 10, 2009

I have:
A1: Ph#
A2: Name
A3: Ph#
A4: Name
etc

I would like:
A1: Name B1: Ph#
A2: Name B2: Ph#
etc.

This is a large spreadsheet so I was hoping there was an easy way to make this change.

## Comparing 2 Or More Columns And Returning A True Value

Feb 10, 2009

I'm quite new to array formulas in excel and was wondering whether or not I can advance on this formula:

=AND(\$C\$5=B7,\$K\$5=G5)

The problem is I would like to compare the entire colums (or array) and return the number of 'TRUE' statements in the array as a value.

=AND(\$C\$5:\$C\$65536=B7,\$K\$5:\$K\$65536=G5)

however, this returns all values as 'FALSE'

example of arrgument:

IF C5:C65535=customer then count how many cells in K5:K65536=completed

## Comparing Two Ranges And Returning A Match

Jan 22, 2010

I need a function to compare two ranges and return a match. For example

Range A: {A56, B43, C98, D44}
Range B: {A33, G89, D44, K123, OB55}

the function would return D44. Is it possible at all with functions or do I need a macro?

## Comparing DNA Data And Returning Matches

Aug 5, 2009

I have data exported as .txt from an external program in the following format:

Sample Name Marker Allele1 Allele 2 ....Allele n
AAA D8S1358 10 11 XX
AAA D16S539 16 19 XX
and so on.

Each "Sample Name" will have 16 different "Marker"s and upto 10 different "Allele" at each "Marker". There could be upwords of 200 Sample Names on each exported sheet. Is there a simple way to compare all of the data from each "Sample Name" to each other and possibly to another sample set that will always be static but of the sample general makup as this?

## Comparing Text Values In Two Cells And Adding 1 To Result Column

Apr 14, 2013

I have an excel file with some data in it. I have two columns with one of four words in it. For simplicity I'll call them RED, GREEN, BLUE, and Yellow. A few columns over I have columns "Same" "Good" and "Bad". I'm trying to figure out a way to get excel to put a 1 in the appropriate column, if cell A1 is Red I need excel to look at the word in cell B2 and put a 1 in the "same" column if A1 and B1 are the same word. If the word in B2 is Yellow I need excel to put a 1 in the "Good" column. If the word in B1 is GREEN or BLUE I need it to put a 1 in the bad column. The tricky part is each of the four words RED, GREEN, BLUE, and Yellow have a different set of words that will be called "good" or "bad". So if the word in cell A1 if Green for example it will have a different set of good and bad color words.

So it seems I need four different functions depending on what word is in A1. In the column next to these lists of words I have the date which I'll need to use to give me the sums of same, good, and bad for each day. But first things first. I think I need to use a combination of IF functions and MATCH function, but I can't figure out anything that works. Below is what I'm hoping it will look like when I've got the right formulas.

First column
Second column
Date
Same
Good

[Code]....

## Before Exiting Send Info To Another Separate Workbook

Aug 19, 2014

I am trying to make a "master" sheet where employees total calls for the day are recorded.

Each employee will be marking their calls each day which will be on an excel spreadsheet. i would like to then create a MASTER sheet that links to all the employees specific sheets so when they exit the sheet it updates the master, or it can be a live update if that is possible...

## Comparing 2 Column (pair) And Returning Count

May 30, 2014

Excel user that has been manually computing a 6000 row spreadsheet. Here is sample data and what I need. Column A goes through the alphabet (A,B, C, etc.) and Column B is numbers from 1-65. I need Column C to count the number of rows for each alphabet/number pair. K, 28 has 3 rows; K, 33 has 1 row; L, 21 has 4 rows; etc.

Column A
Column B
Column C

K
28
3

K
28
3

K
28
3

[code]....

## Sorting! I Have 1 Column W/all The Info. Together. To Make It Into Separate Tables

Sep 22, 2009

I have 3 status sheets (about 300+ ea.) that I was given to sort out.

Information:
1) Column A: Number of items (i.e. 1 )
2)Columbe B: Rec'd Date + initials + no. of copies received, followed by notes (i.e. 021709,akb,01)

Since there is only one column with all the information together, is there a way to sort the attached sheet by initials? I don't know how to create a formula to pull all the date,mjg's; date,jac's; date,akb's; etc... into a separate table.

A: No. of items
B: Date,mjg... = Total no. of items
C: Date, abk... = Total no. of items
D: Date, akb... = Total no. of items

## Comparing Two Columns And Returning Any Word Matches Found

Mar 21, 2014

I have two lists, one has 250 items, the other 4500, both contain a String

I need to compare any word within a cell in the short list, against any word within a cell in the long list.

The returned value needs to display both the short list item, as well as the long list item for manual comparison by an analyst.

## Comparing Three Lists - Identify In 3 Separate Columns

Jul 9, 2013

I am working on a project, I have three different lists that I want to compare and I want to identify in 3 separate columns which titles are found on which list.

For example:

Title List 1List 2List 3
ACAROLOGIA x
ACCIDENT ANALYSIS AND PREVENTION x
ACROCEPHALUS x
ACS CHEMICAL BIOLOGY x x x
ACS CHEMICAL NEUROSCIENCE x x x
ACS COMBINATORIAL SCIENCE x x
ACS MEDICINAL CHEMISTRY LETTERS x x
ACS SYNTHETIC BIOLOGY x x x

## Reorganizing Data To Show Info From Two Separate Columns In Third New Column

Feb 5, 2014

I've got a problem with organizing my data. I've performed a study with several participants, each of which does several trials with 8 conditions (1,2,3,4,5,6,7, or 8), with each participant doing a condition more than once. I also have a separate column telling me whether they responded correctly or incorrectly (with a 1 or a 0).

I need to find a way to produce a new column to identify whether they got each condition (of the conditions 1,2,3,4,5,6,7, or 8) correct separately, i.e one column for responses to condition 1, one for condition 2 and so on....

It would also be useful if there was a way that once this is done I could summarize their accuracy of responses to each condition.

I've attached an example of my data. excel problem example.xlsx‎

## Returning Value From Separate Spreadsheet Tab?

Feb 5, 2014

So under one tab labeled "scores" I have data that looks like this:

12/16/13 ETF-J
12/9/13 ETF-F
12/2/13 ETF-G

and in a separate tab I have data that looks like this:

ETF-J ETF-F ETF-G

1 yr Returns
12/16/13 .87 .67 .45
12/9/13 .05 .35 .04
12/2/13 .67 .23 .24

what I am looking to do is write a formula that would return the number associated with the given ETF and date so the first tab labeled "scores" would look like this:

12/16/13 ETF-J .87
12/9/13 ETF-F .35
12/2/13 ETF-G .24

## Returning A Value From A Separate Spreadsheet Tab?

Feb 5, 2014

So under one tab labeled "scores" I have data that looks like this:

12/16/13 ETF-J
12/9/13 ETF-F
12/2/13 ETF-G

and in a separate tab I have data that looks like this:

ETF-J ETF-F ETF-G

1 yr Returns
12/16/13 .87 .67 .45
12/9/13 .05 .35 .04
12/2/13 .67 .23 .24

what I am looking to do is write a formula that would return the number associated with the given ETF and date so the first tab labeled "scores" would look like this:

12/16/13 ETF-J .87
12/9/13 ETF-F .35
12/2/13 ETF-G .24

## Macro - Copy Data Based On Info In Cell From Separate Workbook

Jun 4, 2014

I have an invoicing spreadsheet, what I want is to have a main working page and then tabs after separated by vendor, but save myself a bunch of manual work in the future.

I want to be able to work in the main tab and the other tabs automatically update with the new info.

So I want the macro to search the text in the first column and if it finds "AIM Land Services Ltd." then I want it to populate the appropriate tab, in this case "AIM", with all the respective information after it ie: A-O. But I dont want it to select any other vendors/ info.

This is what I have:

Sub MoveData()
For Each cell In Range("A1:A1") ' Where to look for the date
If cell.Value = "AIM Land Services Ltd." Then ' The date
Range("A5:O350").Select ' What is the range to copy
Selection.Copy ' Copy it
Sheets("Invoice_Log").Select ' Select the Sheet it applies to
Range("A5").Select ' Where to paste the data

[Code] .........

## Cell Addresses Derived From Concatenated Values In Separate Cells

Apr 2, 2013

I need to return a value from a cell in Column H, but with a row number that varies with each entry.

I repeat this formula every 5 rows or so. But the cells referenced on another spreadsheet are only one row apart. Because of this discrepance, when I copy my highly developed cluster of formulas, they only reference every 5th entry on the other sheet. What I've been doing is manually altering long, complicated formulas by hand. I can't do a replace function because every once in awhile it'll find an extra instance of the digit I'm replacing and mess up parts of the formula I don't want changed. I could avoid this tedious, time-consuming work-around if I could make a formula that would do something like this:

=Display Value from in column H: (row number per cell B1)

And cell B1 would include the number 3789.

So the returned result is the value from cell H:3789

## Search Contents Of Cells In Row From List Of Text Values On A Separate Sheet

Jul 13, 2006

If this has been requested already, I apologize, please direct me to the right thread and flog me with USB cable. I've been searching the forum for an answer for a couple of hours now for the answer to this:

I have a list of words in column A on a sheet and I'm trying to write a formula on another sheet that will check all cells on a pre-populated row and return a value if any of the words from the list on are contained in any of the cells in the row. I've attached an example spreadsheet

## Combining Two Values In Two Separate Cells To Make A Cell Reference Or Index Refer.

Jul 15, 2009

I want to use a value in one cell as a row designation, and a value in another cell as a column designation. Ultimately, the values will be text which will refer to row and column headers. What formula would allow me to do this? example:

A1 contains B
B1 contains 2
B2 contains "tribbles"

An imaginary function might go like this........

## Returning Data From Separate Worksheet By Matching Multiple Criteria - Vlookup / If Combo?

Jun 8, 2014

I am attempting to place a formula in cell b3 in the attached spreadsheet on the "sheet to pull data into" tab 1 (cell is highlighted yellow) to retrieve value in the yellow highlighted cell in the "Sheet that contains data" which is on a seperate worksheet within the same workbook.

The cells highlighted red in the "sheet to pull into" tab (cells: a1, a3, b1, and b3) are the criteria that needs to be matched to those cells on "sheet that contains data" tab in order to ensure the value returned is correct.Sample of problem.xlsx <----see the attached sample spreadsheet.

## Shade A Cell Red If Two Separate Conditions Apply (in Separate Cells)

Dec 3, 2013

I'm trying to use a formula in conditional formatting to highlight a cell red if the cell contains a 0 but the date shown in another cell has passed. I want to copy the formatting throughout a column but I don't want the cell to highlight if there is no date in the other cell concerned.

## Match Names In Two Separate Column If Equal Then Pull Info In 3 Column?

Dec 6, 2013

I need to look up the name in E2 in the list in column A and if it matches then lookup name in F2 in list column b, if it matches then the corresponding number in column C is displayed in column G. If neither names are in the 2 columns the words"Not on lists" is displayed in cell in column G.

The other problem is one name is spelled two different ways I want it to look for both spelling before moving on to looking up the second name.

I started with this formula but I'm getting #N/A or "not on list" when they are on the list. I'm using ranges prod_sum is columns AthruC, Last_name is range BthruC. =IF(AND(VLOOKUP(F4,prod_sum,3,0),VLOOKUP(I4,last_name,2,0)),"not on list")

## How To Separate Text From Numbers Into Two Separate Cells

Feb 13, 2014

I'm trying to separate text from numbers into two separate cells...

Essentially, I would like the users to copy and paste data into Column A, as seen below. Then, hopefully by formula separate the text characters into Column B and the numbers into Column C.

Input: Output 1: Output 2:

Col A Col B Col C
Wells 123 Wells 123
Wells 1234 Wells 1234
Wells Fargo 123 Wells Fargo 123
Wells Fargo 1234 Wells Fargo 1234
Wells Fargo Inc 123 Wells Fargo Inc 123
Wells Fargo Inc 1234 Wells Fargo Inc 1234

Ideally, I would like to do this with a formula...

## Returning Something In A Cell If Another Cell Has Info Input

Apr 1, 2008

my spreadsheet to return the word unit if cell a18=1 or the word units if its over 1 but i also want the cell to remain empty if there is nothing input into cell a18 is this possible