Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default if-than statements in excel

I have 2 sheets with a list of 4-digit numbers. What I need a function
to do is basically "IF A:A=sheet2(all) than replace with 'match' "


I've tried several different variations but can't seem to get it to do
what I want!

I don't want it to touch items that don't match. I need those to stay
what they currently are.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default if-than statements in excel

I think I'm understanding you in that you want to know which numbers in
column A on sheet1 have a matching number in column A on sheet2?

If so, try the vlookup formula along with the If and Isna statements.
Look it up in Help, but here's a simple example of what I describe.

In Sheet1, cell B1, enter the following formula:

=If(isna(vlookup(A1, Sheet2!A:A,1,false)),"","Match"))

Then, copy that formula down in column B to the bottom of the data in
column A.

wrote:
I have 2 sheets with a list of 4-digit numbers. What I need a function
to do is basically "IF A:A=sheet2(all) than replace with 'match' "


I've tried several different variations but can't seem to get it to do
what I want!

I don't want it to touch items that don't match. I need those to stay
what they currently are.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default if-than statements in excel

Basically, I'm looking to make excel automatically do a find-replace.
I could go through one sheet, do a find, and replace on each number in
column A by hand, but I figured there would be an easier more fail-safe
way to have excel automatically do what I'm doing by hand.

The end result is to find out what numbers are left over after
replacing all duplicate numbers.

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
If statements in Excel Joel Excel Discussion (Misc queries) 2 December 17th 07 11:34 AM
Excel If Statements, please help! izzie Excel Worksheet Functions 4 December 8th 05 08:36 PM
operator statements, shorting when reusing one of the statements? KR Excel Programming 1 August 4th 05 06:20 PM
Excel Help with IF statements alexm999 Excel Discussion (Misc queries) 1 July 26th 05 08:54 PM
SQL statements in EXCEL ontheDB Excel Programming 1 September 27th 03 08:40 AM


All times are GMT +1. The time now is 10:05 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"