Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
tommy
 
Posts: n/a
Default Command: If the contents (text not numerical) of A1 in Sheet2 are.

I'm trying to perform this function - can anyone tell me if it is at all
possible?

If the contents (text not numerical) of A1 in Sheet2 are equal to the
contents of A1 in the Sheet1 (current) then copy the contents of B1 from
Sheet2 to B1 in the current sheet (Sheet1).

If they are not the same progress down the A column (Sheet1) until they
match - eg. A1 of Sheet2 matches A11 of Sheet 1, then copy from B1 Sheet2 to
B11 of Sheet1; go onto A2 of Sheet2.

Note: The A column of Sheet1 has all possible matches from A column of Sheet2

Regards,

Tom

  #2   Report Post  
Myrna Larson
 
Posts: n/a
Default

In Sheet2!B1 put this formula:

=VLOOKUP(A1,Sheet1!$A$1:$B$500,2,0)

Adjust the 500 to the correct number of rows in the list on sheet 1.


On Wed, 2 Feb 2005 12:29:06 -0800, "tommy"
wrote:

I'm trying to perform this function - can anyone tell me if it is at all
possible?

If the contents (text not numerical) of A1 in Sheet2 are equal to the
contents of A1 in the Sheet1 (current) then copy the contents of B1 from
Sheet2 to B1 in the current sheet (Sheet1).

If they are not the same progress down the A column (Sheet1) until they
match - eg. A1 of Sheet2 matches A11 of Sheet 1, then copy from B1 Sheet2 to
B11 of Sheet1; go onto A2 of Sheet2.

Note: The A column of Sheet1 has all possible matches from A column of Sheet2

Regards,

Tom


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
converting from text to numerical number james Excel Discussion (Misc queries) 1 February 2nd 05 01:52 AM
How can I get text to equal a numerical value in Excel? Mighty Mike Excel Discussion (Misc queries) 2 January 21st 05 08:03 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM
Macro or Function to make text size to suite text Length? lbbss Excel Discussion (Misc queries) 4 December 14th 04 07:53 PM
Display actual contents of cell xmasbob Excel Discussion (Misc queries) 1 December 6th 04 05:09 PM


All times are GMT +1. The time now is 07:24 PM.

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

About Us

"It's about Microsoft Excel"