Computing.Net > Forums > Office Software > Excel formula comparing text values

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel formula comparing text values

Reply to Message Icon

Name: sherrielee
Date: March 6, 2006 at 15:00:33 Pacific
OS: Windows XP
CPU/Ram: Processor x86 Family 15 M
Product: Sony/Model PCG-V505AXP(UC
Comment:

I have two columns of information. Column A represents original customer names and Column B represents new/updated customer names. I need a formula that can check a text value in a cell in column B against the values in a range of text values in Column A and if the exact value does not exist, return the value of the cell in Column B that was being checked, else "not updated"




Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: March 6, 2006 at 15:21:05 Pacific
Reply:

Place this formula in cell C1 and then drag it down for as many rows as you need:

=IF(A1=B1,"Not Updated",B1)

Michael J


0

Response Number 2
Name: sherrielee
Date: March 7, 2006 at 07:18:23 Pacific
Reply:

This formula won't work because the value in column B can be anywhere in column A not necessarily in the adjacent cell.



0

Response Number 3
Name: Michael J (by mjdamato)
Date: March 8, 2006 at 07:05:14 Pacific
Reply:

Oops, I missed that little detail. Yes that is a little more difficult, but very doable.

The first thing you will want to do is create a Named reference for the data in column A. The easiest way to do this is to select all the data in that column and then in the Name box (which is directly above cell A1) type a name to refer to that data. For this example, let's call it 'original'.

Now in cell C1 enter this formula:
=IF(ISNA(MATCH(B1,original)),B1,"Not Updated")

You can now drag and copy that formula down to the last data row in column B.

Hope this helps.

Michael J


0

Response Number 4
Name: sherrielee
Date: March 8, 2006 at 17:19:23 Pacific
Reply:

I am still having trouble. The formula is returning "Not Updated" for all the names regardless of whether a name exists in Column A for the cell in Column B that is being sought in Column A.

Example below shows cell reference in parenthesis (A1) (B1) (C1) Column A represents the original name, Column B represents the updated/new list and Column C is the formula result:

(A1)1-800-Bar None A Fincl Corp (B1) 1125 Sir Francis Drake Bouleva (C1) Not Updated

(A2) 1st United Services Credit Un (B2) 1185 Design (C2) Not Updated

(A3)24 Hour Fitness Usa Inc (B3) 1-800-Bar None A Fincl Corp (C3) Not Updated

(A4)24 Hour Fitness Worldwide Inc (B4)1st United Services Credit Un (C4) Not Updated

(A5) 2wire Inc (B5) 24 Hour Fitness Usa Inc (C5) Not Updated

(A6) 3dconnexion (B6) 24 Hour Fitness Worldwide Inc (C6) Not Updated


0

Response Number 5
Name: Michael J (by mjdamato)
Date: March 8, 2006 at 22:15:08 Pacific
Reply:

I get the same results if I do not create a named reference to the data in column A as I described above. Did you create the named reference exactly the same as it appears in the formula 'original'?

I input the data from your example and the results I got were that the data in B1 and B2 were repeated in C1 and C2. Cells C3-C5 showed "Not Updated". So it appears to work for me.

Michael J


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Excel formula comparing text values

Comparing text values in excel and www.computing.net/answers/office/comparing-text-values-in-excel-and-/7824.html

formula to compare the value www.computing.net/answers/office/formula-to-compare-the-value/9182.html

Excel formula - possible? www.computing.net/answers/office/excel-formula-possible/4392.html