Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Character Comparison In a Cell

Hi Ryan,

You can simply use =.
For example...

= 3rd Party value = your value
or

=A2=B2

will return TRUE or FALSE.

If you only wanted to match against the first two characters of each
use the LEFT function.

eg. = LEFT(A2)=LEFT(B2)

Hope this works for you.

Regards,
Les Bantleman



RyanYoungsma wrote:
I am working in a file that I need to do a Comparison of the information in
the cell. We get data from an outside organization and I need to compare
what we have for data and what we are getting from the 3rd party.

Currently I create a worksheet with the data from the third party, then pull
in our data through an application we have created. This ensures that it is
aligned with the corresponding data point from the 3rd party.

3rd Party Data Our Data
xxx xxx

What i want to create is VB program or formula that will compare the 1st or
even the 1st two characters in the cells.

Does anyone have any thoughts on this?

Thank you,
Ryan


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Character Comparison In a Cell

Oops....the LEFT function should be LEFT(A2,2) or the number of
characters to return.

Hope all is clear,

Les



wrote:
Hi Ryan,

You can simply use =.
For example...

= 3rd Party value = your value
or

=A2=B2

will return TRUE or FALSE.

If you only wanted to match against the first two characters of each
use the LEFT function.

eg. = LEFT(A2)=LEFT(B2)

Hope this works for you.

Regards,
Les Bantleman



RyanYoungsma wrote:
I am working in a file that I need to do a Comparison of the information in
the cell. We get data from an outside organization and I need to compare
what we have for data and what we are getting from the 3rd party.

Currently I create a worksheet with the data from the third party, then pull
in our data through an application we have created. This ensures that it is
aligned with the corresponding data point from the 3rd party.

3rd Party Data Our Data
xxx xxx

What i want to create is VB program or formula that will compare the 1st or
even the 1st two characters in the cells.

Does anyone have any thoughts on this?

Thank you,
Ryan


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 - Formatting text in cell (character by character) TomC Excel Discussion (Misc queries) 0 January 29th 10 07:25 PM
Insert a value in a cell based upon a comparison of cell values in 2 separate worksheets Doctorjones_md Excel Discussion (Misc queries) 7 June 8th 07 09:32 PM
Insert a value in a cell based upon a comparison of cell values in 2 separate worksheets Doctorjones_md Excel Worksheet Functions 7 June 8th 07 09:32 PM
cell comparison Elaine New Users to Excel 1 October 20th 05 03:49 AM
If then Cell comparison with text. SS[_3_] Excel Programming 1 February 2nd 04 10:50 PM


All times are GMT +1. The time now is 03:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"